- http://www.novell.com/coolsolutions/feature/595.html
- http://library.monx007.com/computer/install_webserver5/1
- http://enarion.net/web/apache/htaccess/mod_rewrite-on-suse/
- OpenSUSE with Yast (Yet another Setup Tool) - This is where we will get latest Apache Web Server, MySQL, PHP modules and extensions.
- phpMyAdmin Database Manager - An admin tool for MySQL databases.
Download from http://www.phpmyadmin.net/home_page/downloads.php
Save the download gzip version (with .tar.gz extension) in the /srv/www/htdocs/ directory. - Zend Optimizer - To optimize PHP web development.
Download from http://www.zend.com/free_download/optimizer (Prior free registration is required)
Download Linux x86 for 32bit server or Linux x86_64 for 64bit server.
- Power up OpenSUSE machine and login in as user.
- Start up YaST. (Do this by clicking the SUSE toolbar's "Start" button (that would be the green button with the smiling gecko) => "System" menu => "YaST"
- YaST dialog opens telling you that you need to enter root's password before you can continue.

- Enter the root password.
- In the YaST window that opens, click the "Software" icon in the left menu and then the "Install and Remove Software" or "Software Management icon to the right.

- YaST takes a moment to inventory what you already have installed and what you can install. Then it opens a window with a search dialog (and a few other options that I've yet to explore).

- Type "apache" in the search field and click the "Search" button.
- Select the modules you want to install. Required: apache2, apache2-mod_php5

- Check box before "Autocheck" and click the "Accept" button.
- Resolve "Dependency Conflict" and survey the suggested additions by following installation procedures. Yast has made the process very simple.
- Now you'll want to set Apache to start up when you boot. To do that, click the "System" icon in the left pane of the YaST window.
- Click the "System Services (Runlevel)" or "Runlevel Editor" in the right panel.
- Click the "Expert Mode" radio button at the top of the YaST window.

- Select "apache2" from the scrolling list.
- Under the "Set/Reset" dropdown in the lower-right corner, choose "Enable the Service". This should automatically select the appropriate runlevels that will be used when starting the service.
- Under the "Start/Stop/Refresh" dropdown, select "Start now ..."
- Click "Finish".
Mod_Rewrite is a super cool module which allow you to manipulate URL, hence make your side more search-engine friendly. By default, SuSE doesn't enable the mod_rewrite rewrite module. It's installed, but not enabled. Follow these steps to install it.
- Edit the file /etc/sysconfig/apache2 as root (Open Terminal, type "su" and enter root password, type "kwrite /etc/sysconfig/apache2"):
- search for APACHE_MODULES, you should find a line like this
APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5"
- Add "rewrite" to the content in the list between the "

- Save the changes and quit
- search for APACHE_MODULES, you should find a line like this
- run SuSEconfig to update the apache configuration files
- run /etc/init.d/apache2 restart to restart the Apache server
Install PHP
- Type "php" in YaST's search field and click the "Search" button.
- Select php5 and extensions you want to install. Required or recommended: php5-mysql, php5-mbstring, php5-mcypt (required by phpmyadmin), php5-gd (for image manipulation).

- Check box before "Autocheck" and click the "Accept" button.
- Resolve "Dependency Conflict" and survey the suggested additions by following installation procedures.
- Type "mysql" in YaST's search field and click the "Search" button.
- Add "mysql" and "mysql-client" to the list of previously installed components.

- Click "Accept".
- Open "File Manager - Super User Mode" (Do this by clicking the SUSE toolbar's "Start" button => "System" menu => "File Manager" => "File Manager - Super User Mode") and enter root's password. If you can not find the file manager, log out and log in as root and then open file manager.
- Browse to /var/lib/ and right-click the /mysql/ directory.

- Select "Properties"
- In the Properties window that opens, click the "Permissions" tab.
- Under "Access Permissions", select "Can View & Modify Content" from the "Group" dropdown menu.
- Under "Ownership", type "mysql" in the "Group" field.
- Click the "Apply changes to all sub folders and their contents" checkbox. This will apply these rights (that are set at the /var/lib/mysql/ level) to the files, folders (and databases) below.

- Click "OK".
- Open YaST.
- Click the "System" icon in the left pane of the YaST window.
- Click the "System Services (Runlevel)" or "Runlevel Editor" in the right panel.
- Click the "Expert Mode" radio button at the top of the YaST window.
- Select "mysql" from the scrolling list.
- Under the "Set/Reset" dropdown in the lower-right corner, choose "Enable the Service". This should automatically select the appropriate runlevels to use when starting the service.
- Under the "Start/Stop/Refresh" dropdown, select "Start now ..."
- Click "Finish".
- Assume that you have save and phpmyadmin gzip file in the /srv/www/htdocs/ directory.
- Open "File Manager - Super User Mode" (Do this by clicking the SUSE toolbar's "Start" button => "System" menu => "File Manager" => "File Manager - Super User Mode") and enter root's password. If you can not find the super user's file manager, log out and log in as root and then open file manager.
- Browse to /srv/www/htdocs/
- Right-click on the file and under the "Actions" menu selection, choose "Extract Here".
- Once the files are extracted, right click on the folder (probably something like phpMyAdmin-2.10.1-all-languages.tar.gz) and rename it to "phpMyAdmin". (Make it all lower case if you like).
- Open your favourite browser and type in the address bar:
- http://localhost/phpMyAdmin/index.php
- You may see this error message:
This error message means that our login or password to connect to mysql database is wrong. In order for phpMyAdmin could connect to mysql database, we must supply the login and password at phpMyAdmin configuration file.
Almost all configurable data is placed in config.inc.php. This file only needs to contain the parameters you want to change from their corresponding default value in phpMyAdmin/libraries/config.default.php. If config.inc.php does not exist at the phpMyAdmin directory, just copy config.default.php from libraries directory to phpMyAdmin directory, and rename it to config.inc.php.
Locate this string: $cfg['PmaAbsoluteUri'] = '';
Inside the ' ' place the location of where phpMyAdmin is installed on the server. In this case we installed it within the root directory under its own folder name. So we’ll use “http://localhost/phpMyAdmin/” as our absolute URL location.
There are 3 authentication methods that we can use to connect to phpMyAdmin:- config method (the default method)
This method is the least secure, as it requires storing your MySQL username and password in the file on the server. Anyone who would find the directory to your phpMyadmin installation would then be able to access your databases. This is the default method, however.
If you use the 'config' authentication method, it is strongly recommended that you secure the directory in which phpMyAdmin is installed, such as adding password protect to phpMyAdmin directory. This extra step is not needed when using either the 'http' or 'cookie' authentication methods.
Locate this string: $cfg['Servers'][$i]['auth_type'] = 'config';
Locate this string: $cfg['Servers'][$i]['user'] = 'put your MySQL login here';
Locate this string: $cfg['Servers'][$i]['password'] = 'put your MySQL password here' - http method
These methods are more secure, as your username and password are not stored on the server in your configuration file. The 'http' option uses the Apache http authentication method.
Locate this string: $cfg['Servers'][$i]['auth_type'] = 'http';
Locate this string: $cfg['Servers'][$i]['user'] = '';
Locate this string: $cfg['Servers'][$i]['password'] = ''; - cookie method (recommended method)
These methods are more secure, as your username and password are not stored on the server in your configuration file. The 'cookie' method uses cookies, and has the advantage that you can "Log Out" at the end of your session, deleting the cookie.
Locate this string: $cfg['Servers'][$i]['auth_type'] = 'cookie';
Locate this string: $cfg['Servers'][$i]['user'] = '';
Locate this string: $cfg['Servers'][$i]['password'] = '';
Locate this string: $cfg['blowfish_secret'] = 'fill anything here';
For the blowish_secret values, you can fill any alphabets, in example you can use 716e3c0.88759346, but, keep in mind that the maximum length seems to be 46 characters. The passphrase is just used internally to encrypt the password - you will not be prompted for it later.
- config method (the default method)
- Assume that you have downloaded Zend Optimizer zipped file.
- Right-click on the file and under the "Actions" menu selection, choose "Extract To...".
- A dialog appears, asking where you wish to extract the files to. Type "/tmp/" and click "Ok".

- Open Terminal.
- Type "su" and enter root password.
- Type "cd /tmp/ZendOptimizer-[version]".
- Type "./install".

- The screen above appears. Press "Enter"
- License will appear, Choose "Exit".

- Accept the terms of the license by pressing "Enter".

- Choose "OK" unless you want to install Zend Optimizer in other location.

- Type the location of PHP configuration file, php.ini (/etc/php5/apache2) and press "Enter".
- Choose "Yes" to tell Zend Optimizer that you are using Apache Server.

- Confirm the location of apache2ctl and press "Enter".
- It will determine your PHP version. Press "Enter" after it tells you that some configurations have been made.
- Press "Enter" to restart Apache server.

- Press "Enter" and close the terminal.
- To test PHP, open your favourite editor. I use Kwrite.
- Type the following into a document:
- Save the file as info.php to the "/home/user/public_html/" directory. (Replace user with your username).
- Launch a web browser and access the info.php file using this URL:
- http://localhost/~user/info.php
- You should see a web page that displays all the configuration details of your PHP installation.

- When you view this file with your browser, search for modules you have installed, for example, rewrite and gd - you should find at least one entry each.
- You can test your MySQL installation by going to http://localhost/phpMyAdmin/. With Linux, URLs are case sensitive so it is important to capitalize the "M" and the "A" in phpMyAdmin or you'll get an error.
- You should see the following screen if you have phpMyAdmin using Apache to communicate with MySQL.





















