How do I run it so that PHP5 is the primary one, and can be updated via WHM, and PHP4 is the secondary one?
My main concern is that if I run PHP from SSH, it should call the PHP5 binaries, and not the PHP4 binaries
How do I run it so that PHP5 is the primary one, and can be updated via WHM, and PHP4 is the secondary one?
My main concern is that if I run PHP from SSH, it should call the PHP5 binaries, and not the PHP4 binaries
- cPanel :: Fantastico :: RVSkin :: WHM :: ModernBill
- Reseller Hosting :: SSL Certificates :: Domain Registrations :: Affiliate Program
- Blog Hosting :: CMS Hosting :: Forum Hosting :: E-Commerce Hosting
SoftDux- The Leaders in Software
Use the coupon: cpanel-06 to get 20% off our packages
Guys, I advice you to check the How-to. I have modified php5 wrapper to actually works with php.ini when they placed under any directory (like for addon domains).
Enjoy!
Reliable web-hosting, good resellers plans, web-design.
ISProHosting.com
For those that have noticed choon.net is down you can try
HTML Code:http://www.lrnx.org/distfiles/php-5.2.3-mail-header.patch
█ ULTRA Website Hosting - 8 Years Hosting
█ Shared | Reseller | Dedicated | Colocation
That is strange everything works but post parameters is not send ..
Here is my configuration :
PHP Version 5.2.3
Loaded Configuration File : /home/mentade/public_html/php.ini
tail -1 /home/mentade/public_html/php.ini
cgi.force_redirect = 1
Configure Command : './configure' '--prefix=/usr/local/php5' '--exec-prefix=/usr/local/php5' '--program-suffix=5' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-iconv' '--with-imap=/usr/local/imap-2004g' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pspell' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-wddx' '--with-xmlrpc' '--with-zip' '--with-zlib' '--enable-force-cgi-redirect' '--enable-discard-path' '--with-pdo-mysql'
/usr/local/apache/bin/httpd -v
Server version: Apache/1.3.37 (Unix)
Server built: Jun 14 2007 17:07:33
/usr/local/apache/bin/httpd -l
Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
mod_ssl.c
mod_frontpage.c
suexec: enabled; valid wrapper /usr/local/apache/bin/suexec
After i make a POST $_POST var always empty.
Any ideas what is going on ?
I found it itissue was in mod_security module
![]()
Anyone run into this?
HTML Code:checking whether to enable LIBXML support... yes checking libxml2 install dir... no checking for xml2-config path... /usr/bin/xml2-config configure: error: libxml2 version 2.6.11 or greater required.
█ ULTRA Website Hosting - 8 Years Hosting
█ Shared | Reseller | Dedicated | Colocation
I think I've found an error in the tutorial with new revisions of php5 (when doing this on a new server). If you are getting 500 errors, and "premature end of script errors" in your apache error.log, try the following:in place ofCode:cp -f /usr/local/php5/bin/php-cgi5 /usr/local/cpanel/cgi-sys/php5Worked for me.Code:cp -f /usr/local/php5/bin/php5 /usr/local/cpanel/cgi-sys/php5
Thank you, it is what we have used for some time but forgot to update how-to.
Reliable web-hosting, good resellers plans, web-design.
ISProHosting.com
I found an error:
cp -f /usr/local/php5/bin/php5-cgi /usr/local/cpanel/cgi-sys/php5
should be:
cp -f /usr/local/php5/bin/php-cgi5 /usr/local/cpanel/cgi-sys/php5
Reliable web-hosting, good resellers plans, web-design.
ISProHosting.com
Does anyone know how to fix the following error?
"No input file specified."
I have both the following in the config line:
'--enable-force-cgi-redirect' '--enable-discard-path'
I have tried a number of things by searching google, but none of them seem to work.
crucialparadigm - Now with InterNAP on Limited Orders - Affordable, Reliable, Professional
• 24/7 Support • Web Hosting • Reseller Hosting • Remote Backup • Dedicated Servers •
Affordable High Bandwidth Servers • Check out our dedicated server specials!
Have you actually copied php5 binary to /usr/local/cpanel/cgi-sys/ ?
Also are you sure php files is available? When you try to go to missed .php5 file you may get such response.
The best way is to view your logs and and quickly find out the reason. Most common is wrong permissions.
Reliable web-hosting, good resellers plans, web-design.
ISProHosting.com
Yes, details below:
[root@**** cgi-sys]# ls -alh
total 34M
drwxr-x--x 2 root wheel 4.0K Jul 11 19:53 .
drwx--x--x 41 root wheel 4.0K Jul 11 03:14 ..
-rwxr-xr-x 1 root wheel 25 Mar 22 2006 addalink.cgi
-rwxr-xr-x 1 root wheel 18K May 23 2006 cgiecho
-rwxr-xr-x 1 root wheel 18K May 23 2006 cgiemail
-rwxr-xr-x 1 root wheel 150K May 23 2006 Count.cgi
-rwxr-xr-x 1 root wheel 1.1K Mar 22 2006 countedit.cgi
-rw-r--r-- 1 root wheel 1.6K Jul 11 03:14 .cpanelsync
-rw-r--r-- 1 root wheel 1.9K Jul 11 03:14 .cpanelsync.md5s
-rwxr-xr-x 1 root wheel 53K Jul 6 03:15 domainredirect.cgi
-rwxr-xr-x 1 root wheel 55K Jul 6 03:15 entropybanner.cgi
-rwxr-xr-x 1 root wheel 2.9K Jun 27 00:23 entropybanner.cgi-wrap
-rwxr-xr-x 1 root wheel 4.6K Jun 27 00:23 entropysearch.cgi
-rwxr-xr-x 4 root wheel 2.2M Jul 6 03:15 formmail.cgi
-rwxr-xr-x 4 root wheel 2.2M Jul 6 03:15 FormMail.cgi
-rwxr-xr-x 1 root wheel 2.2M Jul 6 03:15 FormMail-clone.cgi
-rwxr-xr-x 4 root wheel 2.2M Jul 6 03:15 formmail.pl
-rwxr-xr-x 4 root wheel 2.2M Jul 6 03:15 FormMail.pl
-rwxr-xr-x 1 root wheel 659K Jul 6 03:15 guestbook.cgi
-rwxr-xr-x 1 root wheel 4.3K Jun 27 00:23 helpdesk.cgi
-rwxr-xr-x 1 root wheel 2.0M Jul 6 03:15 mchat.cgi
-rwxr-xr-x 1 root wheel 18M Jul 11 19:53 php5
-rwxr-xr-x 1 root wheel 44K Jul 6 03:15 randhtml.cgi
-rwxr-xr-x 1 root wheel 2.9K Jun 27 00:23 randhtml.cgi-wrap
-rwxr-xr-x 1 root wheel 25 Mar 22 2006 realhelpdesk.cgi
-rwxr-xr-x 1 root wheel 2.1M Jul 6 03:15 realsignup.cgi
-rwxr-xr-x 1 root wheel 152 Jun 27 00:23 redirect.cgi
-rwxr-xr-x 1 root wheel 9.9K Jun 27 00:23 scgiwrap
-rwxr-xr-x 1 root wheel 4.3K Jun 27 00:23 signup.cgi
-rwxr-xr-x 1 root wheel 151 Jun 27 00:23 sredirect.cgi
-rwxr-xr-x 1 root wheel 152 Jun 27 00:23 swhmredirect.cgi
-rwxr-xr-x 1 root wheel 151 Jun 27 00:23 whmredirect.cgi
-rwxr-xr-x 1 root wheel 156 Jun 27 00:23 wredirect.cgi
[root@**** cgi-sys]#
[root@**** cgi-sys]# pwd
/usr/local/cpanel/cgi-sys
[root@***** cgi-sys]#
Yes, already checked this, and has correct permissions:Also are you sure php files is available? When you try to go to missed .php5 file you may get such response.
[root@**** public_html]# ls -alh
total 56K
drwxr-x--- 10 aarontes nobody 4.0K Jul 12 17:08 .
drwx--x--x 7 aarontes aarontes 4.0K Jul 11 02:11 ..
drwxr-xr-x 2 aarontes aarontes 4.0K Jul 11 02:02 cgi-bin
-rw-r--r-- 1 aarontes aarontes 356 Jul 11 02:02 .htaccess
drwxr-xr-x 2 aarontes aarontes 4.0K Jul 11 02:02 images
-rwxr-xr-x 1 aarontes aarontes 20 Jul 11 01:46 index.php5
....
Nothing in the logs either!The best way is to view your logs and and quickly find out the reason. Most common is wrong permissions.Not sure what the problem is, I have tried recompiling a number of times, however had no luck at all.
Any ideas ?
crucialparadigm - Now with InterNAP on Limited Orders - Affordable, Reliable, Professional
• 24/7 Support • Web Hosting • Reseller Hosting • Remote Backup • Dedicated Servers •
Affordable High Bandwidth Servers • Check out our dedicated server specials!
pls. help me how to create a user login page for my website... should i use cgi or php?
many thanks.
Guys!
A question for you - we're using the php5 and php4 setup mentioned in this thread with phpsuexec.
Perhaps you know of the trick with mod_rewrite where you can add the server variable of http authentication? (since php isnt an apache mod, that's the way it has to go if you intend to use it)
Well anyway, when we try to set a server variable through mod_rewrite when using php4 - It works! But when we set it after adding the AddHandler for php5 in the .htaccess file - it stops working. The variable is empty.
Has anyone gotten it to work?
Here's the code I've found on a forum if you'd like to try with your "second" install of php:
http://forum.neutralweb.com/showpost...87&postcount=5
Any suggestions are welcome..![]()