Installing Apache2 With PHP5 And MySQL Support On Fedora 11 (LAMP)
Voi folosi hostname server1.example.com cu IP address 192.168.0.100. Setarile pot fi schimbate dupa bunul plac.
Installing MySQL 5:
“yum install mysql mysql-server”
“chkconfig –levels 235 mysqld on
/etc/init.d/mysqld start”
“mysqladmin -u root password yourrootsqlpassword”
“mysqladmin -h server1.example.com -u root password yourrootsqlpassword”
Installing Apache2:
“yum install httpd”
“chkconfig –levels 235 httpd on”
“/etc/init.d/httpd start”
Acum poti accesa in browser: http://192.168.0.100
In Fedora folderul root default este: /var/www/html
Installing PHP5:
“yum install php”
“/etc/init.d/httpd restart”
Testare PHP5 / Detalii despre PHP5
Editeaza un fisier info.php
“vi /var/www/html/info.php” in care pui
“<?php
phpinfo();
?>“
Apoi in browser tastezi:
“http://192.168.0.100/info.php“
MySQL Suport In PHP5
“yum search php”
“yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand php-magpierss php-mapserver php-mbstring php-mcrypt php-mhash php-mssql php-shout php-snmp php-soap php-tidy”
“/etc/init.d/httpd restart”
phpMyAdmin
“yum install phpmyadmin”
Fisierul de configurare este aici: usr/share/phpMyAdmin/
“vi /etc/httpd/conf.d/phpMyAdmin.conf”
“/etc/init.d/httpd restart “
No comments yet.