LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-21-2010, 03:11 PM   #1
openmind
Member
 
Registered: Feb 2010
Distribution: Debian
Posts: 32

Rep: Reputation: 16
Something wrong with Apache or php


Something go wrong with php and Apache, at first, the $GLOBALS array is looking like this
Code:
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_POST] => Array
        (
        )

    [_GET] => Array
        (
        )

    [_COOKIE] => Array
        (
        )

    [_FILES] => Array
        (
        )

)
Where is $GLOBALS[SERVER] ? And php debugging messages are no more printed in browser? When error occur I get 500 error message in headers and nothing more. I would like to have errors printed in browser again
Before, I installed Mysql and PHP-gd from Debian repository, could it be the problem?
I'm using apache/2.2.9(linux) PHP/5.3.2-1 with Suhosin-Patch according to Header Spy
 
Old 04-02-2010, 03:34 AM   #2
anthonylane13
LQ Newbie
 
Registered: Dec 2007
Location: UK
Distribution: Slackware 12.1
Posts: 12

Rep: Reputation: 1
I thought the $GLOBALS variable/ array/ whatever was deprecated in PHP 5.x? To activate error reporting you can use
error_reporting(E_ALL);
Hope that helps.
 
Old 04-02-2010, 06:58 AM   #3
openmind
Member
 
Registered: Feb 2010
Distribution: Debian
Posts: 32

Original Poster
Rep: Reputation: 16
the reason was in display_errors var.
Everything good now. Anyway, tanks
 
  


Reply

Tags
errors, php5 apache


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
php/shell script to install mysql,apache and php automatically stranger_6_7 Linux - General 2 08-11-2009 02:07 AM
Please help with Apache Web Server / Apache Tomcat / PHP / Java / PHP-Java Bridge jpmad4it Linux - Server 2 01-05-2009 06:07 AM
Centos 5.2 running Apache 2 and PHP 4 cannot display info.php codenjanod Linux - Server 2 08-19-2008 02:00 AM
installed php and apache yet my php pages dont load ?? jessica_lilly Linux - Software 1 11-13-2007 01:57 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM


All times are GMT -5. The time now is 09:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration