Find the answer to your Linux question:
Results 1 to 3 of 3
Hello again all! After successfully (Thx again Dolda) configuring/compiling PHP4 most everything that I've tried in the PHP HOWTO has worked. Everything except for phpinfo(). Everything that I've read has ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! adamdaughterson's Avatar
    Join Date
    Mar 2003
    Location
    Denver, Colorado, USA
    Posts
    78

    phpinfo(); errors...


    Hello again all! After successfully (Thx again Dolda) configuring/compiling PHP4 most everything that I've tried in the PHP HOWTO has worked. Everything except for phpinfo(). Everything that I've read has the same basic syntax:

    <html>
    <head></head>
    <body>
    <?php
    phpinfo();
    ?>
    </body>

    I've named this phpinfo.php (I've set httpd.conf to accept .php as the extension), and attempted to display the page. Here is the output in the browser:

    Warning: Unknown(/usr/local/apache2/htdocs/phpinfo.php): failed to open stream: Permission denied in Unknown on line 0

    Warning: (null)(): Failed opening '/usr/local/apache2/htdocs/phpinfo.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0

    Is this YACB(Compilation Blunder ), or a need to authenticate?

    Adam

  2. #2
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    Du you have correct permissions on your webbfiles??
    Regards

    Andutt

  3. #3
    Just Joined! adamdaughterson's Avatar
    Join Date
    Mar 2003
    Location
    Denver, Colorado, USA
    Posts
    78
    Evidently I did not have the permissions set properly. Thanks.
    Adam

Posting Permissions

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