bucko Posted December 21, 2003 Share Posted December 21, 2003 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 More sharing options...
Rathamon Posted December 21, 2003 Share Posted December 21, 2003 uh oh , sounds like you havent linked apache and php together properly there are 2 ways to install PHP into apache, either hardwire it in at compile time , or install it later as a DSO check this out http://www10.brinkster.com/ssruprai/comphp.asp Link to comment Share on other sites More sharing options...
Recommended Posts