Configuring a LAMP Server on SuSE Linux Enterprise Server 10
1.Log in your Linux server as user (not root)
2.Start up YaST. Enter root password.
3.Click the Software icon in the left menu and then the Software Management icon to the right.
4.Type apache in the search field and click the Search button. Select the modules you want to install. (YaST will let you know what other modules you may need, and will give you options on resolving any dependency conflicts.) Click Accept.
5.Next you want to start your Apache server. Return to YaST. Click the System icon in the left menu and then the System Services (Runlevel) icon to the right.
6.Click the Expert Mode radio button at the top.
7.Scroll down and select apache2 from the list.
8.Under the Set/Reset dropdown menu in the bottom right corner, select Enable the Service.
9.Under the Start/Stop/Refresh dropdown, select Start now....
10.Your Apache service is now up and running. Click Finish to save the changes.
11.Next we install PHP. Repeat steps 2 and 3. This time we'll type php, I selected all modules. Click Accept.
12.We now need to install phpMyAdmin. This did not come in my SuSE Enterprise Server 10. You will need to download it from http://www.phpmyadmin.net/home_page, download the “latest stable version”. You will want to save this into your /srv/www/htdocs directory.
13.Now you will need to browse to this file, right click the file and choose Extract Here.
14.Rename the extracted directory to phpMyAdmin.
15.Modify your config.php file in your /srv/www/htdocs/phpMyAdmin directory.
16.Now we install MySQL. Start up YaST. Enter root password.
17.Click the Software icon in the left menu and then the Software Management icon to the right.
18.Type mysql in the search field and click the Search button. Select the modules you want to install. (YaST will let you know what other modules you may need, and will give you options on resolving any dependency conflicts.) Click Accept.
19. Open a terminal. Type "cd /bin" enter (no quotes). Then type "mysql_install_db --user=mysql".
20.We need to make a change in the mysql configuration. /etc/my.cnf
under #The MySQL server edit and add:
[mysqld]
port =3306
datadir =/var/lib/mysql
socket =/var/lib/mysql.sock
[client]
socket =/var/lib/mysql/mysql.sock
and save the changes.
21.Next you want to start mysql. Return to YaST. Click the System icon in the left menu and then the System Services (Runlevel) icon to the right.
22.Click the Expert Mode radio button at the top.
23.Scroll down and select mysql from the list.
24.Under the Set/Reset dropdown menu in the bottom right corner, select Enable the Service.
25.Under the Start/Stop/Refresh dropdown, select Start now....
26.MySQL is now up and running. Click Finish to save the changes.
27.You can now bring up a browser, enter localhost/phpMyAdmin, and you're ready to go!