Monday, April 14, 2014

Apache - Browser throwing sql query and php code

Apache - Browser showing mysql queries and php code

Open php.ini file
Find "short_open_tag = Off" and make it enabled
short_open_tag = On
Restart Apache. If you are using xampp, restart lampp after making changes in php.ini


If you are using xampp and you are still facing this problem.
Uncomment following line in the file /opt/lampp/etc/httpd.conf
Include etc/extra/httpd-xampp.conf
This line should not be commented.

If you are using centos / RHEL / fedora and you are still facing the problem
Run following command in the terminal.
# yum install php php-mysql -y

No comments:

Post a Comment