To Install Lamp on Ubuntu 8.10 we need to install Apache, MySQL and PHP first. to install we follow these steps:
Go to terminal, login as root by type :
$sudo su
$ apt-get install apache2
Test after installed apache on the browser type favored us with "http://localhost/" in the address bar, after a successful install of PHP by type
$ apt-get install php5 libapache2-mod-php5
To be compatible PHP, PHP restart with the command
$ /etc/init.d/apache2 restart
Then test your browser with mengetikan http://localhost/testphp.php in the browser address bar. Install Mysqlserver using the command in terminal
$ apt-get install mysql-server
Run mysql by type
$ mysql -u root -p
Enter your root password, and then install the next packet with the command
$ apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
after installed, PHP should work with MySQL to edit php.ini to change the (;). ; = mysql.so extension with extension = mysql.so using
$ gedit /etc/php5/apache2/php.ini
now restart apache using the command
$ /etc/init.d/apache2 restart
Happy Testing...!!
No comments:
Post a Comment
Please Comment...!!