DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th April 2010
sputnik sputnik is offline
Port Guard
 
Join Date: Mar 2009
Posts: 25
Default apache and php5

Hi,

my server runs openbsd 4.6 with apache unchrooted and php5 with extensions:

php5-bz2-5.2.10
php5-core-5.2.10
php5-gd-5.2.10-no_x11
php5-mbstring-5.2.10
php5-mcrypt-5.2.10
php5-mysql-5.2.10
php5-mysqli-5.2.10

I don't use the ports, i use precompiled packages. The problem is:
all php applications sometimes stops when executing some script, and gives no output, just a blank screen. For example phpmyadmin - sometimes works just fine, sometimes gives a blank screen when i'm inserting something in db table, exporting db to file, or doing something like that. Same with squirrelmail. Same with applications coded by my self. Sometimes it just needs to be refreshed, sometimes it needs to be refreshed few times, to get back interacting with application. I'm pretty sure this behaviour encounters only in 4.6 version. I had 4.5 before, and i still have one more box currently running 4.5 with apache+php5 working fine. I've tried to reinstall those packages, i've even tried to install them from ports. No result. This is really odd. Any ideas?
Reply With Quote
  #2   (View Single Post)  
Old 13th April 2010
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

How exactly are you running PHP? You can use three methods (mod_php, FastCGI, and CGI).
Is there anything in your apache or messages logfile?

It's possible that PHP is crashing (thus giving no output).

Another possibility is that the script generated some PHP error and you have PHP configured in such a way that it will exit and display no warning message.
From memory the display_errors and error_reporting variables in your php.ini control this.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 14th April 2010
sputnik sputnik is offline
Port Guard
 
Join Date: Mar 2009
Posts: 25
Default

I'm runing php as apache module (mod_php). There's no need to turn error_reporting to E_ALL, 'cause i'm running simple php applications as squirrelmail, phpmyadmin... I was running those applications on openbsd 4.5, 4.4, 4.3 and so on...
If you've got few minutes, i can demonstrate it by giving you links to those applications ar even giving a shell...
Reply With Quote
  #4   (View Single Post)  
Old 14th April 2010
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Quote:
simple php applications as squirrelmail, phpmyadmin
I would not call these "simple PHP applications" ...

Regardless, do you see anything in the logfiles?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #5   (View Single Post)  
Old 14th April 2010
sputnik sputnik is offline
Port Guard
 
Join Date: Mar 2009
Posts: 25
Default

Apache log files? Nope, nothing unusual, neither custom or error log...
Reply With Quote
  #6   (View Single Post)  
Old 14th April 2010
demoniaco demoniaco is offline
New User
 
Join Date: Mar 2010
Posts: 1
Default tail /var/log

You have this lines?:
AddType application/x-httpd-php5 .php .htm .html

check your php config ans see Apache logs for more information.

[@lekid]
#OpenBSD Support Argentina
openbsdupport .com .ar
Reply With Quote
  #7   (View Single Post)  
Old 15th April 2010
sputnik sputnik is offline
Port Guard
 
Join Date: Mar 2009
Posts: 25
Default

Yes, i have those lines, and i have default php.ini. Apache logs doesn't show any errors.
Reply With Quote
  #8   (View Single Post)  
Old 20th April 2010
Botanic Botanic is offline
New User
 
Join Date: Apr 2010
Posts: 2
Default

I just found this page with google.
I have the exact same problem on two servers.

OpenBSD 4.6 + Squirrelmail on one server.
OpenBSD 4.6 + Cacti on one server.

The symptoms are the same on both servers, the exact same as sputnik described.

I can see in the logs for Cacti that it segfaults every time the page goes blank.

A solution for this would be much appreciated.
Reply With Quote
  #9   (View Single Post)  
Old 21st April 2010
Botanic Botanic is offline
New User
 
Join Date: Apr 2010
Posts: 2
Default

Solved it!

# vi /var/www/conf/php.ini
change: suhosin.session.encrypt = off
# apachectl restart

Explanation:
www mail-archive.com/misc@openbsd.org/msg85654.html

This solved my problem on both servers. Hopefully 4.7 will have fixed this.
Reply With Quote
Old 21st April 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

This is fixed in the 4.6 stable ports tree.
Reply With Quote
Old 26th April 2010
sputnik sputnik is offline
Port Guard
 
Join Date: Mar 2009
Posts: 25
Default

Yep, Botanic's proposed solution helped. Thank you!
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
fbsd 7.2 and php5 baraboom FreeBSD Ports and Packages 2 9th July 2009 08:33 PM
apache2.2+PHP5 edvinus OpenBSD Packages and Ports 1 29th June 2009 08:13 PM
Upgrade Apache 1.3 mod_ssl to Apache 2.2 beandip FreeBSD Ports and Packages 11 26th March 2009 09:12 PM
Problem with upgrading php5-pcre and php5-mysql KernelPanic FreeBSD Ports and Packages 6 16th June 2008 10:00 PM
Apache 2 + php5 + mod_fcgid (in jail) trilog FreeBSD Ports and Packages 0 12th June 2008 05:47 PM


All times are GMT. The time now is 10:51 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