简体   繁体   English

使用PHP在Plesk中创建子域

[英]Creating subdomain in Plesk with PHP

I was creating subdomain on Plesk 12.5.30 version with api: https://github.com/pmill/php-plesk 我正在使用api在Plesk 12.5.30版本上创建子域: https : //github.com/pmill/php-plesk

After filling up all data it brings error in plesk: New configuration files for the Apache web server were not created due to the errors in configuration templates: 填满所有数据后,它将导致plesk错误:由于配置模板中的错误,未创建Apache Web服务器的新配置文件:

Template processing failed: file = /opt/psa/admin/conf/templates/default/domainVhost.php, error = Template_Exception: Empty content was provided for config file /var/www/vhosts/system/a22.ubicross.me/conf/httpd.conf file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 47 code: 0. 模板处理失败:file = /opt/psa/admin/conf/templates/default/domainVhost.php,错误= Template_Exception:为配置文件/var/www/vhosts/system/a22.ubicross.me/conf提供了空内容/httpd.conf文件:/opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php行:47代码:0。

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 请参阅配置疑难解答中的详细信息

Can someone navigate me what is the issue I have tried all. 有人可以导航我尝试过的所有问题吗? Subdomain is creating without problem when you make it from admin but with script I got that issue. 当您从管理员创建子域时,创建子域没有问题,但是使用脚本却遇到了这个问题。

Mention: Everything is set as it mentioned in php-plesk. 提及:一切均按php-plesk中所述进行设置。

Thanks. 谢谢。

As error message said "See the details in Configuration Troubleshooter". 如错误消息所述,“请参阅配置疑难解答中的详细信息”。

Also you can check /usr/local/psa/admin/log/panel.log 您也可以检查/usr/local/psa/admin/log/panel.log

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM