hlmod.hu
https://hlmod.hu/

[TUT] Mysql telepites
https://hlmod.hu/viewtopic.php?f=120&t=24029
Oldal: 1 / 1

Szerző:  DeteCT0R [ 2016.02.16. 12:00 ]
Hozzászólás témája:  [TUT] Mysql telepites

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 info
Keszits 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 :D

Szerző:  BeepBeep [ 2016.11.24. 11:17 ]
Hozzászólás témája:  Re: [TUT] Mysql telepites

PHP7.0.

Én ezt ajánlanám az 5-ös helyett.

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/