Operating System - Linux
1752421
Members
5804
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2007 02:22 AM
тАО06-14-2007 02:22 AM
php help
Not sure how to proceed but here it is..
I have redhat default php installed in /usr/bin...
[root@dtccdr bin]# which php
/usr/bin/php
[root@dtccdr bin]# /usr/bin/php -v
PHP 4.3.9 (cgi) (built: May 4 2007 11:04:51)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
[root@dtccdr bin]#
I have another version installed in /usr/local/bin/php..
[root@dtccdr bin]# /usr/local/bin/php -v
PHP 5.2.2 (cgi) (built: May 27 2007 15:52:45)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
[root@dtccdr bin]#
Now we would like to use the 5.2.2 and I need to know where to specify the path stement so it will always look at this one versus the one in /usr/local.
The customer doesn't want us removing the older version.
Thakns and points will be assigned.
I have redhat default php installed in /usr/bin...
[root@dtccdr bin]# which php
/usr/bin/php
[root@dtccdr bin]# /usr/bin/php -v
PHP 4.3.9 (cgi) (built: May 4 2007 11:04:51)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
[root@dtccdr bin]#
I have another version installed in /usr/local/bin/php..
[root@dtccdr bin]# /usr/local/bin/php -v
PHP 5.2.2 (cgi) (built: May 27 2007 15:52:45)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
[root@dtccdr bin]#
Now we would like to use the 5.2.2 and I need to know where to specify the path stement so it will always look at this one versus the one in /usr/local.
The customer doesn't want us removing the older version.
Thakns and points will be assigned.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2007 04:05 AM
тАО06-14-2007 04:05 AM
Re: php help
Hi:
Specify '/usr/local/bin' ahead of '/usr/bin' in your PATH variable to get the 5.2.2 version by default, first.
Regards!
...JRF...
Specify '/usr/local/bin' ahead of '/usr/bin' in your PATH variable to get the 5.2.2 version by default, first.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2007 04:06 AM
тАО06-14-2007 04:06 AM
Re: php help
You have to modify your PATH environment variable to list first the /usr/local/bin/ directory, for example:
export PATH=/usr/local/bin/:$PATH
Then you have to ensure that the apache configuration to use the right php_module, normally the file is /etc/httpd/conf.d/php.conf.
export PATH=/usr/local/bin/:$PATH
Then you have to ensure that the apache configuration to use the right php_module, normally the file is /etc/httpd/conf.d/php.conf.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2007 04:47 AM
тАО06-14-2007 04:47 AM
Re: php help
Ivan was almost somewhat correct.
Here are my findings..
I looked at the version of php that was installed and although it is the correct version, it does not have any modules installed for apache and thus apache cannot use this version.
Here are my findings..
I looked at the version of php that was installed and although it is the correct version, it does not have any modules installed for apache and thus apache cannot use this version.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP