LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-31-2005, 06:18 PM   #1
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Rep: Reputation: 30
php5 - how to enable[solved]


Hi -

I currently have php 4.3.8 and I used urpmi to install php5. What do I need to do to enable it? I dont see anythign in the httpd2.conf like a mod_php, and restarting it obviously didnt work.

the urpmi gave no errors, i did urpmi php5-mysql, urpmi php5-cli, urpmi apache2-mod_php5

there were no errors.

I assume I need to change something then restart httpd, anyone know what else is needed? I glanced over the commonhttpd.conf, and did not see anything in there.

thanks in advance

Last edited by rjcrews; 06-01-2005 at 03:21 PM.
 
Old 05-31-2005, 06:31 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I am sure installing a new version of php should overwrite the old one and make all necessary changes to your apache configuration files so that you can use php5.
 
Old 06-01-2005, 06:19 AM   #3
caladbolg
Member
 
Registered: Jul 2004
Distribution: Mandrake 10.x, Fedora Core 3, Archlinux 0.7, Ubuntu 5.04
Posts: 303

Rep: Reputation: 31
Usually URPMI takes care of config. PHP5 should already be running over the old version.
 
Old 06-01-2005, 07:09 AM   #4
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
Thats what I thought, but php info still shows 4.3.8, and the config files are unchanged. The httpd2.conf file includes the file with the php stuff. This file is unchanged. I tried to edit it but only got errors or no change.


Code:
<IfDefine HAVE_PHP4>
  <IfModule !mod_php4.c>
    LoadModule php4_module    extramodules/mod_php4.so
  </IfModule>
</IfDefine>

<IfModule mod_php4.c>
    PHPINIDir /etc
</IfModule>

<IfModule mod_mime.c>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .phtml
    AddType application/x-httpd-php-source .phps
</IfModule>

i also now have a php.ini and a php5.ini file, as well as a php5.d and a php.d dir

Any ideas?

thx
 
Old 06-01-2005, 01:08 PM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Maybe you should remove both versions of php and then install the new one.
 
Old 06-01-2005, 03:21 PM   #6
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
Ah that helped. I removed php and reinstalled it and it worked....think i didnt install php5 correctly using urpmi or something.


anyway, its working now, thanks!
 
  


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
Apache2 and PHP5 rul3r Slackware 7 09-11-2005 05:21 PM
Compiling PHP5 Terroth Linux - Newbie 2 06-27-2005 01:35 PM
Tao and PHP5 bytebrowser Linux - Software 1 04-06-2005 10:57 PM
php5 Hampster Linux - Software 4 01-09-2005 04:50 PM
Installing PHP5 varunbihani Linux - Software 0 01-07-2005 06:45 AM

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

All times are GMT -5. The time now is 11:06 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