please login su:
sudo su
1. istall apache :
sudo apt-get install apache2
2. isntall php :
sudo apt-get install php5 libapache2-mod-php5
3.install mysql server and client :
sudo apt-get install mysql-server mysql-client
insert user and password
4 install library php-mysql
sudo apt-cache search php5
install library php-mysql :
sudo apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
start apache :
/etc/init.d/apache2 restart
start mysql :
/etc/init.d/mysql restart
check result on web browser :
http://localhost/
and then create a file php
<?php
phpinfo();
?>
save on /var/www/phpinfo.php
and then check the resulet :
http://localhost/phpinfo.php
5. istall phpmyadmin
sudo apt-get install phpmyadmin
chose config on apache and then
insert user and password for phpmyadmin
check the result :
http://localhost/phpmyadmin/
good luck.
No comments:
Post a Comment