Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 3 of 13 FirstFirst 1 2 3 4 5 ... LastLast
Results 31 to 45 of 191
  1. #31
    Member
    Join Date
    May 2003
    Posts
    73

    Default

    Quote Originally Posted by ispro
    You are a LITTLE wrong.

    You should to use AddHandler for php as cgi:
    AddHandler application/x-httpd-php5 .php .php4 .php3 .phtml

    Not forget that this works on recurse basis. E.g. for every subdirectory under the main subdirectory.

    This is confirmed thing on Apache + phpsuexec + php4 cgi + php5 cgi
    Yes, this works. Don't use AddType, core dumps galore

  2. #32
    Member
    Join Date
    Sep 2001
    Posts
    43

    Default

    Can I use this tutorial for php as module? not as cgi
    Thank's...
    Regards,

    Alex.

  3. #33
    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 alex2k
    Can I use this tutorial for php as module? not as cgi
    Thank's...
    Apache1 does not support both php modules at the same time.
    If you really need php5 running as a module you need to setup second Apache and connect it with your first Apache via mod_proxy. However this is not the automated solution and you would need to setup all the php5 clients manually.

    You also would need to check if the second Apache running... This is added complexity which would cause more outages than with this setup.
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  4. #34
    Member
    Join Date
    May 2005
    Posts
    29

    Default

    It works! thanx

    Whole installation procedure was easy )

    My hosting now supports PHP5! great!

    Adam

  5. #35
    Member
    Join Date
    Sep 2001
    Posts
    43

    Default

    Thank's for your answer ispro.
    Another question:
    I hear that phpsuexec not support chmod 777 for dir/files, is that right?
    Or maybe you can explain what the limitation for phpsuexec

    Thank's again...
    Regards,

    Alex.

  6. #36
    Member
    Join Date
    May 2005
    Posts
    34

    Default

    Fantastic. It works!
    Last edited by patryk; 11-18-2005 at 06:57 AM.

  7. #37
    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 alex2k
    Thank's for your answer ispro.
    Another question:
    I hear that phpsuexec not support chmod 777 for dir/files, is that right?
    Or maybe you can explain what the limitation for phpsuexec

    Thank's again...
    Yes, phpsuexec not "like" the 777. Reason is simple. As all processes running under the user you needn't to allow group and other the same permissions. E.g. 755 under phpsuexec will work for you the same as 777 under mod_php (with some exceptions, but they are not affects 99.99% of the customers).

    P.S. Warning: if you are running mod_php and considering to switch to phpsuexec you need to know that there are many issues within the process. Most of them explained there and here on this forum. But you may always ask me to do it seamlessly for you incl. php5 install
    Last edited by ispro; 11-18-2005 at 07:09 AM.
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  8. #38
    Member
    Join Date
    May 2005
    Posts
    29

    Default

    I got PHP 4.4 installed using WHM , and PHP5 manually as described in this tutorial.
    I want to add Postgres using WHM options , does it will broke my PHP5 installation?


    Adam

  9. #39
    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 Grooby
    I got PHP 4.4 installed using WHM , and PHP5 manually as described in this tutorial.
    I want to add Postgres using WHM options , does it will broke my PHP5 installation?

    Adam
    No, it will not broke the PHP5 as it is independent.
    However you would need to recompile PHP5 if you need to add PostgreSQL support to it.
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  10. #40
    Registered User
    Join Date
    Dec 2004
    Posts
    2

    Default

    Ispro, great information! Thanks for sharing.

  11. #41
    Member
    Join Date
    Sep 2001
    Posts
    43

    Default

    Quote Originally Posted by ispro
    P.S. Warning: if you are running mod_php and considering to switch to phpsuexec you need to know that there are many issues within the process. Most of them explained there and here on this forum. But you may always ask me to do it seamlessly for you incl. php5 install
    Can you tell me what "many issues" ?
    is it easy to fix?

    Thank's for all your answer.
    Regards,

    Alex.

  12. #42
    Member
    Join Date
    Oct 2003
    Posts
    10

    Default

    Quote Originally Posted by Earendil
    If you have mod_bandwidth installed, uninstall it
    Oh wow, thank you. That works!

  13. #43
    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 alex2k
    Can you tell me what "many issues" ?
    is it easy to fix?

    Thank's for all your answer.
    As said they could be fixed if you know what to fix.

    Several general downsides (cannot be fixed) are those:
    no more .htaccess php_value/php_admin/php_flag allowed;
    no PHP_AUTH;

    However the phpsuexec way has too much positive security things, that these issues are not problem at all.
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  14. #44
    Member
    Join Date
    Jan 2004
    Posts
    61

    Default

    Has anyone set this up using fastCGI instead of CGI? PHP CGI is notoriously slow compared to the apache module, but fastCGI gives it a hard run for its money.

    So has anyone setup PHP 5 as a fastCGI?

  15. #45
    Member rs-freddo's Avatar
    Join Date
    May 2003
    Location
    Australia
    Posts
    819
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    fastcgi stores the script in ram. Do you really want to do that for all PHP scripts on the server? I don't, I charge too little as it is....
    Michael

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