开发者

PHP CLI - Unauthorized access to memory SIGSEGV

I have problem with PHP import script to MySQL database. When I run PHP script from terminal, after about 500 inserts, php shudown and return:

Unathorized access to memory SIGSEGV.

I have:

PHP 5.3 MySQL 5.1开发者_StackOverflow中文版.54-1ubuntu4 Ubuntu 11.04

Thanks for help!


Glad you found the error:

I found solution .. error is in notOrm class NotORM_Cache_Session which provide session cache for select part of queries.

Expanding on that to help others who might be experiencing similar errors, you will get segfault errors when using PHP sessions if session.save_path in php.ini is not writeable or readable.

To solve, edit the session.save_path line in php.ini to

session.save_path = "/var/lib/php/session"

And run this in terminal:

chmod 755 /var/lib/php/session

If you're running PHP from root you may also have to add:

chown root /var/lib/php/session
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜