Jump to content

Php easy installation on opensuse 11.3


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.