Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-31-2005, 06:18 PM
|
#1
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 193
Rep:
|
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.
|
|
|
05-31-2005, 06:31 PM
|
#2
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
06-01-2005, 06:19 AM
|
#3
|
Member
Registered: Jul 2004
Distribution: Mandrake 10.x, Fedora Core 3, Archlinux 0.7, Ubuntu 5.04
Posts: 303
Rep:
|
Usually URPMI takes care of config. PHP5 should already be running over the old version.
|
|
|
06-01-2005, 07:09 AM
|
#4
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 193
Original Poster
Rep:
|
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
|
|
|
06-01-2005, 01:08 PM
|
#5
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Maybe you should remove both versions of php and then install the new one.
|
|
|
06-01-2005, 03:21 PM
|
#6
|
Member
Registered: Apr 2004
Distribution: Debian
Posts: 193
Original Poster
Rep:
|
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!
|
|
|
All times are GMT -5. The time now is 03:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|