homepage Welcome to WebmasterWorld Guest from 54.167.41.199
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
How can I set PHP5 as default?
ktsirig




msg:4002645
 1:49 am on Oct 7, 2009 (gmt 0)

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 :

php -v ,
I get:
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:
which php,
I get:
/usr/bin/phpbut I can see that there is also /usr/bin/php5 there. And if I write:
php5 -v, I get:
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!

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved