Setting up Apache, PHP, MySQL on Suse 10.2
Initial Installation Open up YaST,
go to "Software Management". Search for "apache",
and select:
apache2
apache2-doc
apache2-mod_php5 (for version 10.1)
apache2-mod_php4 (for version 10.0)
apache2-prefork libapr1 libapr-util1 Then,
Search for "php5" (for version 10.1),
or "php4" (for version 10.0)
and select all packages (RMB->All Packages in this List->Install) Then,
Search then for mysql,
and install:
mysql
mysql-client
Now that you’ve installed the necessary software, we can move on to configuration Configuration Once you have done this, go to "System" under YaST.
Go to "System Services (runlevel)", and Find apache2 in the list and select it. Click "Enable".
Find mysql in the list and select it, and also Click "Enable"
Testing The first thing to test is if your Apache is working correctly.
Open up a browser (e.g. Firefox) and enter into the address bar the following: localhost If you see two words "It works!" then Apache is working correctly.
The next step is to proceed to check if PHP is working correctly for you. Open up the public_html file in your home folder, and, using your favorite editor, (e.g gedit, or emacs, or kwrite)
type:
<?php
phpinfo();
?>
