Install Apache MySQL PHP phpmyadmin (LAMP) on Open SUSE 11.3
- Thursday, September 9, 2010, 13:51
- How To?
- Views: 1,983
- 2 comments
Installing Apache MySQL, PHP and phpmyadmin on Open SUSE 11.3 is very easy, and in fact a one step procedure.
Step 1: Launch the Software manager by clicking on Install/Remove Software from the start menu. Now type in lamp, select the package that shows up in search result and click Apply to continue with the installation. Wait till the installation finishes.
Click Apply again to accept the changes.
Step 2: Once installation is over, we need to start apache2 by running the following command (you need to be root)
/etc/init.d/apache2 start
Now to check if apache is running successfully launch a browser window with the following address http://localhost/ you should see a page like this
To ensure that it starts automatically at each restart run the following command at terminal
chkconfig apache2 on
Step 2: Lets test if php is working properly. Create a test php file called info.php, using a text editor of your choice (say gedit) by doing this
gedit /srv/www/htdocs/info.php
and paste the following content and save the file
<?php phpinfo(); ?>
Now open the following page http://localhost/info.php and you should see something like what is shown below (instead of the code you typed in the file above). This implies that apache is running with php support.
Step 4: Now we need to create a root password for the MySQL. But first start the MySQL server by this command
/etc/init.d/mysql start
Now to change the password do the following, replace your_selected_password with password of your choice.
mysqladmin -u root password your_selected_password
Now to ensure that mysql starts with every reboot, do this
chkconfig mysql on
To double check that your created password works for mysql, login to your account using
mysql -u root -p
Enter root password that you supplied earlier when prompted for and this would open a mysql > prompt. You can quit it by typing quit.
Step 5: Now only phpmyadmin is remaining. This has to be installed manually (surprise surprise). But that easy, don’t worry. Download the latest version of phpmyadmin from here and move it to the folder below Or you can wget it from the /srv/www/htdocs folder by doing this
cd /srv/www/htdocs
Don’t forget to replace the link below with that for the latest version:
wget http://sourceforge.net/projects/phpmyadmin/files%2FphpMyAdmin%2F3.3.7%2FphpMyAdmin-3.3.7-english.zip
Now unzip it and them move the folder to phpmyadmin and you should be done
unzip phpMyAdmin-*.zip
mv phpMyAdmin-* phpmyadmin
Now point your bowser to http://localhost/phpmyadmin and you should get the login prompt like this
You might also like
About the Author
2 Comments on “Install Apache MySQL PHP phpmyadmin (LAMP) on Open SUSE 11.3”
Write a Comment
Gravatars are small images that can show your personality. You can get your gravatar for free today!
Thak you for the clear and fast way to get phpmyadmin.
Like or Dislike:
0
0
[Reply]
Qué chulada de página!
Cada que configuro mysql y apache, vengo a esta página!
Gracias nuevamente!
Like or Dislike:
0
0
[Reply]