On Saturday 08 September 2007 12:54, Randy Patterson wrote: > On Saturday 08 September 2007 12:20, Børge Holen wrote: > > On Saturday 08 September 2007 10:07, Randy Patterson wrote: > > > Hey, > > > > > > I have setup a test system on my home network in the past to develop & > > > test PHP apps by installing an ISAPI PHP dll in IIS. It worked great > > > but now I trying to setup a LAMP server on Debian/Lenny. I ran the > > > following command; > > > > > > aptitude install apache2 php5 libapache2-mod-php5 > > > > > > But got the following error message; > > > > > > Setting up apache2-mpm-prefork (2.2.4-3) ... > > > Starting web server: apache2apache2: Syntax error on line 187 > > > of /etc/apache2/apache2.conf: Syntax error on line 3 > > > of /etc/apache2/httpd.conf: Cannot load /etc/apache2/modules/libphp5.so > > > into server: /etc/apache2/modules/libphp5.so: cannot open shared object > > > file: No such file or directory > > > failed! > > > invoke-rc.d: initscript apache2, action "start" failed. > > > > > > The error is pointing to this line in the httpd.conf; > > > > > > LoadModule php5_module modules/libphp5.so > > > > > > But this directory or file don't exist in the /etc/apache2 directory. > > > > > > Not sure how to fix this. I'm a newbie when it comes to the LAMP server > > > apps. Any help would be appreciated. > > > > Seems very much like some missinformation of some kind. > > Apache2 should not use any modules/ directory. > > > > Apache2 uses symlinks to enable modules, check if symlink exists. > > In the directory mods-enabled there should reside syms like this: > > php5.conf -> ../mods-available/php5.conf > > php5.load -> ../mods-available/php5.load > > > > Any other php relations within both httpd and apache2 conf is to be > > removed. It does not complain over missing php libs, it complains about > > syntax error. > > I think you have put your finger on the problem, those links are not > there. I read this article on the subject; > > http://www.debian-administration.org/articles/207 > > Which referred to these programs; a2ensite, a2dissite, a2enmod and > a2dismod. > > Although I have apache2 installed, these programs are not present. Are they > part of another package? Not sure that I would get the links correct if I > did it manually. > > Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php