Page 1 of 1
500 Internal Server Error
Posted: Thu Sep 06, 2012 2:50 pm
by mattiasv
500 Internal Server Error after a new installation - TE3.
I removed this file and now its works - do i need it ?
/public_html/te3
.htaccess
php_value magic_quotes_gpc 0
Re: 500 Internal Server Error
Posted: Thu Sep 06, 2012 6:46 pm
by texpert
A lot of shared hosts will have magic quotes turned on by default. This can create some extra overhead depending on your application. Symfony apps prefer to have this turned off. Here’s how you can do it using either an .htaccess or php.ini file in your web root directory.
#.htaccess
php_flag magic_quotes_gpc off
or
php_flag magic_quotes_gpc 0
or
php_value magic_quotes_gpc 0
You can test if perhaps php_flag would work for you...
If you will want to disable it in php.ini:
# php.ini
magic_quotes_gpc=off
Might be a good idea to consult your host as well!
kind regards,
Jim
Re: 500 Internal Server Error
Posted: Thu Dec 27, 2012 9:52 pm
by yogiza
I'm having the same issue. If I create a php.ini file with the line magic_quotes_gpc=off where does it need to be placed? For example public_html/examplesite.com/te3 Does it go into folder /te3 or just public_html/examplesite.com/?
Re: 500 Internal Server Error
Posted: Fri Dec 28, 2012 7:34 am
by texpert
Hi, you already have a php.ini file, but for the location of it you will have to ask your host, it cannot be putted into html dir and also not into TE3 dir. If you need anything else let me know.
best regards,
Alex