Go Back  HTML Forums - Free Webmaster Forums and Help Forums > SERVER ADMINISTRATION > Linux Administration
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 10-06-2009, 09:50 PM
  #1
ktsirig
Veteran (Level 7)
 
Join Date: Sep 2005
Posts: 64
iTrader: (0)
ktsirig is an unknown quantity at this point
How can I set PHP5 as default?

Hello all,
on the server machine I am working, there is for some unexplained reason both PHP4 and PHP5 installed. Actually, for PHP4, there is only the PHP4-core files as I saw in the administration panel. However, I have a script that has shown some errors when being executed via PHP4 but works ok when PHP5 takes over. My question is, is there a way to "tell" Apache that I want to use only PHP4? The weird thing is that there's only the php5_apache2 module installed, but when I write in a terminal :

Code:
 php -v
,
I get:
Code:
PHP 4.3.10 (cli) (built: Apr 23 2005 04:10:27)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
and also, when I ran:
Code:
which php
,
I get:
Code:
/usr/bin/php
but I can see that there is also
Code:
/usr/bin/php5
there. And if I write:
Code:
php5 -v
, I get:
Code:
PHP 5.0.3 (cgi) (built: Apr 23 2005 08:18:44)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies
Is there something in the Apache configuration file that I must change so that Apache will use Php5 only?

Thank you!
ktsirig is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 10-09-2009, 03:26 PM
  #2
Vege
Super Deity (Level 18)
 
Join Date: Sep 2004
Location: Finland
Posts: 3,410
iTrader: (0)
Vege is just really niceVege is just really niceVege is just really niceVege is just really nice
so you want to run both php5 and php4 or just one?
Vege is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 07:32 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.