Install Apache MySQL PHP phpmyadmin (LAMP) on Open SUSE 11.3
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.
Step 2: Once installation is over, we need to start apache2 by running the following command (you need to be root)
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
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
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.
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
Don’t forget to replace the link below with that for the latest version:
Now unzip it and them move the folder to phpmyadmin and you should be done
mv phpMyAdmin-* phpmyadmin
Now point your bowser to http://localhost/phpmyadmin and you should get the login prompt like this