I am working with a new server. The simple program <? phpinfo(); ?> fails to produce any output. Adding HTML to it results in the HTML working but not the PHP.
typing php index.php on the server gives.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/imap.so' - libc-client.so.0: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/pgsql.so' - libpq.so.4: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/xsl.so' - /usr/lib/php/modules/xsl.so: undefined symbol: dom_node_class_entry in Unknown on line 0 <? phpinfo();
Can anyone tell me what is wrong and how to fix it?
It may be that short_open_tag is off, but it doesn't seem so. Try using full tags
<?php phpinfo(); ?>
in your file to double-check anyway. If that still doesn't parse the file, then your installation is botched. I would reinstall and don't forget to include the libraries that you are attempting to use if they aren't installed on your system yet.
Thanks that is it. I had thought the installation was screwed. I didn't realise you could turn this syntax off and on. I checked the php.ini file too. It seems strange to me and I can imagine real problems with third party scripts.