• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

Issue PHP Warning: touch(): Unable to create file /var/log/plesk/panel.log because Permission denied;

Ali Sekhavati

New Pleskian
Hi,

OS: Centos 5.5


I just upgraded my plesk to 12.5.30, I can log into my account and see my data but when I want to create/edit something, I get this error:

ERROR: Uncaught exception 'Zend_Log_Exception' with message '"/var/log/plesk/panel.log" cannot be opened with mode "a"' in /usr/local/psa/admin/externals/Zend/Log/Writer/Stream.php:81 Stack trace: #0 /usr/local/psa/admin/plib/Plesk/Log.php(69): Zend_Log_Writer_Stream->__construct('/var/log/plesk/...') #1 /usr/local/psa/admin/plib/Plesk/Log.php(370): Plesk_Log::init() #2 /usr/local/psa/admin/plib/Plesk/Log.php(262): Plesk_Log::get() #3 /usr/local/psa/admin/plib/Plesk/Log.php(168): Plesk_Log::log('panel', 3, '"/var/log/plesk...') #4 /usr/local/psa/admin/plib/PleskException.php(26): Plesk_Log::err('"/var/log/plesk...') #5 /usr/local/psa/admin/plib/PleskException.php(13): report_crash('"/var/log/plesk...', Array, 'Zend_Controller...', 500, Object(Zend_Controller_Exception)) #6 [internal function]: plesk_exception_handler(Object(Zend_Controller_Exception)) #7 {main} thrown (Stream.php:81)



and this error in /var/log/plesk/sw-cp-server/error_log

"PHP message: PHP Warning: touch(): Unable to create file /var/log/plesk/panel.log
because Permission denied; File: /usr/local/psa/admin/plib/Plesk/Log.php, Line: 63"
while reading response header from upstream, client: 5.238.218.247, server: ,
request: "GET /admin/subscription/login/id/19?pageUrl=%2Fweb%2Foverview%2Fid%2Fd%3A19&returnUrl=%2Fadmin%2Fsubscription%2Foverview%2Fid%2F19 HTTP/1.1",
upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "vps-10.com", referrer:
"https://vps-10205.com/admin/domain/list?context=domains"


I read everything around this issue on the Internet and tried to correct directory permissions, nothing worked.


I tried

#chown -R psaadm:root /var/log/plesk


I would really appreciate your help.

Thanks.
 
Do you have SELinux enabled? Have you tried to run

# plesk repair installation

?
 
I have tried # plesk repair installation a couple of time

but SElinux is disabled and I couldn't enable it. it seems my VPS kernel is compiled without it and it doesn't support SElinux at all.
 
Do you have the same output?

# namei -om /var/log/plesk/
f: /var/log/plesk/
dr-xr-xr-x root root /
drwxr-xr-x root root var
drwxr-xr-x root root log
drwxr-x--- psaadm root plesk
 
I had to run # namei -m /var/log/plesk/ (no -o option was available for me)

and I got this:

f: /var/log/plesk/
drwxr-xr-x /
drwxr-xr-x var
drwxr-x--- log
drwxr-x--- plesk
 
the owner is psaaadm

I issued the following command:

chown -R psaadm: root /var/log/plesk

before this command the owner was root


I have gone as far as #chmod go+rwx but nothing changed. I dont know which user wants to touch plesk.conf
 
Back
Top