Hello.
My system used to have php4.
I 'm currently developing a php app that needs php5.
I issued:
apt-get remove php4
apt-get install php5
I suppose php4 was removed correctly (no error msg). When configuring the php5 package, i was asked if i wanted to keep my modified apache config files (apache2.conf and the vhosts conf), and i answered yes. Apache was restarted. What i had: a php5 installation, that didn't have php-mysql module and i suppose it was not configured properly. I issued
apt-get install php5-mysql. Now, i seem to have mysql module loaded on php, but: in phpmyadmin, i log in correctly (before it reported that mysql module wasn't loaded). But when i access my homepage, i get this:
Fatal error: Call to undefined function mysql_connect() in /home/alex/public_html/index.php on line 37
What am i doing wrong?
I also tried to completely remove the php installation, so it asks me for configuration again, but i didn't achieve it. apt-get remove --purge php5 doesn't do the work for me. Any ideas?
Here is my phpinfo:
http://streamkid.de/info.php
EDIT: there is also no php.ini :s