• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

PHP Upgrade

Hi Charalampidis_Alexandros,

you could use for PHP 5.4:
Code:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php5-oldstable
sudo apt-get update
sudo apt-get upgrade


If you would like to use PHP 5.5, please use
Code:
sudo add-apt-repository ppa:ondrej/php5
 
Hi Charalampidis_Alexandros,

Plesk has it's own webserver, which should be restarted as well after software updates/upgrades/patches/installations, which are not done over the Plesk Control Panel ( service psa restart ).
 
root@server4:~# sudo apt-get install python-software-properties
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-software-properties is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
root@server4:~# sudo add-apt-repository ppa:eek:ndrej/php5-oldstable
You are about to add the following PPA to your system:
This branch follows the oldstable PHP packages as maintained by me & rest of the Debian pkg-php team.

NOTE: Ubuntu 13.10 (and higher) won't be supported in the repository. If you require PHP 5.4 use Ubuntu 12.04.x LTS.

You can get more information about the packages at https://deb.sury.org

It also includes some widely used PHP modules (if you need some other feel free to send me a request via deb.sury.org or via launchpad).

If you need newest PHP 5.5 you can use the main PHP repository:
    ppa:eek:ndrej/php5

BUGS&FEATURES: This PPA now has a issue tracker: https://deb.sury.org/pages/bugreporting.html

PLEASE READ: If you like my work and want to give me a little motivation, please consider donating: https://deb.sury.org/pages/donate.html
More info: https://launchpad.net/~ondrej/ archive/ubuntu/php5-oldstable
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpYxH0NB/secring.gpg' created
gpg: keyring `/tmp/tmpYxH0NB/pubring.gpg' created
gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpYxH0NB/trustdb.gpg: trustdb created
gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
root@server4:~# sudo apt-get update
Hit http://archive.ubuntu.com precise Release.gpg
Get:1 http://archive.ubuntu.com precise-updates Release.gpg [198 B]
Hit http://archive.ubuntu.com precise Release
Hit http://ppa.launchpad.net precise Release.gpg
Get:2 http://archive.ubuntu.com precise-updates Release [194 kB]
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main amd64 Packages
Get:3 http://security.ubuntu.com precise-security Release.gpg [198 B]
Hit http://archive.ubuntu.com precise/main Sources
Hit http://archive.ubuntu.com precise/universe Sources
Hit http://archive.ubuntu.com precise/main amd64 Packages
Hit http://archive.ubuntu.com precise/universe amd64 Packages
Hit http://ppa.launchpad.net precise/main i386 Packages
Hit http://archive.ubuntu.com precise/main i386 Packages
Get:4 http://security.ubuntu.com precise-security Release [53.0 kB]
Hit http://archive.ubuntu.com precise/universe i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Hit http://archive.ubuntu.com precise/main TranslationIndex
Hit http://ppa.launchpad.net precise/main Sources
Hit http://archive.ubuntu.com precise/universe TranslationIndex
Get:5 http://archive.ubuntu.com precise-updates/main Sources [482 kB]
Hit http://ppa.launchpad.net precise/main amd64 Packages
Hit http://ppa.launchpad.net precise/main i386 Packages
Hit http://ppa.launchpad.net precise/main TranslationIndex
Get:6 http://archive.ubuntu.com precise-updates/universe Sources [112 kB]
Get:7 http://archive.ubuntu.com precise-updates/main amd64 Packages [857 kB]
Hit http://ppa.launchpad.net precise/main Translation-en
Get:8 http://archive.ubuntu.com precise-updates/universe amd64 Packages [251 kB]
Ign http://updates.atomicorp.com precise Release.gpg
Get:9 http://security.ubuntu.com precise-security/main Sources [121 kB]
Get:10 http://archive.ubuntu.com precise-updates/main i386 Packages [887 kB]
Get:11 http://archive.ubuntu.com precise-updates/universe i386 Packages [258 kB]
Hit http://archive.ubuntu.com precise-updates/main TranslationIndex
Ign http://ppa.launchpad.net precise/main Translation-en_US
Hit http://archive.ubuntu.com precise-updates/universe TranslationIndex
Ign http://ppa.launchpad.net precise/main Translation-en
Hit http://archive.ubuntu.com precise/main Translation-en
Hit http://archive.ubuntu.com precise/universe Translation-en
Hit http://archive.ubuntu.com precise-updates/main Translation-en
Hit http://archive.ubuntu.com precise-updates/universe Translation-en
Hit http://updates.atomicorp.com precise Release
Get:12 http://security.ubuntu.com precise-security/universe Sources [33.5 kB]
Get:13 http://security.ubuntu.com precise-security/main amd64 Packages [468 kB]
Ign http://updates.atomicorp.com precise/main amd64 Packages/DiffIndex
Get:14 http://security.ubuntu.com precise-security/universe amd64 Packages [104 kB]
Get:15 http://security.ubuntu.com precise-security/main i386 Packages [505 kB]
Ign http://updates.atomicorp.com precise/main i386 Packages/DiffIndex
Get:16 http://security.ubuntu.com precise-security/universe i386 Packages [111 kB]
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Ign http://updates.atomicorp.com precise/main TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Hit http://updates.atomicorp.com precise/main amd64 Packages
Hit http://updates.atomicorp.com precise/main i386 Packages
Ign http://updates.atomicorp.com precise/main Translation-en_US
Ign http://updates.atomicorp.com precise/main Translation-en
Fetched 4,436 kB in 7s (591 kB/s)
Reading package lists... Done
root@server4:~# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
libapache2-mod-php5 php5-cgi php5-cli php5-common php5-curl php5-fpm php5-gd php5-imap php5-mysql php5-sqlite php5-xsl
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
root@server4:~# service psa restart
* Restarting Plesk engine pool manager sw-engine-fpm
...done.



Didn't worked. What logs do you want?
 
Hello,

I've followed the advices of UFHH01 to upgrade php from 5.3 to 5.5 on Ubuntu 12.04 and Plesk 12, but install fails with this error message :

Directory /etc/apache2/conf.d is not empty - leaving as is

Please note, that directory is considered obsolete and not read anymore by default

php_cgi_wrapper.conf zz010_psa_httpd.conf

apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/aclr.load: API module structure 'aclr_module' in file /usr/lib/apache2/modules/mod_aclr.so is garbled - expected signature 41503234 but saw 41503232 - perhaps this is not an Apache module DSO, or was compiled for a different Apache version?

ERROR: Config file dir.conf not properly enabled: /etc/apache2/mods-enabled/dir.conf is a real file, not touching it

Des erreurs ont été rencontrées pendant l'exécution :

apache2

apache2.2-common

libapache2-mod-php5

apache2-mpm-prefork

E: Sub-process /usr/bin/dpkg returned an error code (1)


Is there a way to fix that ? I have a lot of backup of my server, customers, and domains, so if it is easier to upgrade the system and reinstall Plesk, I can do it, but if I can do without, I guess I'd prefer :)

After a search on Google, I found that it could be a problem with libapache2-mod-aclr2-psa package, but I can't remove it without breaking a lot of psa dependencies. I've disabled the module, and launched apt-get -f install. The error message was the same but for fcgid module now.

apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/fcgid.load: Cannot load /usr/lib/apache2/modules/mod_fcgid.so into server: /usr/lib/apache2/modules/mod_fcgid.so: undefined symbol: unixd_config

ERROR: Config file dir.conf not properly enabled: /etc/apache2/mods-enabled/dir.conf is a real file, not touching it

After disabling fcgid, I have :

apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/rpaf.load: API module structure 'rpaf_module' in file /usr/lib/apache2/modules/mod_rpaf.so is garbled - expected signature 41503234 but saw 41503232 - perhaps this is not an Apache module DSO, or was compiled for a different Apache version?

ERROR: Config file dir.conf not properly enabled: /etc/apache2/mods-enabled/dir.conf is a real file, not touching it

After disabling rpaf, I have :

apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/security2.load: Cannot load /usr/lib/apache2/modules/mod_security2.so into server: /usr/lib/apache2/modules/mod_security2.so: undefined symbol: ap_log_error

ERROR: Config file dir.conf not properly enabled: /etc/apache2/mods-enabled/dir.conf is a real file, not touching it

After disabling security2, I get :

apache2: Syntax error on line 234 of /etc/apache2/apache2.conf: Syntax error on line 5 of /etc/apache2/conf.d/zz010_psa_httpd.conf: Syntax error on line 65 of /etc/apache2/plesk.conf.d/server.conf: No matches for the wildcard '*.conf' in '/etc/apache2/plesk.conf.d/ip_default', failing (use IncludeOptional if required)

ERROR: Config file dir.conf not properly enabled: /etc/apache2/mods-enabled/dir.conf is a real file, not touching it

The folder "/etc/apache2/plesk.conf.d/ip_default/" being empty, I've commented out the line in "/etc/apache2/plesk.conf.d/server.conf".

and I get this :

apache2: Syntax error on line 234 of /etc/apache2/apache2.conf: Syntax error on line 9 of /etc/apache2/conf.d/zz010_psa_httpd.conf: No matches for the wildcard '*.conf' in '/etc/apache2/plesk.conf.d/forwarding', failing (use IncludeOptional if required)

ERROR: Config file dir.conf not properly enabled: /etc/apache2/mods-enabled/dir.conf is a real file, not touching it

dpkg : erreur de traitement de apache2 (--configure)

I've stopped before breaking everything :). I've noted all the steps I've done to reenable all the modules if possible.


Thank you
 
Last edited:
Hi LaurentR2D2,

sorry to write that, but you made a whole mess out of it, just disabling modules because of conflicts, without investigating and solving the issues.


I would suggest in the first place to run the bootstrapper - repair - procedure, before you continue to solve the possible still existent issues afterwards:

/usr/local/psa/bootstrapper/pp12.0.18-bootstrapper/bootstrapper.sh repair

Please post any logfiles and issues after your repair - procedure, so that we could suggest following steps.
 
Hi LaurentR2D2,

sorry to write that, but you made a whole mess out of it, just disabling modules because of conflicts, without investigating and solving the issues.


I would suggest in the first place to run the bootstrapper - repair - procedure, before you continue to solve the possible still existent issues afterwards:

/usr/local/psa/bootstrapper/pp12.0.18-bootstrapper/bootstrapper.sh repair

Please post any logfiles and issues after your repair - procedure, so that we could suggest following steps.

No problem. I just thought I should do like I do with wordpress or other web apps, which is disable plugins one by one to see which one would cause the problem :). Since I had written down each module I've disabled, I've enabled them again, and ran bootstrapper. I get the same error message with apache :

* The apache2 configtest failed.

Output of config test was:

apache2: Syntax error on line 210 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/aclr.load: API module structure 'aclr_module' in file /usr/lib/apache2/modules/mod_aclr.so is garbled - expected signature 41503234 but saw 41503232 - perhaps this is not an Apache module DSO, or was compiled for a different Apache version?

Action 'configtest' failed.

The Apache error log may have more information.

invoke-rc.d: initscript apache2, action "start" failed.



WARNING!

Some problems are found during start(see log file: /var/log/plesk/install/plesk-whc-installation.log)

I join the two log files (plesk-whc-installation.log and plesk_12.0.18_repair.log)

Thank you
 

Attachments

  • plesk_logs.zip
    5.3 KB · Views: 1
Hi LaurentR2D2,

could you please have a look if the file "/var/log/plesk/install/plesk_12.0.18_repair_problems.log" exists as well and could you please attach it, if it does?


Your first step could be to update/patch your current Plesk version with the command:

/usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --reinstall-patch --install-component base


Then, please DISABLE SELinux if it is enabled, because this might conflict with Plesk and its components, if SELinux isn't configured ( has to be done manually, because each system is unique! ) right.



Afterwards, please try to restore some files, because the bootstrapper - log tells you: "perhaps this is not an Apache module DSO, or was compiled for a different Apache version?"

/usr/local/psa/bin/reconfigurator --autoconfigure

and rebuild the webserver configuration files again with the command:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all


If you still experience issues, then please restore your old state, because your PHP-upgrade might be unfinished and files might be missing. Remove the suggested repository from you sources lists and downgrade to PHP5.3. If you are not familiar with apt-get and its possible additional strings, please always use "aptitude" instead, because it will always show possible different solutions, when updating/upgrading your system ( you will see the next choice, by choosing "NO" on the command line - please have a closer look at the aptitude manual at: https://help.ubuntu.com/10.04/serverguide/aptitude.html for details.
After your downgraded to PHP5.3 ( and a hopefully "correct" system, with no issues! ), you could retry the upgrade to PHP5.4 like suggested before... maybe with aptitude instead of apt-get, because it could be easier for you.


Please always read the lines, before you accept choices from apt-get and/or aptitude. If the choice would be to remove nearly all Plesk components, it might not be the right solution for you and another choice should be made to reach your goal... so please be carefull and be sure that you understand what happens when you hit "yes". If you are unsure, it would be wise to ask again, instead of following suggestions with closed eyes - each system is unique and suggestions sometimes have to be modified to fit your own needs.
 
Hi LaurentR2D2,

could you please have a look if the file "/var/log/plesk/install/plesk_12.0.18_repair_problems.log" exists as well and could you please attach it, if it does?


Your first step could be to update/patch your current Plesk version with the command:

/usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --reinstall-patch --install-component base


Then, please DISABLE SELinux if it is enabled, because this might conflict with Plesk and its components, if SELinux isn't configured ( has to be done manually, because each system is unique! ) right.



Afterwards, please try to restore some files, because the bootstrapper - log tells you: "perhaps this is not an Apache module DSO, or was compiled for a different Apache version?"

/usr/local/psa/bin/reconfigurator --autoconfigure

and rebuild the webserver configuration files again with the command:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all


If you still experience issues, then please restore your old state, because your PHP-upgrade might be unfinished and files might be missing. Remove the suggested repository from you sources lists and downgrade to PHP5.3. If you are not familiar with apt-get and its possible additional strings, please always use "aptitude" instead, because it will always show possible different solutions, when updating/upgrading your system ( you will see the next choice, by choosing "NO" on the command line - please have a closer look at the aptitude manual at: https://help.ubuntu.com/10.04/serverguide/aptitude.html for details.
After your downgraded to PHP5.3 ( and a hopefully "correct" system, with no issues! ), you could retry the upgrade to PHP5.4 like suggested before... maybe with aptitude instead of apt-get, because it could be easier for you.


Please always read the lines, before you accept choices from apt-get and/or aptitude. If the choice would be to remove nearly all Plesk components, it might not be the right solution for you and another choice should be made to reach your goal... so please be carefull and be sure that you understand what happens when you hit "yes". If you are unsure, it would be wise to ask again, instead of following suggestions with closed eyes - each system is unique and suggestions sometimes have to be modified to fit your own needs.

I don't find plesk_12.0.18_repair_problems.log. I've tried the commands you mention. selinux is not installed, so it can't conflict. I've removed apparmor, since I've read somewhere it could cause problems. I've downgraded php. For the moment I still get the error.

What I don't understand too is that I can connect to Plesk admin, but I can't reach the hosted websites. I get a bad gateway from nginx
 
Last edited:
Hi LaurentR2D2,

to answer your question why you can still reach the Plesk Control Panel:

Plesk has its own webserver and integrated PHP... it doesn't rely on the installed apache/nginx/PHP - version(s) on your server.
 
Last edited by a moderator:
I've asked the question on an Ubuntu forum. The answer was that this problem occur often when using non official repository. In the case of php5, apache has been upgraded to version 2.4 in the php 5.5 repository, but not the modules, so using ppa:eek:ndrej/php5 is not a good idea. I've been told to try ppa-purge, but it didn't change my problem unfortunately. I think I'm going to do a reinstall.
 
Back
Top