
20th October 2011, 12:13
|
|
Senior Member
|
|
Join Date: Jan 2007
Location: Prague, Czech
Posts: 402
Thanks: 31
Thanked 23 Times in 18 Posts
|
|
Debian, ISPConfig 3.0.3.3, mod_fcgi+suExec, PHP not showing errors
Hello,
maybe somebody can give me some advice.
i have started migrate pages from ISPC2 to ISPC3, all new pages are created under mod_fcgi + SuEXEC
Now i have a problem, webpages are not showing any php errors
it doesnt matter what i set in
/etc/php5/cgi/php.ini or /etc/php5/apache2/php.in section error_reporting
any of choices
Default Value: E_ALL & ~E_NOTICE
Development Value: E_ALL | E_STRICT
Production Value: E_ALL & ~E_DEPRECATED
is not showing any error for pages in browser
?
|

20th October 2011, 12:33
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,191 Times in 3,207 Posts
|
|
Do the pages work or do you see just a white page? If you get just a white page, then take a look at the error.log of the website.
If you migrated the pages, please check that all files and folders are owned by the web user and client group of the website, if the files are owned by root, then php-fcgi will fail with a security error in the error.log and show just a white page.
|

20th October 2011, 12:42
|
|
Senior Member
|
|
Join Date: Jan 2007
Location: Prague, Czech
Posts: 402
Thanks: 31
Thanked 23 Times in 18 Posts
|
|
i have migrated pages by FTP so owner is good..
1.
when there is error, like bad mysql connection config, page is just white, instead of showing error defined in PHP code, as for example "wrong SQL connection"
i'd like the web pages showing this error...
2.
error.log seems to work correctly
only weird thing is that it is full of messages which werent shown under mod_php, as
[warn] Undefined index:
[warn] Undefined variable:
can i show just
[error] messages in error log ?
again setting of erorr reporting in php doesn't seems to do any change
does it all something to do with fcgi + suExec ?
|

20th October 2011, 13:28
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,191 Times in 3,207 Posts
|
|
Quote:
|
does it all something to do with fcgi + suExec ?
|
No, I dont think so.
The error_reporting setting in php ini defines just which errors are reported and not where they are reported. Since Debian 6, error reporting on screen is off by default to protect the web applications. To turn it on, edit the php.ini and change:
display_errors = Off
to:
display_errors = On
and restart apache.
|

20th October 2011, 14:00
|
|
Senior Member
|
|
Join Date: Jan 2007
Location: Prague, Czech
Posts: 402
Thanks: 31
Thanked 23 Times in 18 Posts
|
|
thank you for info!
|

20th October 2011, 14:38
|
|
Senior Member
|
|
Join Date: Jan 2007
Location: Prague, Czech
Posts: 402
Thanks: 31
Thanked 23 Times in 18 Posts
|
|
just for info
Here is something about
http://php.net/manual/en/errorfunc.configuration.php
i was right about it
When using PHP with Apache mod_fcgid and "log_errors = On", PHP errors get logged into Apache ErrorLog file with severity "warn". No matter what severity the PHP error itself has, the severity in the Apache log is "warn".
some solutions on the page had no time for testing...
|
|
The Following User Says Thank You to radim_h For This Useful Post:
|
falko (21st October 2011)
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 23:43.
|
Recent comments
14 hours 31 min ago
23 hours 59 min ago
1 day 48 min ago
1 day 4 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 11 hours ago
1 day 21 hours ago
2 days 2 hours ago
2 days 3 hours ago