How To Install PhpMysqlApache On Your Ubuntu
To Install Php And Mysql And Apache On Ubuntu You Should Do This :First Install Tasksel :
sudo apt-get install tasksel
Then The LAMP Stack :
sudo tasksel install lamp-server
Installing Apache 2 :
apache2
It requires a restart for it to work:
$ sudo /etc/init.d/apache2 restart
Or
sudo service apache2 restart
Installing PHP 5 :
To only install PHP5. use any method to install the package
libapache2-mod-php5
Enable this module by doing
sudo a2enmod php5
Relaunch Apache 2 again:
sudo service apache2 restart
Installing MYSQL with PHP 5 :
Use any method to install
mysql-server libapache2-mod-auth-mysql php5-mysql
Set mysql root password:
mysql -u root
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
A successful mysql command will show: Query OK, 0 rows affected (0.00 sec) Mysql commands can span several lines. Do not forget to end your mysql command with a semicolon.
Thin Type In Your Browser : LocalHost And It Will Shown To You
0 التعليقات:
Post a Comment