session_start()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
shobana
Forum Newbie
Posts: 5
Joined: Wed Mar 12, 2014 2:43 am

session_start()

Post by shobana »

A common misconfiguration is that the 'session.save_path' directive is not pointing to a valid directory.

Please correct your PHP configuration in the php.ini file located here below.

/etc/php.ini.

I am getting this error. Can anyone help me in this
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: session_start()

Post by Celauran »

What is your session save path? Have you checked that the directory exists and is writable by the web server?
shobana
Forum Newbie
Posts: 5
Joined: Wed Mar 12, 2014 2:43 am

Re: session_start()

Post by shobana »

Hi,

i am trying to install sugarcrm in trixbox. And i am getting above error. When i try to move session.save_path to /tmp still i am facing the same issue.

Can you tell me at what circumference this error occurs and how to fix this error.

Thanks,
Shobana
shobana
Forum Newbie
Posts: 5
Joined: Wed Mar 12, 2014 2:43 am

Re: session_start()

Post by shobana »

if you want i can attach screenshot with error...
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: session_start()

Post by Celauran »

Does trixbox also run Apache as asterisk user? Does asterisk have write permission to /tmp? What about /var/lib/php/session? Did you upgrade Apache/PHP after installing trixbox? That could have affected the user apache runs as.
shobana
Forum Newbie
Posts: 5
Joined: Wed Mar 12, 2014 2:43 am

Re: session_start()

Post by shobana »

Does trixbox also run Apache as asterisk user?
Yes

Does asterisk have write permission to /tmp?
Yes

What about /var/lib/php/session?
Nothing is there in this path

Did you upgrade Apache/PHP after installing trixbox?
No
shobana
Forum Newbie
Posts: 5
Joined: Wed Mar 12, 2014 2:43 am

Re: session_start()

Post by shobana »

Is anyone there to help me out.....
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: session_start()

Post by Celauran »

There's information missing somewhere. /tmp obviously exists. You've confirmed apache is running as asterisk and have confirmed asterisk has write permission to /tmp, yet you're still getting an error that the directory either doesn't exist or can't be written to. Doesn't add up.
Post Reply