apache+php+mysql install step:
1 install apache
- sudo apt-get install apache2
test:
input localhost in firefox url :
you wil see something like this;
- It works!
-
-
This is the default web page for this server.
-
-
The web server software is running but no content has been added, yet.
2 step : install php5
- sudo apt-get install php5
restart apache to test php
- sudo /etc/init.d/apache2 restart
- sudo gedit /var/www/index.php
you wil see something like this :
step3 install mysql :
- sudo apt-get install mysql-server
-
mysql -u root -p
-
youpassword
-
<<showdatabases;
-
<<mysql
-
<<test
next mysql are supposed to be supported by php ,modify php.ini
sudo gedit /etc/php5/apache2/php.ini
; ... or under UNIX:
;
extension=msql.so
install MYSQL for Apache HTTP Server for test
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
sudo apt-get install phpmyadmin
create a new link :
sudo ln -s /usr/share/phpmyadmin/ /var/www/
restart apache :
sudo /etc/init.d/apache2 restart
you wil see
all over
阅读(1115) | 评论(0) | 转发(0) |