PHP/Apache2: PHP Pages are just blank

Firstly, THIS ISN’T A SCRIPTING ERROR! I’M USING PHPMYADMIN (or trying to)! People on #httpd are useless for help.

Well, ir jus installed Apache2 and PHP5 on my openSuSE 11.2 server, and I just get blank pages for PHP, but HTML works fine. Ima jus guess this is a common error. Is there any fix for it?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Check the /var/log/apache2/error_log file to see what it shows. I believe
this will show your PHP errors as well.

Sorry about your experience in #httpd; they do not necessarily know PHP so
you may have had better luck in #php (or is it ##php). Anyway, I’m sure
we’ll get it fixed here.

Good luck.

On 07/01/2010 01:36 PM, IKingJohnI wrote:
>
> Firstly, THIS ISN’T A SCRIPTING ERROR! I’M USING PHPMYADMIN (or trying
> to)! People on #httpd are useless for help.
>
> Well, ir jus installed Apache2 and PHP5 on my openSuSE 11.2 server, and
> I just get blank pages for PHP, but HTML works fine. Ima jus guess this
> is a common error. Is there any fix for it?
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMLO5sAAoJEF+XTK08PnB598YP/jeafWe4X5PwdcR1pfOvywAj
OGr+cIXU+YAvFjblNcQbSl8QUtu6LrPJxD1tqT824oWLlCCw3h46av+WfU3x9bYU
bQJPQ71Occnz7VJcxiTtzDo2fkNsG5uP5yerBhTuAXqKR+gFC4yR8cwoyzD/B2hK
UVTwnfp7ZwOaQ0M/+zNNDkzvumiF8Z1ZNK8WlBOcYBftdNZmc5GIrDVSE5Xtv4w6
BH6Hv7pGBVHbAUF81nKI2nZsz2bzJqAOtfQFZzbmLVbYZVFMacZiumCXJL9SyB11
p7Qh6YrqNkWn69rvKHB+Tk5NpaLjAti2uE+W/IEgwO4sGGUzNSxEZ0yemQORR+Pq
sQtZD3ep0vuUsNzzJBkKR42EsAiUypBkDtnM0PdmsD+Pm40VWUnq7aZ4tpL3W4tO
K0o6MbiQQDdSLndjoqjB8/U1w8HkYsRDC7jhUhsyE45GhlCm91VmserDjhDp6uCB
Yv//qn2C0v+HLJQVQHB042sLiT7E/ITxYicx/5J7CZNHe3uMae4GiyE4+syMe+tk
u4EYhPApKS7NPLSri4fVCQxK/Tb1lHWN8b/WL9pCCt2gKFHwfPmEkg0/xKt37cvC
HJxAJTio+7R8tJyQRVF7qzCVlzjJx3x597FYVi+39Pf0778cpBds5ELF2JhQVoIY
XDL2xNnOfT83FB69c9qG
=U5qh
-----END PGP SIGNATURE-----

[Thu Jul 01 13:58:07 2010] [error] [client 192.168.1.39] PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
[Thu Jul 01 13:58:07 2010] [error] [client 192.168.1.39] PHP Fatal error: Unknown: Failed opening required ‘/srv/www/htdocs/phpMyAdmin/index.php’ (include_path=’.:/usr/share/php5:/usr/share/php5/PEAR’) in Unknown on line 0

Output from the log. I don’t quite understand what it is supposed to mean. I asked in ##php, they told me it was an httpd question. People in httpd knew, they just didn’t want to explain it.

EDIT: I changed permissions on all the files, seemed to get things running.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Well it looks like you figured it out. This is the critical part:

PHP Warning: Unknown: failed to open stream: Permission denied in Unknown

PHP is trying to include a required file and failing because of
permissions. Good job on that one.

Good luck.

On 07/01/2010 02:49 PM, IKingJohnI wrote:
>
> [Thu Jul 01 13:58:07 2010] [error] [client 192.168.1.39] PHP Warning:
> Unknown: failed to open stream: Permission denied in Unknown on line 0
> [Thu Jul 01 13:58:07 2010] [error] [client 192.168.1.39] PHP Fatal
> error: Unknown: Failed opening required
> ‘/srv/www/htdocs/phpMyAdmin/index.php’
> (include_path=’.:/usr/share/php5:/usr/share/php5/PEAR’) in Unknown on
> line 0
>
> Output from the log. I don’t quite understand what it is supposed to
> mean. I asked in ##php, they told me it was an httpd question. People in
> httpd knew, they just didn’t want to explain it.
>
> EDIT: I changed permissions on all the files, seemed to get things
> running.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMLQC5AAoJEF+XTK08PnB5BfMP/0i2bRf9hMev6Q9i711DSDXN
pszTzSI4LfZwfl5kmO2K+sG2glhiJsyqvup/tlD3RQSteLl8NVg7AgvaYlszE4NF
PBmc/57VUe6VY4AgqJ6RBs4+lGT/Ex1P361DOtuEdi8nzUlHXcV7U8nYP9z+eJPO
IRALUybjhAYKAWMrJJdEIQ5+QKGGtmJrZbUYiwO5SZBVzFD3v2wAWFYtiBOZ5IW3
7BtWVyJGa39PK1gxLB4R7dO6zI43h6Y/fbXYjYlphBMp+QGKt+xTdKQTGRKTwbSC
vzen0+B5l/heGHEa74wjjyWt3q1HvkeWccuSsgGYn1x0ILKKqf33jvwwYp6ZHitC
3RY7EKyux5CaeQjD/hhizqjbqCSzuUMI1HZfNCirCF8APOFrx1bPFE6SUIkF2Qku
AlDp8/38pqADp2AsELF+SWfVcWPYiYRUnLQYHiMrVoDSs1NfPol1MGB0SRyt23lA
cHU/6XYYQfSmlGvG0+hjI/NELD6j+unOUES6jslUZclODU3iIZM6DLEp59nS0utg
qcBCcwBAQjQz0GQUDTpPsGyj0zBH27v8QhUlVlV5Sd/MbkVmCoMf1JiXSNB7Wrhj
WHcLNW1/f8zFGWuVQbmXsnCXVgYztXN01uhDzN+DNxpShllqhuGomzegL7zR5sTM
nMstzyk/CuNzmmQMbIzG
=zw3R
-----END PGP SIGNATURE-----