Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 11 of 13 FirstFirst ... 9 10 11 12 13 LastLast
Results 151 to 165 of 191
  1. #151
    Member
    Join Date
    May 2006
    Location
    Johannesburg, South Africa
    Posts
    881

    Default PHP5 as primary?

    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

  2. #152
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Apr 2004
    Posts
    620

    Default

    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

  3. #153
    Member Solokron's Avatar
    Join Date
    Aug 2003
    Posts
    779

    Default

    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

  4. #154
    Member
    Join Date
    Apr 2006
    Posts
    16

    Default POST did not work

    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 ?

  5. #155
    Member
    Join Date
    Apr 2006
    Posts
    16

    Default

    I found it it issue was in mod_security module

  6. #156
    Member Solokron's Avatar
    Join Date
    Aug 2003
    Posts
    779

    Default

    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

  7. #157
    Member
    Join Date
    Oct 2005
    Posts
    26

    Default

    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:
    Code:
    cp -f /usr/local/php5/bin/php-cgi5 /usr/local/cpanel/cgi-sys/php5
    in place of
    Code:
    cp -f /usr/local/php5/bin/php5 /usr/local/cpanel/cgi-sys/php5
    Worked for me.

  8. #158
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Apr 2004
    Posts
    620

    Default

    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

  9. #159
    Member
    Join Date
    Jul 2004
    Posts
    102

    Default

    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

  10. #160
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Apr 2004
    Posts
    620

    Default

    Quote Originally Posted by driverC View Post
    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
    Ugh! Just a small typo - thank you - it has been fixed.
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  11. #161
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Feb 2004
    Posts
    72

    Default

    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!

  12. #162
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Apr 2004
    Posts
    620

    Default

    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

  13. #163
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Feb 2004
    Posts
    72

    Default

    Quote Originally Posted by ispro View Post
    Have you actually copied php5 binary to /usr/local/cpanel/cgi-sys/ ?
    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]#

    Also are you sure php files is available? When you try to go to missed .php5 file you may get such response.
    Yes, already checked this, and has correct permissions:

    [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
    ....


    The best way is to view your logs and and quickly find out the reason. Most common is wrong permissions.
    Nothing in the logs either! 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!

  14. #164
    Registered User
    Join Date
    Jul 2007
    Posts
    4

    Default login page

    pls. help me how to create a user login page for my website... should i use cgi or php?

    many thanks.

  15. #165
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Feb 2003
    Location
    Gothenburg, Sweden
    Posts
    323

    Default

    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..

    twitter: oderland_david

Similar Threads & Tags
Similar threads

  1. php4+php5(cgi)+htaccess(rewrite) problem
    By euroxsw in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-10-2006, 04:35 AM
  2. PHP4 & PHP5 together on one server under phpsuexec
    By WMS in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 02-23-2005, 11:05 AM
  3. Replies: 0
    Last Post: 02-14-2005, 10:49 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube