E
EuroMaverick
Guest
Hello people,
I've got an intersting problem with PHP after upgrading from Plesk 7.6 to 8.1, which I was able to solve (although I don't really understand how it works !). Read on...
When I go to whatever site in my Plesk control panel and click the php-button, I get the following error message on top op the screen:
"Notice: Undefined index: 4 in C:\Program Files\SWsoft\Plesk\admin\htdocs\domains\php_changeversion.php on line 90"
and the PHP-version I should be using is not showed.
If this site actually already has PHP scripts running, sometimes it works, sometimes it does not (some simple stuff like displaying a text works, other more complex stuff like connecting to SQL databases results in errors).
When I go to the setup page of the site, I can see that PHP support is checked (version 5.2.0). I know un-check this (turn it off), click Ok, re-check it (turn it on) and click Ok.
If I now go the PHP-page in the Plesk control panel, I don't get the above error anymore, the page says I am working on version 5.2.0 and the website itself works fine too, with "simple" and "complex" PHP-code.
I have no idea what settings are changed when I go through this procedure, but it looks some things got not upgraded correctly from Plesk 7.6 to 8.1 and this is a procedure that works for me and might work for other people as well...
I have a feeling this has something to do the PHP-setup in general. I understand Plesk 8.1 gives the possibility to set up PHP 4 or 5 for each individual site, but I see nowhere where I can do that. I suppose something went wrong there...
I am an absolute novice in PHP, but I want to make sure it work fine for my customers, so anybody any comments on this PHP 4 and 5 that should be available both for each individual site in Plesk 8.1 ? Where should I find this setting and what should I do to solve this ?
Regards,
Mav.
I've got an intersting problem with PHP after upgrading from Plesk 7.6 to 8.1, which I was able to solve (although I don't really understand how it works !). Read on...
When I go to whatever site in my Plesk control panel and click the php-button, I get the following error message on top op the screen:
"Notice: Undefined index: 4 in C:\Program Files\SWsoft\Plesk\admin\htdocs\domains\php_changeversion.php on line 90"
and the PHP-version I should be using is not showed.
If this site actually already has PHP scripts running, sometimes it works, sometimes it does not (some simple stuff like displaying a text works, other more complex stuff like connecting to SQL databases results in errors).
When I go to the setup page of the site, I can see that PHP support is checked (version 5.2.0). I know un-check this (turn it off), click Ok, re-check it (turn it on) and click Ok.
If I now go the PHP-page in the Plesk control panel, I don't get the above error anymore, the page says I am working on version 5.2.0 and the website itself works fine too, with "simple" and "complex" PHP-code.
I have no idea what settings are changed when I go through this procedure, but it looks some things got not upgraded correctly from Plesk 7.6 to 8.1 and this is a procedure that works for me and might work for other people as well...
I have a feeling this has something to do the PHP-setup in general. I understand Plesk 8.1 gives the possibility to set up PHP 4 or 5 for each individual site, but I see nowhere where I can do that. I suppose something went wrong there...
I am an absolute novice in PHP, but I want to make sure it work fine for my customers, so anybody any comments on this PHP 4 and 5 that should be available both for each individual site in Plesk 8.1 ? Where should I find this setting and what should I do to solve this ?
Regards,
Mav.