Operating System = Opensuse 11.3
Using Yast
1. Had install using its default settings for the latest version of Mysql
1.1 had already configured root settings for mysql
2. Had install using its default settings for the latest version of Apache
3. Had install using its default settings for the latest version of Php
had stop apache service then added codes for php to load in apache httpd.conf from http://laffers.net/howtos/howto-install-php/ as what they said that
Edit httpd.conf
All necessary changes to httpd.conf (Apache configuration file) should have already been made automatically during the installation, so usually you need not do anything. Anyways, check that following lines were added to your httpd.conf file:
1. LoadModule php5_module modules/libphp5.so
2. AddType application/x-httpd-php .php
After I have added these two lines of code my apache is unable to load the module because they cant find the module. By default apache is looking at /srv/www/modules/libphp5.so.
This is the error looks like.
#rcapache2 start
Starting httpd2 (prefork) httpd2-prefork: Syntax error on line 215 of /etc/apache2/httpd.conf: Cannot load /srv/www/modules/libphp5.so into server: /srv/www/modules/libphp5.so: cannot open shared object file: No such file or directory
The command line was:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
My question is where is the php module to be loadeed as its deafult?/How can I load php module to worked with apache. cause when I try to load index.php from the localhost It just download the file and not run the file.
Please Help. I hope this also could help as an additional experience for the person who can view this topic.