You are not logged in.

#1 2007-10-21 14:15:27

michalurban
Member
From: near Prague (CZE)
Registered: 2007-08-30
Posts: 13
Website

Apache, php - arch

Hallo,


after running correctly few months on arch linux, I was recently forced to make a clear reinstall of my OS. Now, Im unable to run apache with support of php - when I uncomment the line allowing php (LoadModule php5_module modules/libphp5.so) in httpd.conf, im unable to start or stop apache.

Error_log:

[Sat Oct 20 22:03:32 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Oct 20 22:03:32 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/bin/suexec)
[Sat Oct 20 22:03:32 2007] [notice] Digest: generating secret for digest authentication ...
[Sat Oct 20 22:03:32 2007] [notice] Digest: done
[Sat Oct 20 22:03:32 2007] [notice] Apache/2.2.6 (Unix) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8f configured -- resuming normal operations
[Sat Oct 20 22:03:35 2007] [error] [client 192.168.2.2] File does not exist: /home/httpd/html/favicon.ico
[Sat Oct 20 22:07:47 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Oct 20 22:07:47 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/bin/suexec)
[Sat Oct 20 22:07:47 2007] [notice] Digest: generating secret for digest authentication ...
[Sat Oct 20 22:07:48 2007] [notice] Digest: done
[Sat Oct 20 22:07:49 2007] [notice] Apache/2.2.6 (Unix) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8f configured -- resuming normal operations
[Sat Oct 20 22:11:36 2007] [notice] caught SIGTERM, shutting down
[Sat Oct 20 22:11:38 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Oct 20 22:11:38 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/bin/suexec)
[Sat Oct 20 22:11:38 2007] [notice] Digest: generating secret for digest authentication ...
[Sat Oct 20 22:11:38 2007] [notice] Digest: done
[Sat Oct 20 22:11:39 2007] [notice] Apache/2.2.6 (Unix) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8f configured -- resuming normal operations
[Sat Oct 20 22:16:25 2007] [notice] caught SIGTERM, shutting down
[Sat Oct 20 22:16:28 2007] [info] Init: Seeding PRNG with 136 bytes of entropy
[Sat Oct 20 22:16:28 2007] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Sat Oct 20 22:16:29 2007] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Sat Oct 20 22:16:29 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sat Oct 20 22:16:29 2007] [info] Init: Initializing (virtual) servers for SSL
[Sat Oct 20 22:16:29 2007] [info] mod_ssl/2.2.6 compiled against Server: Apache/2.2.6, Library: OpenSSL/0.9.8e
[Sat Oct 20 22:16:29 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/bin/suexec)
[Sat Oct 20 22:16:29 2007] [notice] Digest: generating secret for digest authentication ...
[Sat Oct 20 22:16:29 2007] [notice] Digest: done
[Sat Oct 20 22:16:29 2007] [info] Init: Seeding PRNG with 136 bytes of entropy
[Sat Oct 20 22:16:29 2007] [info] Init: Generating temporary RSA private keys (512/1024 bits)
[Sat Oct 20 22:16:29 2007] [info] Init: Generating temporary DH parameters (512/1024 bits)
[Sat Oct 20 22:16:29 2007] [info] Init: Initializing (virtual) servers for SSL
[Sat Oct 20 22:16:29 2007] [info] mod_ssl/2.2.6 compiled against Server: Apache/2.2.6, Library: OpenSSL/0.9.8e
[Sat Oct 20 22:16:29 2007] [debug] proxy_util.c(1667): proxy: grabbed scoreboard slot 0 in child 3554 for worker proxy:reverse
[Sat Oct 20 22:16:29 2007] [debug] proxy_util.c(1775): proxy: initialized single connection worker 0 in child 3554 for (*)
[Sat Oct 20 22:16:29 2007] [debug] proxy_util.c(1667): proxy: grabbed scoreboard slot 0 in child 3556 for worker proxy:reverse
[Sat Oct 20 22:16:29 2007] [debug] proxy_util.c(1686): proxy: worker proxy:reverse already initialized
[Sat Oct 20 22:16:29 2007] [debug] proxy_util.c(1775): proxy: initialized single connection worker 0 in child 3556 for (*)
[Sat Oct 20 22:16:29 2007] [debug] proxy_util.c(1667): proxy: grabbed scoreboard slot 0 in child 3557 for worker proxy:reverse
[Sat Oct 20 22:16:29 2007] [debug] proxy_util.c(1686): proxy: worker proxy:reverse already initialized
[Sat Oct 20 22:16:29 2007] [debug] proxy_util.c(1775): proxy: initialized single connection worker 0 in child 3557 for (*)
[Sat Oct 20 22:16:29 2007] [debug] proxy_util.c(1667): proxy: grabbed scoreboard slot 0 in child 3558 for worker proxy:reverse
[Sat Oct 20 22:16:29 2007] [debug] proxy_util.c(1686): proxy: worker proxy:reverse already initialized
[Sat Oct 20 22:16:29 2007] [debug] proxy_util.c(1775): proxy: initialized single connection worker 0 in child 3558 for (*)
[Sat Oct 20 22:16:29 2007] [notice] Apache/2.2.6 (Unix) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8f configured -- resuming normal operations
[Sat Oct 20 22:16:29 2007] [info] Server built: Sep 29 2007 15:08:10
[Sat Oct 20 22:16:29 2007] [debug] prefork.c(991): AcceptMutex: sysvsem (default: sysvsem)
[Sat Oct 20 22:16:29 2007] [debug] proxy_util.c(1667): proxy: grabbed scoreboard slot 0 in child 3555 for worker proxy:reverse
[Sat Oct 20 22:16:29 2007] [debug] proxy_util.c(1686): proxy: worker proxy:reverse already initialized
[Sat Oct 20 22:16:29 2007] [debug] proxy_util.c(1775): proxy: initialized single connection worker 0 in child 3555 for (*)
[Sat Oct 20 22:16:32 2007] [info] removed PID file /var/run/httpd.pid (pid=3552)
[Sat Oct 20 22:16:32 2007] [notice] caught SIGTERM, shutting down

...

Thanks for advice!

Offline

#2 2007-10-21 14:50:49

michalurban
Member
From: near Prague (CZE)
Registered: 2007-08-30
Posts: 13
Website

Re: Apache, php - arch

[Sat Oct 20 22:11:38 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]

I guess this could be the problem ...

Offline

#3 2007-10-21 15:37:36

michalurban
Member
From: near Prague (CZE)
Registered: 2007-08-30
Posts: 13
Website

Re: Apache, php - arch

httpd-ssl.conf ... I found one thread somewhere saying that I should not use dbm in my httpd-ssl.conf file ... but it was already configured that way:

#SSLSessionCache         "dbm:/var/run/ssl_scache"
SSLSessionCache        "shmcb:/var/run/ssl_scache(512000)"
SSLSessionCacheTimeout  300

Offline

#4 2007-10-21 17:07:46

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

Re: Apache, php - arch

Hi michalurban,
check the syntax of httpd.conf with

apachectl -t

Offline

#5 2007-10-21 17:52:48

michalurban
Member
From: near Prague (CZE)
Registered: 2007-08-30
Posts: 13
Website

Re: Apache, php - arch

Ok, I got

[root@server apache]# apachectl -t
httpd: Syntax error on line 114 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp5.so into server: libxml2.so.2: cannot open shared object file: No such file or directory

so I tried to locate libphp5, it was in "/usr/lib/apache/libphp5.so" so a changed the httpd.conf "modules/libphp5.so" to "/usr/lib/apache/libphp5.so"

then the apachectl -t said

httpd: Syntax error on line 114 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/apache/libphp5.so into server: libxml2.so.2: cannot open shared object file: No such file or directory

I dont know what now ...

Offline

#6 2007-10-21 18:52:14

michalurban
Member
From: near Prague (CZE)
Registered: 2007-08-30
Posts: 13
Website

Re: Apache, php - arch

libxml2 installation solved everything smile

Offline

Board footer

Powered by FluxBB