Question

I get a server fault.

Posted August 5, 2013 5k views
If I try to add a script on my droplet on ubuntu 12.04 and 12.10.It says the server is not properly configured.Any help is welcome. phpinfo opens.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

8 answers
What does your error log say?
lots of [Mon Aug 05 19:43:19 2013] [error] [client 84.28.182.56] PHP Notice: Undefined offset: 154117 in /var/www/store/passionsoap.php on line 315
[Mon Aug 05 19:43:19 2013] [error] [client 84.28.182.56] PHP Notice: Undefined offset: 154118 in /var/www/store/passionsoap.php on line 315
[Mon Aug 05 19:43:19 2013] [error] [client 84.28.182.56] PHP Notice: Undefined offset: 154119 in /var/www/store/passionsoap.php on line 315
[Mon Aug 05 19:43:19 2013] [error] [client 84.28.182.56] PHP Notice: Undefined offset: 154120 in /var/www/store/passionsoap.php on line 315
[Mon Aug 05 19:43:19 2013] [error] [client 84.28.182.56] PHP Notice: Undefined offset: 154121 in /var/www/store/passionsoap.php on line 315
[Mon Aug 05 19:43:19 2013] [error] [client 84.28.182.56] PHP Notice: Undefined offset: 154122 in /var/www/store/passionsoap.php on line 315
[Mon Aug 05 19:43:19 2013] [error] [client 84.28.182.56] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 36 bytes) in /var/www/store/passionsoap.php on line 684
Have you checked "line 315" of /var/www/store/passionsoap.php? There might be something wrong w/your script.

RE: "PHP Fatal error: Allowed memory size of 134217728 bytes exhausted...", you need to bump up the memory limit in your php.ini file.
this is on line 315:
$spotlights[$i] = $this->_hash_product($spotlights[$i]);

I got 128 M in php.ini

I don't think I get the store to work,awell thank you for your effort :)
"I got 128 M in php.ini"

Try bumping it up to 256 M
Did bump it up.Did'n't change a thing.Guess it is just a script thing.I got no problems with wordpress.
Thanks :)
You shouldn't set it to 256M - that's the limit of *each* process not the all the processes. Setting it to 48M is enough for almost all of the heavy applications. ~20M is enough for Wordpress.

[Mon Aug 05 19:43:19 2013] [error] [client 84.28.182.56] PHP Notice: Undefined offset: 154120 in /var/www/store/passionsoap.php on line 315 


I believe it's trying to access $spotlights[154120] which is obviously not correct. You probably have a broken loop in your script.
Thanks for answering Kamal.
I deleted that buggy script.Even tried it on another host, didn't run either :)
Submit an Answer