|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
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? |
|
|||
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... |
|
||||
Quote:
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. |
|
|||
Apache log files? Nope, nothing unusual, neither custom or error log...
|
|
|||
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 |
|
|||
Yes, i have those lines, and i have default php.ini. Apache logs doesn't show any errors.
|
|
|||
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. |
|
|||
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. |
|
|||
This is fixed in the 4.6 stable ports tree.
|
|
|||
Yep, Botanic's proposed solution helped. Thank you!
|
Thread Tools | |
Display Modes | |
|
|
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 |