You are not logged in.

#1 2007-06-30 11:27:22

KomodoDave
Member
From: Oxford, UK
Registered: 2007-04-22
Posts: 162
Website

Apache + PHP = Apache won't run ='(

I reinstalled Arch recently to change from 64bit to 32bit, for convoluted reasons. I'm now attempting to install LAMP again, following the wiki guide.

If I uncomment 'LoadModule .... libphp5.so' in /etc/httpd/conf/httpd.conf, then apache won't start. Commented out, everything works fine.

I have the latest PHP package installed.

No log files are produced in /var/log/httpd/, and changing the log level in httpd.conf doesn't seem to help.

Any suggestions? This is very urgent for me, since I have a website to finish by Monday sad So help is much appreciated!

- Dave

Last edited by KomodoDave (2007-06-30 12:03:18)

Offline

#2 2007-06-30 13:54:45

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: Apache + PHP = Apache won't run ='(

Hi KomodoDave,
post the output of this command:

apachectl -t

Offline

#3 2007-06-30 13:59:22

KomodoDave
Member
From: Oxford, UK
Registered: 2007-04-22
Posts: 162
Website

Re: Apache + PHP = Apache won't run ='(

luca wrote:

Hi KomodoDave,
post the output of this command:

apachectl -t

Hero, this (very helpfully) gives me:

httpd: Syntax error on line 114 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp5.so into server: libcurl.so.4: cannot open shared object file: No such file or directory

'pacman -S curl' solved the problem big_smile Thanks *loads* luca, you've really saved my bacon!

- Dave

Offline

#4 2007-06-30 14:40:26

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: Apache + PHP = Apache won't run ='(

Strange,  php depends on curl anyway. Ort didn`t you update your system using "pacman -Syu"?

Offline

#5 2007-06-30 16:00:56

KomodoDave
Member
From: Oxford, UK
Registered: 2007-04-22
Posts: 162
Website

Re: Apache + PHP = Apache won't run ='(

Pierre wrote:

Strange,  php depends on curl anyway. Ort didn`t you update your system using "pacman -Syu"?

I did

$ su
$ pacman -S apache php mysql

I did a 'pacman -Sy' yesterday.

- Dave

Offline

#6 2007-06-30 17:08:16

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: Apache + PHP = Apache won't run ='(

There is really something strange. Doesn`t your pacman output somthing similar (especially the curl dependency)?

[root@athlon64 pierre]# LANG=C pacman -Qi php
Name           : php
Version        : 5.2.3-4
URL            : http://www.php.net
License        : PHP
Groups         : None
Provides       : None
Depends On     : openssl  pam  bzip2  gdbm  ncurses  curl  libxslt  freetype2  libjpeg  libpng
Removes        : None
Required By    : php-apc  php-eaccelerator  php-fileinfo  php-suhosin-extension  phpmyadmin  php-xcache
Conflicts With : php-cgi  php-suhosin
Installed Size : 27561.38 K
Packager       : Pierre Schmitz <pierre@archlinux.de>
Architecture   : x86_64
Build Date     : Sun Jun 17 15:59:28 2007 UTC
Build Type     : Unknown
Install Date   : Wed Jun 27 14:42:08 2007 UTC
Install Reason : Explicitly installed
Install Script : Yes
Description    : A high-level scripting language

Offline

#7 2007-06-30 17:50:01

KomodoDave
Member
From: Oxford, UK
Registered: 2007-04-22
Posts: 162
Website

Re: Apache + PHP = Apache won't run ='(

Pierre wrote:

There is really something strange. Doesn`t your pacman output somthing similar (especially the curl dependency)?

komododave@lair:home #         LANG=C pacman -Qi php
Name           : php
Version        : 5.2.3-4
URL            : http://www.php.net
License        : PHP  
Groups         : None
Provides       : None
Depends On     : openssl  pam  bzip2  gdbm  ncurses  curl  libxslt  freetype2  libjpeg  libpng  
Removes        : None
Required By    : None
Conflicts With : php-cgi  php-suhosin  
Installed Size : 25719.90 K
Packager       : Thomas Baechler <thomas@archlinux.org>
Architecture   : i686
Build Date     : Sun Jun 17 17:39:26 2007 UTC
Build Type     : Unknown
Install Date   : Sat Jun 30 11:54:41 2007 UTC
Install Reason : Explicitly installed
Install Script : Yes
Description    : A high-level scripting language

There's absolutely no doubt I didn't have curl installed prior to installing PHP, and it definitely wasn't installed afterwards; at no point have I explicitly removed curl...

- Dave

Offline

#8 2007-08-09 10:34:52

mata_svada
Member
From: Salzburg, Austria
Registered: 2007-01-31
Posts: 36

Re: Apache + PHP = Apache won't run ='(

I experienced the exact same thing: Installed apache and php but didn't have curl installed afterwards. It still appears as a php dependency though...

Offline

Board footer

Powered by FluxBB