Jump to content

Warning: session_start()...Permission denied (13) error


BBLSystems

Recommended Posts

We're receiving the follow message on the home page of our wordpress site which is integrated with WHMCS. It says there's a permissions error, but the permissions seem to be correct.

 

The error:

 

Warning: session_start() [function.session-start]: open(/tmp/sess_d539e498a725a01cd1f5671ef4d5bbce, O_RDWR) failed: Permission denied (13) in /home/bbl/public_html/wp-content/plugins/whmcs-wordpresss-integration/whmcs-integration.php on line 205

 

The tmp folder is in /home/bbl/tmp. I checked the permissions via the cpanel file manager and they were 755, so I set them to 777. The error remains.

 

I ran the following test script and it reported:

 

41777 php-umask: 22 exec-umask: 0022

 

<?php

error_reporting(E_ALL);

ini_set('display_errors', 1);

$s = stat('/tmp');

printf('%o', $s[2]);

file_put_contents('/tmp/phptest1234.txt', 'test');

unlink('/tmp/phptest1234.txt');

echo ' php-umask: ', sprintf('%o', umask()), "\n";

echo ' exec-umask: ', exec('umask'), "\n";

 

 

We're also seeing the following on our home page. Any ideas?

 

Warning: Unknown: open(/tmp/sess_d539e498a725a01cd1f5671ef4d5bbce, O_RDWR) failed: Permission denied (13) in Unknown on line 0

 

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

Edited by BBLSystems
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated