Eksilente Posted January 3, 2011 Share Posted January 3, 2011 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. Quote Link to comment Share on other sites More sharing options...
trq Posted January 3, 2011 Share Posted January 3, 2011 I've not used Suse for a number of years (and even then I only took it for a very short test drive), but those instructions you have pointed to are not Suse specific and would appear to apply to a manual install approach. Surely Yast is capable of installing and setting sane defaults. Have you tried not adding the.... LoadModule php5_module modules/libphp5.so AddType application/x-httpd-php .php Lines to your httpd.conf file? Every other distro I have used adds these for you in there own way. Quote Link to comment Share on other sites More sharing options...
Eksilente Posted January 3, 2011 Author Share Posted January 3, 2011 Yes and it causes the php file to be downloaded and not running it. Do you have any alternatives of doing/configuring this to work with? Please. Any links is very much helpful. Quote Link to comment Share on other sites More sharing options...
trq Posted January 3, 2011 Share Posted January 3, 2011 I would ask around on a Suse board of some sort. It seems ridiculous it doesn't just work like it would with most any other distro. Never been much of a Suse fan. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.