DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th November 2008
map7 map7 is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 75
Default 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.
Reply With Quote
  #2   (View Single Post)  
Old 7th November 2008
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

Do you have PHP5 Extensions installed with Sessions enabled? The specific config is in httpd-ssl.conf

Code:
#   Inter-Process Session Cache:
#   Configure the SSL Session Cache: First the mechanism
#   to use and second the expiring timeout (in seconds).
#SSLSessionCache         dbm:/var/run/ssl_scache
SSLSessionCache        shmcb:/var/run/ssl_scache(512000)
SSLSessionCacheTimeout  300
Reply With Quote
  #3   (View Single Post)  
Old 9th November 2008
map7 map7 is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 75
Default

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.
Reply With Quote
  #4   (View Single Post)  
Old 4th December 2008
map7 map7 is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 75
Default

Are there any permissions I should check?

I've reinstalled every package I can think of to do with php and apache
Reply With Quote
  #5   (View Single Post)  
Old 4th December 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

Quote:
Originally Posted by map7
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
In httpd.conf, could you temporarily crank it up to:

LogLevel info

Try starting again and see if more useful clues are provided.
__________________
Kill your t.v.
Reply With Quote
  #6   (View Single Post)  
Old 7th December 2008
map7 map7 is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 75
Default

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
I get the same result if I change it to 'LogLevel debug'
Still doesn't give enough info.
Reply With Quote
  #7   (View Single Post)  
Old 7th December 2008
map7 map7 is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 75
Default

I found the problem, I had to reinstall the pecl-APC port with the following command:

# portupgrade -f pecl-APC-3.0.19
Reply With Quote
  #8   (View Single Post)  
Old 7th December 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,167
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 09:24 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick