Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 2 of 13 FirstFirst 1 2 3 4 12 ... LastLast
Results 16 to 30 of 191
  1. #16
    Member
    Join Date
    Jun 2004
    Posts
    102

    Default

    I'm having the exact same problem, $_POST remains empty, no matter what I try.
    This happens on 3 different boxes.
    I should mention though, that this is php4 as CGI instead of php5.

    Minimal configure:

    './configure' '--prefix=/usr/local/php4' '--exec-prefix=/usr/local/php4' '--program-suffix=4' '--enable-force-cgi-redirect--enable-discard-path'

  2. #17
    Member
    Join Date
    Jun 2004
    Posts
    102

    Default

    $HTTP_RAW_POST_DATA is empty as well (I did set the php.ini to populate it).
    Last edited by Earendil; 11-05-2005 at 08:15 AM.

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

    Default

    Could you add the phpinfo() to your test page and send this link?

    Just to verify what is wrong...

    Also, your php.ini should conists
    cgi.fix_pathinfo=1

    In most error cases I was contacted it were human errors...
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  4. #19
    Member
    Join Date
    Jun 2004
    Posts
    102

    Default

    Quote Originally Posted by ispro
    Could you add the phpinfo() to your test page and send this link?

    Just to verify what is wrong...

    Also, your php.ini should conists
    cgi.fix_pathinfo=1

    In most error cases I was contacted it were human errors...
    I pm'd you the URL's, php.ini does contain that line, otherwise it won't work at all.
    It does work, $_GET works just fine.... just $_POST (as far as I can see).

  5. #20
    Member
    Join Date
    Oct 2003
    Posts
    87

    Default

    Quote Originally Posted by ispro
    P.S. Anyone who would like this setup, but not sure how to proceed - I may perform the compile works for your server(s) at a low rate on the working server with no service interruption. mod_php4 + php5/cgi combo will works as well (tested). PM me for information.
    I contacted ispro and had him do this setup on my server. I was previously using 2 apaches w/ the mod_proxy solution for PHP5.

    ispro configured everything a few days in advance, and then did the install at the time I chose. After the install he did not leave me high and dry, he stuck around and watched the apache logs for errors and helped fix errors as they arose.

    He also commented out all the ProxyPass lines in the httpd.conf, and fixed all the .htaccess files on the server by removing php_value's and php_flag's. He made sure that all the domains that were currently on PHP5 remained on PHP5 under this new setup.

    His service was nothing less than exceptional! If someone doesn't want to go through the hassle I would definently reccommend him.

    Thanks Again for the awesome setup, it will save me alot of time!

    Vince Wiley

  6. #21
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default libxml2 configure errors

    After trying to configure php 5.0.4 I was encountering an error relating to libxml2.

    Unfortunately I can't post the exact error as Putty crashed at the point I tried to copy the error!

    However I fixed it by installing the libxml2-devel rpm from within WHM (not that it matters how you install the rpm).

    I hope this helps if anyone else encounters the same problem.

  7. #22
    Member
    Join Date
    May 2003
    Posts
    73

    Default

    Does this intallation of PHP5 work wth MySQL4.1? Meaning, does it work wth 'mysql' extension or 'mysqli' extension is required? My application does NOT use 'mysqli'.

    Also, can you provide how to remove directions in case we want to completely remove this setup?

    Thanks!

  8. #23
    Member
    Join Date
    Jun 2004
    Posts
    102

    Default

    Quote Originally Posted by kmsd
    Does this intallation of PHP5 work wth MySQL4.1? Meaning, does it work wth 'mysql' extension or 'mysqli' extension is required? My application does NOT use 'mysqli'.

    Also, can you provide how to remove directions in case we want to completely remove this setup?

    Thanks!
    Both (if needed even simultanously - however you need to do some things for both to work together).

    Removing:

    rm -rf /usr/local/php5
    rm -rf /usr/local/cpanel/cgi-sys/php5

    remove the lines you added to Apache.

  9. #24
    Member
    Join Date
    May 2003
    Posts
    73

    Default

    Quote Originally Posted by Earendil
    Both (if needed even simultanously - however you need to do some things for both to work together).
    Thansk for the post. Out of the box (from this how-to) regular 'mysql' works, correct?

  10. #25
    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 Earendil
    Both (if needed even simultanously - however you need to do some things for both to work together).

    Removing:

    rm -rf /usr/local/php5
    rm -rf /usr/local/cpanel/cgi-sys/php5

    remove the lines you added to Apache.
    You would also need to "grep" through .htaccess files in /home*/public_html/ on the recursive basis and search "/cgi-sys/php5" if these actions were added by customers to process, for example, .phtml via php5, but leave .php via php4.
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  11. #26
    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 kmsd
    Thansk for the post. Out of the box (from this how-to) regular 'mysql' works, correct?
    Using mysql or mysqli is not depends on howto, but on your "configure" line.

    If you add --with-mysql=/PATH_TO_MYSQL - you will use mysql, if you add --with-mysqli=/PATH_TO_MYSQL_CONFIG - you will use mysqli.

    If you need both at once there is a little tweak involved to modify Makefile file after "configure", but before "make install". You would need to remove the second "-lmysqlclient" from the section "EXTRA_LIBS". Future versions of PHP5 could address this automatically I hope.

    We are not using MySQL 4.1.x at the moment as too much clients against the upgrade yet, but we have tested it on our test box and recently did the same for "Earendil".
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  12. #27
    Member
    Join Date
    Nov 2004
    Posts
    121

    Default

    ispro, thanks for the great tutorial. I got everything to work (php4 as cgi + suexec and php5). Have only one question.

    Does the php5 actually use phpsuexec? Because php files when not owned by the same user and when writeble to everyone would result in Internal server error. But if I test with .php5 file, it works even if owned by root and chmod 777.

    If it does not use phpsuexec is this something to worry about?

    In top it does show the user who executes it:

    19074 username 15 0 4700 4700 3344 S 0.1 0.2 0:00 1 php5
    Last edited by panayot; 11-08-2005 at 12:28 PM.

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

    Default

    This is not the issue.

    PHP5 will use the regular suexec routine and all files created from php5 or mails sent from php5 script will be tracked as user, NOT with nobody like with NO-phpsuexec setup.
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  14. #29
    Member
    Join Date
    Oct 2003
    Posts
    10

    Default

    Does anybody know how to get the $_POST to work using this installation method?

    Thanks.

  15. #30
    Member
    Join Date
    Jun 2004
    Posts
    102

    Default

    Quote Originally Posted by generazn.com
    Does anybody know how to get the $_POST to work using this installation method?

    Thanks.
    If you have mod_bandwidth installed, uninstall it

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