Results 1 to 4 of 4

Thread: php worked but php_info() show nothing. pls help!

  1. #1

    Default php worked but php_info() show nothing. pls help!

    Hi guys,

    I'm a newbie in OpenSUSE. I've just installed OpenSUSE 12.2 and the "Web and LAMP Server" in YaST, through this SDB:Linux Apache MySQL PHP - openSUSE article.

    I made a file called testphp.php with below code:
    Code:
    <?php
    echo "Just for testing php";
    ?>
    then run in localhost successfully, with "Just for testing php" text.

    But when I made a file called info.php with below code:
    Code:
    <?php
      echo "<b>Testing the PHP</b><br/>";
      phpinfo(); 
    ?>
    then run in localhost, there's nothing showed, just a totally white page, even there's no the "Testing the PHP" text.

    And below is the error_log from /usr/var/apache2:
    Code:
    [Fri Sep 28 14:00:31 2012] [error] [client ::1] PHP Warning:  Unknown: failed to open stream: Permission denied in Unknown on line 0
    [Fri Sep 28 14:00:31 2012] [error] [client ::1] PHP Fatal error:  Unknown: Failed opening required '/home/thaw/public_html/info.php' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in Unknown on line 0
    Also, below is the access_log from /usr/var/apache2:
    Code:
    ::1 - - [28/Sep/2012:14:00:31 +0700] "GET /~thaw/info.php HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20100101 Firefox/14.0.1"
    I'm sure that I installed php5-pear package.

    Thanks for all ur helps!

  2. #2

    Default Re: php worked but php_info() show nothing. pls help!

    add: I tried to run "php info.php" from terminal and it worked successfully.

    I'm also sure that php5 module is on apache2 already!

  3. #3

    Default Re: php worked but php_info() show nothing. pls help!

    sorry, the log is from /var/log/apache2, not /usr/var/apache2

  4. #4

    Default Re: php worked but php_info() show nothing. pls help!

    OMG, I fixed this after chmod 777 to files.

    thanks anyway.

Posting Permissions

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