• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Unable to update apache settings, plesk.conf.d / ip_default file syntax error,

mavera2

Basic Pleskian
New configuration files for the Apache web server were not created due to the errors in configuration templates:
Syntax error on line 129 of /etc/httpd/conf/plesk.conf.d/ip_default/example.com.conf: php_admin_value takes two arguments, PHP Value Modifier (Admin) .
The error message containing the detailed error descriptions was sent to you by e-mail.
Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.

"example.com.conf" file contents like this:

#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/example.com/conf/vhost.conf

<VirtualHost 95.173.184.16:80 >
ServerName "example.com:80"
ServerAlias "www.example.com"
ServerAlias "ipv4.example.com"
UseCanonicalName Off




<IfModule mod_suexec.c>
SuexecUserGroup "examplecom" "psacln"
</IfModule>

ServerAdmin "examplecom+adm2@gmail.com"

DocumentRoot "/var/www/vhosts/example.com/httpdocs/app/webroot"
CustomLog /var/www/vhosts/system/example.com/logs/access_log plesklog
ErrorLog "/var/www/vhosts/system/example.com/logs/error_log"


<IfModule mod_userdir.c>
UserDir "/var/www/vhosts/example.com/web_users"
</IfModule>


ScriptAlias "/cgi-bin/" "/var/www/vhosts/example.com/httpdocs/app/webroot/cgi-bin/"



<IfModule mod_ssl.c>
SSLEngine off
</IfModule>

SetEnv PP_CUSTOM_PHP_INI /var/www/vhosts/system/example.com/etc/php.ini
SetEnv PP_CUSTOM_PHP_CGI_INDEX module

<IfModule mod_fcgid.c>
FcgidInitialEnv PP_CUSTOM_PHP_INI /var/www/vhosts/system/example.com/etc/php.ini
FcgidInitialEnv PP_CUSTOM_PHP_CGI_INDEX module
FcgidMaxRequestLen 134217728

</IfModule>


<Directory /var/www/vhosts/example.com/httpdocs/app/webroot>

<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on

# General settings
php_admin_flag safe_mode off
php_admin_value open_basedir none
# Performance settings
# Additional directives

</IfModule>

<IfModule mod_php5.c>
php_admin_flag engine on

# General settings
php_admin_flag safe_mode off
php_admin_value open_basedir none
# Performance settings
# Additional directives

</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi$)>
SetHandler fcgid-script
Options +FollowSymLinks +ExecCGI
</Files>
</IfModule>


Options -Includes +ExecCGI

</Directory>




<Directory "/var/www/vhosts/system/example.com/statistics">
AuthType Basic
AuthName "Domain statistics"
AuthUserFile "/var/www/vhosts/system/example.com/pd/d..httpdocs@plesk-stat"
require valid-user
Options +FollowSymLinks
</Directory>
Alias /error_docs /var/www/vhosts/example.com/error_docs
ErrorDocument 400 /error_docs/bad_request.html
ErrorDocument 401 /error_docs/unauthorized.html
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html
ErrorDocument 405 /error_docs/method_not_allowed.html
ErrorDocument 406 /error_docs/not_acceptable.html
ErrorDocument 407 /error_docs/proxy_authentication_required.html
ErrorDocument 412 /error_docs/precondition_failed.html
ErrorDocument 414 /error_docs/request_uri_too_long.html
ErrorDocument 415 /error_docs/unsupported_media_type.html
ErrorDocument 501 /error_docs/not_implemented.html
ErrorDocument 502 /error_docs/bad_gateway.html
ErrorDocument 503 /error_docs/maintenance.html



<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ http://example.com$1 [L,R=301]
</IfModule>



</VirtualHost>

It seems like Plesk doesn't like this line:
php_admin_value open_basedir none
Previously I selected "basedir" as "none" from Plesk PHP settings.

When I click "regenerate all files". I get this error:
Unable to configure the web server: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all )
Details: Execution failed. Command: httpdmng Arguments:
Array ( [0] => --reconfigure-domains [1] => myotherwebsite.net,example.com )
Details: 2014-01-21T23:10:27+02:00 ERR (3) [util_exec]: proc_close() failed
2014-01-21T23:10:29+02:00 ERR (3) [panel]: Apache config (13903386240.01779800) generation failed:
Template_Exception: Syntax error on line 129 of /etc/httpd/conf/plesk.conf.d/ip_default/example.com.conf: php_admin_value takes two arguments, PHP Value Modifier (Admin) file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 68 code: 0
Syntax error on line 129 of /etc/httpd/conf/plesk.conf.d/ip_default/example.com.conf: php_admin_value takes two arguments, PHP Value Modifier (Admin)


What should I do to fix this ?
 
Last edited:
Back
Top