|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
|
Thread Tools | Display Modes |
|
|||
Apache with php stopped working after upgrade
I've just upgraded from FreeBSD 6.2 through to 7.0 (first upgrading to 6.3)
As part of the upgrade you have to recompile all ports, which I've done. Now my apache doesn't start if I have the following php line in: LoadModule php5_module libexec/apache22/libphp5.so I get the error in my httpd-error.log [Fri Nov 07 15:25:46 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Fri Nov 7 15:25:47 2008] [apc-error] apc_fcntl_lock failed: Invalid argument What have I done wrong? If I take out that php line in the httpd.conf file apache will load fine and works with html and my ruby on rails project. |
|
|||
Yes I do have the php5-extensions port installed with sessions enabled. I have recompiled php5-extensions and doubled checked the lines in my httpd-ssl.conf file. This still presents the same problem when I start my Apache server.
|
|
|||
Are there any permissions I should check?
I've reinstalled every package I can think of to do with php and apache |
|
||||
Quote:
LogLevel info Try starting again and see if more useful clues are provided.
__________________
Kill your t.v. |
|
|||
Here is the log with Loglevel info:
Code:
[Mon Dec 08 09:12:24 2008] [info] Init: Seeding PRNG with 136 bytes of entropy [Mon Dec 08 09:12:24 2008] [info] Init: Generating temporary RSA private keys (512/1024 bits) [Mon Dec 08 09:12:24 2008] [info] Init: Generating temporary DH parameters (512/1024 bits) [Mon Dec 08 09:12:24 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Mon Dec 08 09:12:24 2008] [info] Init: Initializing (virtual) servers for SSL [Mon Dec 08 09:12:24 2008] [info] mod_ssl/2.2.9 compiled against Server: Apache/2.2.9, Library: OpenSSL/0.9.8e [Mon Dec 08 09:12:24 2008] [info] mod_unique_id: using ip addr 192.168.200.2 [Mon Dec 08 09:12:25 2008] [info] Init: Seeding PRNG with 136 bytes of entropy [Mon Dec 08 09:12:25 2008] [info] Init: Generating temporary RSA private keys (512/1024 bits) [Mon Dec 08 09:12:25 2008] [info] Init: Generating temporary DH parameters (512/1024 bits) [Mon Dec 08 09:12:25 2008] [info] Init: Initializing (virtual) servers for SSL [Mon Dec 08 09:12:25 2008] [info] mod_ssl/2.2.9 compiled against Server: Apache/2.2.9, Library: OpenSSL/0.9.8e [Mon Dec 8 09:12:25 2008] [apc-error] apc_fcntl_lock failed: Invalid argument Still doesn't give enough info. |
|
|||
I found the problem, I had to reinstall the pecl-APC port with the following command:
# portupgrade -f pecl-APC-3.0.19 |
|
|||
A similar APC issue under NetBSD: http://archive.netbsd.se/?ml=php-gen...8-06&m=7533011
This refers to two PHP bug reports which seem not to have been resolved yet. However http://oscartheduck.wordpress.com/20...cache-freebsd/ says "Session Cache is not configured [hint: SSLSessionCache]" is caused by an IP<-> hostname mismatch. Good luck
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Apache 1.3 and PHP 5, Not Working! | dialeight | OpenBSD Packages and Ports | 7 | 7th June 2009 06:43 PM |
Apache Randomly Stops Working | plexter | OpenBSD Packages and Ports | 21 | 4th May 2009 04:41 PM |
Upgrade Apache 1.3 mod_ssl to Apache 2.2 | beandip | FreeBSD Ports and Packages | 11 | 26th March 2009 09:12 PM |
Big5 Character Set in Apache problem after upgrade to 6.4 | paul-lkw | FreeBSD Installation and Upgrading | 0 | 23rd February 2009 09:20 AM |
v4l - dtv device stops working after kernel upgrade | robbak | Other BSD and UNIX/UNIX-like | 0 | 14th June 2008 11:29 PM |