最近我注意到我的Zend Server 5.6盒式磁带无法正常启动,看起来像权限问题。我已经离开了我的openshift应用程序很长一段时间,并没有做任何修改。如何让zend-5.6墨盒重新启动并运行?
[subaru-hunterjm.rhcloud.com 28ebdd5cffd14a90914f1981af83785b]\> ctl_app restart
Cart to restart?
1. phpmyadmin-4
2. zend-5.6
3. mysql-5.1
? 2
Restarting Zend Server Deployment daemon
zdd is not running
Starting Deployment [FAILED]
CLIENT_ERROR: Failed to restart Zend Server Deployment daemon
Restarting Zend Server Monitor node
monitor is not running
rm: cannot remove `/usr/local/zend/tmp/zshm_CollectorUptimeSHM_*': Permission denied
rm: cannot remove `/usr/local/zend/tmp/zshm_MonitorDumpHash_*': Permission denied
rm: cannot remove `/usr/local/zend/tmp/zshm_monitor_ZMRequestsStatContainerSHM_*': Permission denied
rm: cannot remove `/usr/local/zend/tmp/monitor.app': Permission denied
rm: cannot remove `/usr/local/zend/tmp/monitor.wd': Permission denied
Starting Zend Server Monitor node [FAILED]
CLIENT_ERROR: Failed to restart Zend Server Monitor node
Restarting Apache
httpd: Syntax error in -C/-c directive: Syntax error on line 27 of /var/lib/openshift/28ebdd5cffd14a90914f1981af83785b/zend/configuration/etc/conf.d/zendserver_php.conf: Could not open configuration file /usr/local/zend/etc/sites.d/zend-default-vhost-80.conf: Permission denied
CLIENT_ERROR: Failed to restart Apache
Restarting Zend Server JobQueue daemon
jqd is not running
rm: cannot remove `/usr/local/zend/tmp/jqd.app': Permission denied
rm: cannot remove `/usr/local/zend/tmp/jqd.wd': Permission denied
Starting JobQueue [FAILED]
CLIENT_ERROR: Failed to restart Zend Server JobQueue daemon
Restarting Zend Server Console
lighttpd is not running
rm: cannot remove `/usr/local/zend/tmp/lighttpd.app': Permission denied
rm: cannot remove `/usr/local/zend/tmp/lighttpd.wd': Permission denied
spawn-fcgi: opening PID-file '/usr/local/zend/gui/lighttpd/tmp/php-fcgi.pid' failed: Permission denied
chmod: cannot access `/usr/local/zend/gui/lighttpd/tmp/php-fastcgi.socket': Permission denied
Starting Zend Server GUI [Lighttpd] [FAILED]
CLIENT_ERROR: Failed to restart Zend Server Console
CLIENT_RESULT: Zend Server 5.6 restarted successfully
答案 0 :(得分:0)
看起来好像回答我们:
httpd: Syntax error in -C/-c directive: Syntax error on line 27 of /var/lib/openshift/28ebdd5cffd14a90914f1981af83785b/zend/configuration/etc/conf.d/zendserver_php.conf: Could not open configuration file /usr/local/zend/etc/sites.d/zend-default-vhost-80.conf: Permission denied
是否可以为运行服务器的用户提供读取权限?如果您没有看到任何安全问题,则可以向所有人授予读取权限
chmod +r /usr/local/zend/etc/sites.d/zend-default-vhost-80.conf
答案 1 :(得分:0)
经过多次修补,我意识到OpenShift不再支持zend server 5.6,所以他们可能是故意破坏它。
我在OpenShift网站上使用较新版本的zend服务器创建了一个新应用程序,并将我的旧应用程序恢复到该应用程序。似乎现在工作正常。