Apache-2.0.47 and PHP-4.3.4


Recommended Posts

Hiya I installed Apache on Vector Linux via source (similar to Slackware Linux) and all whent well. Then I though oh I better install PHP. So I installed all that from source, though I hadn't linked php into the apache httpd.conf file.

Here is the error when I startup apache 2.

cannot load /usr/local/apache2/modules/libphp4.so into server: /usr/local/apache2/modules/libphp4.so: cannot open shared object file:no such file or directory

These lines are added to the bottom of the conf file

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *>
# ? ?ServerAdmin webmaster@dummy-host.example.com
# ? ?DocumentRoot /www/docs/dummy-host.example.com
# ? ?ServerName dummy-host.example.com
# ? ?ErrorLog logs/dummy-host.example.com-error_log
# ? ?CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

This was from a dev shed guide. I also added the .php extenion to the config file.

I can post the entire conf file if required.

Thanks if you can help.

Mark.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.