Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Where to find error logs in PHP

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 196
    Comment on it

    Hello Reader's! If you need to access your error log files in php then using Linux you can browser it as follows:-

     abhishek@roor /var $ sudo updatedb
        [sudo] password for abhishek:
        abhishek@roor /var $ sudo locate error_log    
        /var/log/httpd/error&_log
    

    An you can also see it the path below:-

    /var/log/apache2/error_log
    

    And for any other envrionment you can create the page name info.php and paste the code below:-

    <?php
    info()
    ?>
    

    Now when you run this, you just have to look for error log file path and you can get it there.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: