Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > Project Tools > osTicket Bug Tracker > Bug

Issue Type Bug   Project osTicket Bug Tracker
pipe.php uses /var/lib/php/session no matter what
Category Unknown
Affected Version 1.6 rc5
Priority 5 - Medium
Status Cannot Reproduce
Fixed Version (none)
Submitted 07-10-2009
Assigned Users (none) Tags (none)

issueid=132 07-10-2009 06:31 AM
Junior Member
pipe.php uses /var/lib/php/session no matter what

I tried to pipe my email using pipe.php as described in the wiki. But when sending email to support@mydomain.com I got this bounce back message:

-----------------------------------------------------------

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

Code:
pipe to |/home/username/public_html/support/api/pipe.php
    generated by support@mydomain.com
    local delivery failed
The following text was generated during the delivery attempt:

Code:
------ pipe to |/home/username/public_html/support/api/pipe.php
       generated by support@mydomain.com ------

PHP Warning:  session_start(): open(/var/lib/php/session/sess_4ui0iicdkp14n7l4eomce6fam6, O_RDWR) failed: No such file or directory (2) in /home/username/public_html/support/main.inc.php on line 46
------ This is a copy of the message, including all the headers. ------

Now, first I assumed it was a php config problem. But osticket web front-end works fine and doesn't complain about session path.

Following instruction from hosting company, I added this line into .htaccess in the same location where osticket is installed:

Code:
php_value session.save_path /tmp
Still, there's no success.

In fact I also tried to use cron.php and it also complains about not being able to write to /var/lib/php/session, even when I've set .htaccess as above.

Please kindly help! Thanks.
Reply

07-10-2009 11:57 AM
Developer
 
What is the value of session.save_path in your phpinfo()? I suspect it is permission issue - /var/lib/php/session/ is probably the right directory but only web server user (apache) is allowed to write to it.

In pipe.php - try adding
PHP Code:
session_save_path("/tmp"); 
after
PHP Code:
 @chdir(realpath(dirname(__FILE__)).'/'); 
Reply
07-10-2009 12:20 PM
Junior Member
 
Yes, I tried that. Now the session error is gone. But Delivery failure is still there:

Code:
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  pipe to |/home/username/public_html/support/api/pipe.php
    generated by support@mydomain.com
    local delivery failed
I did try phpinfo() before, it shows /tmp according to my setting in .htaccess.
Reply
07-10-2009 12:26 PM
Developer
 
Any error(s) being logged on admin dashboard?

*Make sure pipe.php is executable
*Make sure piping is enabled.
Reply
07-10-2009 12:29 PM
Junior Member
 
Yes pipe.php is already chmoded to 755
It's enabled in Admin panel.
I checked, no related log in dashboard.
Reply

Issue Tools
Subscribe to this issue

All times are GMT -4. The time now is 12:07 AM.