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:
<?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:
<?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:
[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:
::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!