SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru
    Join Date
    Sep 2004
    Location
    Provo, UT
    Posts
    865
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    PHP errors are not showing even though php.ini is set to show them

    In my php.ini file I have the following set:

    error_reporting = E_ALL

    I've also tried adding the following line to my php code:

    ini_set('error_reporting', 'On');

    However, it's still not showing error messages when I purposely put a bug into the code. Any ideas on why it's not working? I am running PHP 5.3, which should be utilizing a separate php.ini file for each subdirectory. This test PHP page is in a subdirectory off the root.

    Thanks!
    Convert your dollars into silver coins. www.convert2silver.com

  2. #2
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    have you check for error log on the directory the script is running on the server, some servers automatically creates a log file when there is error

  3. #3
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    5,067
    Mentioned
    103 Post(s)
    Tagged
    0 Thread(s)
    Did you reboot the server after making the change to the php.ini file?

    Did you edit the correct php.ini file? If you view the output of phpinfo() you'll see a value for "Loaded Configuration File" which should be the php.ini file which PHP is using
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator

  4. #4
    SitePoint Guru
    Join Date
    Sep 2004
    Location
    Provo, UT
    Posts
    865
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SpacePhoenix View Post
    Did you reboot the server after making the change to the php.ini file?

    It's working now for some reason. Does the server need to be rebooted every time a change is made to the php.ini file?

    Thanks!
    Convert your dollars into silver coins. www.convert2silver.com

  5. #5
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,053
    Mentioned
    66 Post(s)
    Tagged
    0 Thread(s)
    The web server program needs to be restarted. You don't necessarily have to reboot the whole server.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •