I have installed native apache and mysql,php in my linux server. I tried a page using phpinfo() and it worked.But when I try my own pages, the execution of the page stops when it comes to the php tag, even the css tag following it doesn't come to the browser. Please help me how to fix this issue.. Thanks in advance
1
-
1Are you sure that there are no syntax errors in your script? Check the display_errors setting in php.ini and set it to "on" in order to display php errors. More info: php.net/manual/en/errorfunc.configuration.php and maybe you want to post the script you made.BMBM– BMBM2010-05-05 14:17:56 +00:00Commented May 5, 2010 at 14:17
Add a comment
|
4 Answers
If the php file is in public_html directory (userdir), you must edit the file:
/etc/apache2/mods-enabled/php5.conf
and comments from line 8-15
# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
#<IfModule mod_userdir.c>
# <Directory /home/*/public_html>
# php_admin_value engine Off
# </Directory>
#</IfModule>
Comments
Did you make sure the following lines are in your apache2.conf and uncommented:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
1 Comment
prodigitalson
If this were the issue wouldny it just show the php as plain text?