• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Problem after migration

FabrizioR

Basic Pleskian
Hello,

I used the tool "Migration & Transfer manager " for moving all Plesk's sites to a new server.
The result is "complete with warning"
and the message is


Warning:hosting "
Stderr is
[2015-07-27 22:21:57] ERR [util_exec] proc_close() failed
[2015-07-27 22:22:02] ERR [panel] Apache config (14380284960.47863200) generation failed: Template_Exception: Syntax error on line 93 of
php_admin_value takes two arguments, PHP Value Modifier (Admin)

php_admin_value takes two arguments, PHP Value Modifier (Admin)

Also, if I click on the "Home" icon I see the message:

New configuration files for the Apache web server were not created due to the errors in configuration templates: Syntax error on line 93 of : php_admin_value takes two arguments, PHP Value Modifier (Admin) . Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter

Could please someone help me in solving that issue?
Thank you.
 
Last edited:
Hi FabrizioR,

please post the settings at line 93 from "/etc/httpd/conf/plesk.conf.d/vhosts/aminoz.com.conf" for further investigations. There might be a misconfiguration, which should be solved before you continue.
 
hi @UFHH01

# ls -lart /etc/httpd/conf/plesk.conf.d/vhosts/aminoz.com.conf
ls: cannot access /etc/httpd/conf/plesk.conf.d/vhosts/aminoz.com.conf: No such file or directory

that is strange.
I checked also on the old server, and this file there isn't but on the old plesk panel I haven't any sort of problem.

Thanks.
 
Hi FabrizioR,

the file "/etc/httpd/conf/plesk.conf.d/vhosts/YOUR_DOMAIN.COM.conf" is normally a symlink to "/var/www/vhosts/system/YOUR_DOMAIN.COM/conf/httpd.conf", or ".../httpd_ip_default.conf".
 
hi @UFHH01

ah ok, thanks for the hint. In my case there's no link in both.
I'm checking now the file /var/www/vhosts/system/aminoz.com.au/conf/httpd_ip_default.conf and, at line 93 I see

php_admin_value session.gc_maxlifetime 36000

Thanks again.
 
Last edited:
Hi FabrizioR,

just comment this line out ( or even delete it ) and try to rebuild your configuration files afterwards ( using the command : /usr/local/psa/admin/sbin/httpdmng --reconfigure-all or /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain YOUR_DOMAIN.COM ). You can set the "session.gc_maxlifetime" later on in the domain specific php - settings, or you can try to implement the setting in the additional http - directives.
 
Hi again @UFHH01

sorry for late answer but was busy on other things.


# /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain aminoz.com
[2015-07-28 18:46:52] ERR [util_exec] proc_close() failed
[2015-07-28 18:46:52] ERR [panel] Apache config (14381020100.96591400) generation failed: Template_Exception: Syntax error on line 93 of /etc/httpd/conf/plesk.conf.d/vhosts/aminoz.com.conf:
php_admin_value takes two arguments, PHP Value Modifier (Admin)

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
Syntax error on line 93 of /etc/httpd/conf/plesk.conf.d/vhosts/aminoz.com.conf:
php_admin_value takes two arguments, PHP Value Modifier (Admin)

Really strange. Now line 93 has been deleted.
 
Last edited:
Hi FabrizioR,

have you probably got a custom template, which includes this modification? ( at "/opt/psa/admin/conf/templates/custom/*" )
Again, please check the failure message and check the line 93. Check as well, if other apache - configuration files at the other domains contain this line.
Check as well additional vhosts.conf at your domain specific config - folders ( "/var/www/vhosts/system/YOUR_DOMAIN.COM/conf/"
 
Hi @UFHH01

# cd /opt/psa/admin/conf/templates/custom/
-bash: cd: /opt/psa/admin/conf/templates/custom/: No such file or directory

but under this directory /usr/local/psa/admin/conf/templates/default/domain I see something different between old and new server

### Old server

# ls
domainVirtualHost.php nginxForwarding.php standardForwarding.php
frameForwarding.php PCI_compliance.php subDomainVirtualHost.php
nginxDomainVirtualHost.php service

### New server

# ls

domainVirtualHost.php nginxForwarding.php standardForwarding.php
frameForwarding.php PCI_compliance.php
nginxDomainVirtualHost.php service

On the new server subDomainVirtualHost.php is missing

Could be that the problem?

Thanks.
 
Hi FabrizioR,

"subDomainVirtualHost.php" isn't existent on a system with Plesk 12.

Have you modified one of these default templates?
Did you check, if other domains contain this modification in their conf - files?
 
Also, error says:

Details: [2015-07-28 20:20:45] ERR [util_exec] proc_close() failed
[2015-07-28 20:20:52] ERR [panel] Apache config (14381076260.68055600) generation failed: Template_Exception: Syntax error on line 93 of /etc/httpd/conf/plesk.conf.d/vhosts/aminoz.com.conf:
php_admin_value takes two arguments, PHP Value Modifier (Admin)

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
Syntax error on line 93 of /etc/httpd/conf/plesk.conf.d/vhosts/aminoz.com.conf:
php_admin_value takes two arguments, PHP Value Modifier (Admin)

but if I try to locate this file I found it in /etc/nginx/plesk.conf.d/vhosts/aminoz.com.conf (instead of /etc/http/ as expected)

 
Hi FabrizioR,

just check your folder "/var/www/vhosts/system/YOUR_DOMAIN.COM/conf/", inside this directory, you will find all apache and nginx config - files for the specific domain. in "/etc/nginx/plesk.conf.d/vhosts/" and "/etc/http/conf/plesk.conf.d/vhosts/" should ONLY be the symlinks to these files.
 
hi @UFHH01

[root@]# ls -lart
total 44
drwx--x--x 6 root psaserv 4096 Jul 27 00:46 ..
-rw-r--r-- 1 root root 2 Jul 28 03:33 stat_ttl.conf
-rw------- 1 root nginx 2345 Jul 28 20:20 nginx.conf.bak
-rw------- 1 root nginx 2345 Jul 28 20:20 nginx.conf
lrwxrwxrwx 1 root root 10 Jul 28 20:20 last_nginx.conf -> nginx.conf
-rw------- 1 root apache 8490 Jul 28 20:20 httpd.conf.bak
-rw------- 1 root apache 8490 Jul 28 20:20 httpd.conf
lrwxrwxrwx 1 root root 10 Jul 28 20:20 last_httpd.conf -> httpd.conf
drwxr-x--- 2 root psaserv 4096 Jul 28 20:20 .
[root@]# pwd
/var/www/vhosts/system/aminoz.com/conf

and at line 93 of httpd.conf I see this:

php_admin_value error_reporting ""

I'm deleting it now and run /usr/local/psa/admin/sbin/httpdmng --reconfigure-all but after that command this line appears again
At the very top of the file I see

#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
#IF YOU REQUIRE TO APPLY CUSTOM MODIFICATIONS, PERFORM THEM IN THE FOLLOWING FILES:
#/var/www/vhosts/system/aminoz.com/conf/vhost.conf
#/var/www/vhosts/system/aminoz.com/conf/vhost_ssl.conf

but I don't have both of vhost.conf neither vhost_ssl.conf (searched on filesystem)

It seems there is a template somewhere to edit for changing 93 line but I have no idea on where is it..
 
Last edited:
Hi FabrizioR,

please check your PHP - settings over the Plesk Control Panel for the specific domain. You might have some settings, which are either incompatible or misconfigured. These settings could also be defined in a hosting plan, please check the hosting plans as well for incompatible or misconfigured settings, please.
 
@UFHH01 you got it! under Hosting Plan -> PHP I put all values to "default" created again the configuration and works perfectly :)
Fixed!

Thank you very much!
 
Back
Top