I have just moved to a new webhost called Eurobia and just noticed that at times, I have been getting the following errors. Is this error due to the webhost?
Warning: session_start():
open(/var/cpanel/php/sessions/ea-php73/sess_45073c3b96060f25f10e5a1bd15e842b,
O_RDWR) failed: No such file or directory (2) in
/home/pianocou/domains/pianocourse101.com/public_html/header2.php on
line 2
Warning: session_start(): Failed to read session data: files (path:
/var/cpanel/php/sessions/ea-php73) in
/home/pianocou/domains/pianocourse101.com/public_html/header2.php on
line 2
Related
Yesterday I was trying to install a panel on my VPS, Pterodactyl. But it ended up giving problems and I gave up. But, I got this error
PHP 7.3, Apache 2.0 and MySQL 5
Warning in ./libraries/session.inc.php#105
session_start(): open(/var/lib/php/session/sess_eok8aia21ebtl8i59i6p4u6sa5, O_RDWR) failed: Permission denied (13)
Backtrace
./libraries/session.inc.php#105: session_start()
./libraries/common.inc.php#350: require(./libraries/session.inc.php)
./index.php#12: require_once(./libraries/common.inc.php)
Warning in ./libraries/session.inc.php#105
session_start(): Failed to read session data: files (path: /var/lib/php/session)
Backtrace
./libraries/session.inc.php#105: session_start()
./libraries/common.inc.php#350: require(./libraries/session.inc.php)
./index.php#12: require_once(./libraries/common.inc.php)
I tried using login yahoo sosial PHP, using from GitHub : Yos-Social-Php5
I set OAUTH_CONSUMER_KEY,OAUTH_CONSUMER_SECRET,OAUTH_DOMAIN,OAUTH_APP_ID
and result :
Warning: session_start(): open(/tmp/\sess_j62ge3scjn69ep2lrpmm7oelf6, O_RDWR) failed: No such file or directory (2) in C:\xampp\htdocs\yahoo-php5\examples\common.inc.php on line 55
What I try :
Set folder tmp in root folder(htdocs/tmp) with permission 777. (Same) source
Using another GitHub (bigodines). (More error) source
Code :
ini_set('session.save_handler', 'files'); // line 53
session_save_path('/tmp/'); // line 54
session_start(); // line 55
Any advice?
I have one phpBB forum on a shared hosting provider, and i get this error
[phpBB Debug] PHP Warning: in file [ROOT]/includes/auth/CAS/CAS/Client.php on line 905: session_start(): open(/hermes/phpsessions/S/T/-/Z/sess_ST-ZhPr8mYrwe, O_RDWR) failed: No such file or directory (2)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/auth/CAS/CAS/Client.php on line 905: session_start(): Cannot send session cache limiter - headers already sent (output started at [ROOT]/includes/functions.php:3906)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/auth/CAS/CAS/Client.php on line 1614: session_write_close(): open(/hermes/phpsessions/S/T/-/Z/sess_ST-ZhPr8mYrwe, O_RDWR) failed: No such file or directory (2)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/auth/CAS/CAS/Client.php on line 1614: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (4;/hermes/phpsessions)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/auth/CAS/CAS/Client.php on line 1618: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3906)
the strange thing here, is that happened unexpectedly one day, it used to be working correctly. Also in my private directories i don't have any /hermes.
Make sure that session directory is writable or you can set a path yourself with:
session_save_path
This comment is also useful if you are using above function.
I've been trying to run a Cakephp app inside vagrant box which is equipped with Apache2, mysql, neo4j, everything needed for the app to run. The site is opening and when I try to login in the local it's giving me this bunch of errors.
Here's the debug log :
2015-06-29 19:04:38 Warning: Warning (512): /vagrant/app/tmp/cache/ is not writable in [/vagrant/cake/libs/cache/file.php, line 267]
2015-06-29 19:04:38 Warning: Warning (512): /vagrant/app/tmp/cache/persistent/ is not writable in [/vagrant/cake/libs/cache/file.php, line 267]
2015-06-29 19:04:38 Warning: Warning (512): /vagrant/app/tmp/cache/models/ is not writable in [/vagrant/cake/libs/cache/file.php, line 267]
2015-06-29 19:04:38 Warning: Warning (2): session_start(): open(/vagrant/app/tmp/sessions/sess_ojvjndme1tqt1bn4dnra8erq96, O_RDWR) failed: Permission denied (13) in [/vagrant/cake/libs/cake_session.php, line 587]
2015-06-29 19:04:38 Warning: Warning (2): Unknown: open(/vagrant/app/tmp/sessions/sess_ojvjndme1tqt1bn4dnra8erq96, O_RDWR) failed: Permission denied (13) in [Unknown, line 0]
2015-06-29 19:04:38 Warning: Warning (2): Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/vagrant/app/tmp/sessions) in [Unknown, line 0]
2015-06-29 19:04:49 Warning: Warning (2): session_start(): open(/vagrant/app/tmp/sessions/sess_p2utf2okm73g71cv2ed361a8c7, O_RDWR) failed: Permission denied (13) in [/vagrant/cake/libs/cake_session.php, line 587]
2015-06-29 19:04:49 Warning: Warning (2): session_write_close(): open(/vagrant/app/tmp/sessions/sess_p2utf2okm73g71cv2ed361a8c7, O_RDWR) failed: Permission denied (13) in [/vagrant/cake/libs/controller/controller.php, line 694]
I opened all permissions (by doing "sudo chmod -R 777 ." in ./tmp folder) to all folders in /tmp and still the error persists. Not sure why the app is unable to create a new session file inside the tmp directories.
Edits & New developments : So, I realize that as the code is being shared with the host and vagrant guest os, the tmp folder in the code is actually mounted which may be, is the reason for the permission-not-granted error.
Now the problem is now reduced to how do I create a 'tmp' folder outside of /vagrant/ folder and write all the logs, cache, sessions etc in that external folder inside the virtual os filesystem?
I've tried using the suggestions in : http://singletonio.blogspot.in/2009/01/changing-tmp-directory-of-cakephp-so-it.html
But, the new logs, sessions are not being written on ~/tmp(which is where I've set my cache, sessions, logs folders)?
Can you please help me out here?
What I did was changing Apache user in my development server from "www-data" to "vagrant".
Edit /etc/apache2/envvars:
export APACHE_RUN_USER=vagrant
export APACHE_RUN_GROUP=vagrant
Warning: include(/home/sarvadcu/public_html/paradisetourism.co.in/wp-content/themes/midway/functions.php): failed to open stream: Permission denied in /home/sarvadcu/public_html/paradisetourism.co.in/wp-settings.php on line 329
Warning: include(): Failed opening '/home/sarvadcu/public_html/paradisetourism.co.in/wp-content/themes/midway/functions.php' for inclusion (include_path='.:/usr/local/altphp54/lib/php') in /home/sarvadcu/public_html/paradisetourism.co.in/wp-settings.php on line 329
Warning: Cannot modify header information - headers already sent by (output started at /home/sarvadcu/public_html/paradisetourism.co.in/wp-settings.php:329) in /home/sarvadcu/public_html/paradisetourism.co.in/wp-includes/pluggable.php on line 1196
It is problem with template path ,on here template function file not get proper path from wp-setting.php.
try to check out that path Or function file path .on theme activation.
when theme activate that time it find function.php file but it not get correctly so that.this error come.