LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-27-2007, 10:10 AM   #1
streamkid
LQ Newbie
 
Registered: Nov 2006
Distribution: gentoo
Posts: 7

Rep: Reputation: 0
PHP4 -> 5 upgrade in Debian 3.1


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

Last edited by streamkid; 06-27-2007 at 10:18 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help loading php4-gd with php4 already installed. (Debian) sdduuuude Linux - Software 3 10-24-2005 05:13 AM
php4 problem when upgrade MySQL-server-4.1.12-1 dev_mohamed Linux - Software 1 06-22-2005 02:58 PM
php4 with apache2? the debian way, how? Tisch Debian 4 08-19-2004 09:35 AM
Upgrade php4.2 and GD1.6? help mcadle Red Hat 0 04-02-2004 08:57 PM
Apache + PHP4 on Debian Mikessu Linux - Networking 3 12-31-2003 12:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration