Question - Are you getting this error " premature end of the script "?
Answer if yes
Question - Is your clint side error is 500?
Answer if yes
Here is the solution for this error:
The reason for this error is commonly that the PHP module is not being loaded with other.
Log into your server via SSH.
- Enter the command 'php -v' at the command line (to get your currently-installed PHP version). The top line should say something like "PHP 5.2.4 (cli) (built: Sep 18 2007 08:50:58)" The 3 numbers directly after PHP are the version number.
- Open /etc/httpd/conf/httpd.conf in your favorite editor.
- Look for a line that starts with 'LoadModule' and ends with one of these: LoadModule php4_module libexec/libphp4.so OR LoadModule php5_module libexec/libphp5.so Uncomment whichever line applies to the major version of PHP you determined in step 2 above (4 or 5), save httpd.conf, and restart the web service (/etc/init.d/httpd restart). Your PHP pages should display normally once again.
No comments:
Post a Comment