[Fix] Opencart Session.php Permission Denied error

PHP Notice: session_start() [<a href=’function.session-start’>function.session-start</a>]: failed: Permission denied (13) in /system/library/session.php on line 11

Opencart Session.php Permission Denied error

Have you been lately finding such errors on your opencart?

Its a improper hosting parameter issue,  Its because your opencart can not write sessions to your folder called /tmp

Open Cart 404 Seo Search Module VQMOD
Open Cart Session.php Permission Denied Solution

 

 

 

 

You may find multiple solutions online for this , Like make /tmp 0777 , or add                         session_save_path to your session.php or many more

But I have better solution for this follow this

Step1:

Create Folder to your opencart directory say
/public_html/shop/tmp

Step 2:

Goto

/public_html/shop/system/library/session.php

Find

session_start();

Replace it with

session_save_path($_SERVER[‘DOCUMENT_ROOT’].”/tmp”);//By user
session_start();

Bingo thats it , It will start writting sessions to your

/public_html/shop/tmp directory

 

 

Summary
Article Name
[Fix] Opencart Session.php Permission Denied error
Description
Opencart Session.php Permission Denied error ,Find session_start(); Replace it with session_save_path($_SERVER."/tmp");//By user session_start();
Author
[Fix] Opencart Session.php Permission Denied error

Leave a Reply

Your email address will not be published.