Hogy mi az a mysql nem megyek bele mindenki tudja aki vps/dedikalt szerveren dolgozik.
Ez a leiras csak debian/ubuntu-ra van.
Ennek nincs koze a phpmyadminhoz. A phpmyadmin csak egy segitseg a dinamikus kezelesert.Telepites:Telepitsuk a szukseges dolgokat.
Kód:
apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
Telepites kozbe kerni fogja hogy adj meg egy jelszot. Az lessz a root jelszavad.
(kephelye frissitem majd)
Aktivaljuk a mysql-t.
Kód:
mysql_install_db
Ezzel megis vagyunk mar fut a mysql viszont van meg extra bealitas igeny szerint en ajanlom hogy vegigmenj rajta:D
Kód:
/usr/bin/mysql_secure_installation
Majd ezt kapjuk:
Kód:
By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] y
... Success!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] y
... Success!
By default, MySQL comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] y
... Success!
Cleaning up...
Egy kis magyarazat aki nem ertene:
[Y/N]
Y-igen
N - Nem
Kód:
Remove anonymous users? - Anonymous felhasznalo torlese? [Y]
Disallow root login remotely? - Tavoli bejelentkezes tiltasa a root-nak? [N]
Remove test database and access to it? - Teszt adatbazis es hozzaferes torlese? [Y]
Reload privilege tables now? - Jogok/Tablak ujratoltese? [Y]
Ezutan mar megy a mysql.
Apache Modulok telepites:Kód:
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
Berakjuk az index.php-t az index-ek koze (ez hulyen hangzik)
Kód:
nano /etc/apache2/mods-enabled/dir.conf
Ezt fogod latni:
Kód:
<IfModule mod_dir.c>
DirectoryIndex index.php index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>
Az index.htm -utan ird az index.php-t majd mentsd el! Lehet mar fog szerepelni benne de nembiztos ha szerepel benne nemkell semmit se csinalni.
Ha minden jol csinaltal a phpinfoba kell irja
php infoKeszits egy php fajlt lehet akarmi a neve:
pelda.php majd masold bele:
Kód:
<?php
phpinfo();
?>
(kephelyefrissitemmajd)
Inditsd ujra a webszervert(apache)
Kód:
service apache2 restart
Ha a bongeszobe beirod a teoldalad.hu/pelda.php ott fogod latni a phpinfo-t.
Ennyi lenne sok szerencset