[opensuse] Apache, PHP works but the PHP extensions don't
PHP functions normally from the command line, but is missing features
when running from Apache
Both tests use this code (hello_gd.php):
<?php
var_dump(gd_info());
?>
php ./hello_gd.php => Dumps the expected diagnostics out to the
terminal.
When I do this:
firefox http://localhost/~dlmarti/hello_gd.php => I get a blank screen.
The "/var/log/apache2/errorlog" shows this:
[Sun Jan 20 16:34:47 2008] [error] [client XXX.XXX.XXX.XXX] PHP Fatal
error: Call to undefined function gd_info()
in /home/dlmarti/public_html/hello.php on line 2
I am running a fresh install of SUSE 10.3, with all the patches.
Previously I was running SUSE 10.1, and I've compared the setup and I
don't see any major differences.
Anyone have any idea where to continue looking? Its like PHP can't find
its libraries when running from Apache?
--
David L. Martin
David L. Martin escribió:
Anyone have any idea where to continue looking? Its like PHP can't find its libraries when running from Apache?
zypper in php5-gd rcapache2 restart and have fun.. -- "The only thing that interferes with my learning is my education." - Albert Einstein Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Cristian Rodríguez
-
David L. Martin