Adding PHP5 to my PHP4 version (ISPconfig system)

Discussion in 'Installation/Configuration' started by edge, Jul 4, 2007.

  1. edge

    edge Active Member Moderator

    Anyone here who can say for sure that when I add PHP5 the way it's done here ( it will not break anything in my ISPconfig server setup?

    I'm using Debian Etch with at the moment a nice working ISPconfig and PHP4 version on Apache2

    One of my new sites on the server needs PHP5, so thats why I want to add it to the system.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The howto should work fine with ISPConfig. But the howto installs mod_php and runs php4 as cgi. If you do not want to change all your sites to mod_php5, you should consider to just install the "php5-cgi" package from debian and do not touch your php4 installation at all.
  3. Ovidiu

    Ovidiu Active Member

    so just installing php5-cgi will give the wanted result?

    and how can I chose which virtual host uses which version? or can I let the clients decide that?

    do I also have to install all other needed php5 modules? can anything else break?
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please have a look at the guide that edge linked too. It explains which directives are nescessary to switch the PHP version.

    The only thing that I recommended is to use php5 as cgi instead of php4 as cgi for the situation that edge described. I dont know your current installation, so the guide might fit perfectly for you or the modification that I recommended might apply to you too.

    Do you currently run mod_php4 or mod_php5 ?
  5. Ovidiu

    Ovidiu Active Member

    I have a perfectly running version with php4 and a client needs php5 and I need that client :)
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Then I recommend to just install php5-cgi and all PHP-modules that you need. Make sure that you NOT install libapache2-mod-php5 to get not in conflicts with your current php4 installation.

    you should be able to enable php5 in a website by adding the following in the apache directives field:

    AddHandler php-script .php
    Action php-script /cgi-bin/php5

    If this does not work, the second line might be something like "Action php-script /cgi-bin/php5-cgi", this depends on the name of the php5 cgi binary.

    In websites where you want to enable php5, make sure that the checkboxes for cgi and php and php-safemode are NOT enabled.
  7. Ovidiu

    Ovidiu Active Member

    ok, thx. that sounds almost too easy :)

    but what will happen, if I do like you said and uncheck cgi => will that user somehow still be able to use cgi Scripts?

    you also said: this depends on the name of the php5 cgi

    how can I find this out? simply locate php5 | grep cgi?

    and besides this, another problem related to the paid support falko did for me some weeks ago (you should know about, you billed me :), there is still a small open issue but he seems to be busy, so could I just send you a short PM regarding this?
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    No. If he needs cgi access too, you will have to create a symlink from the local cgi-bin directory of the user to the php5-cgi binary.

    As far as I know, it must be one of the two names that I posted.

    I was not aware of that and I'am pretty sure that falko is not aware too that there is something missing. Please send me a email to support [at] projektfarm [dot] de and I will have a look at this.
  9. Ovidiu

    Ovidiu Active Member

    its actually not an outstanding issue, its just that I asked him for dokumentation about a small thing which will reoccur everytime I update php which is quite often, and as I don't want to ask /pay for support each time this happens, I asked him how he compiled eaccelerator - I had a long thread about this before deciding to get paid support, and now after the last php4 debian update I am again unable to compile eaccelerator. I am sure I am doing something wrong. please check out this thread:

    thats all. I just brought it up as he had not yet answered to my pm and I know he's busy so this could take a long time. :) thx for your time and help.
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Please do not send support questions by PM as they will never reach our support system. If you want to get support, send always an email. Please do not mix up the free support that we provide here with paid support options that we provide by email or remote login. If you have any questions to a support issue, please contact us directly and not in the forum of the ISPConfig OpenSource project.
  11. Ovidiu

    Ovidiu Active Member

    thx. I will do so after work.

Share This Page