Reputation: 17
I have made a .php
file that produces a graph and it shows perfect when run from localhost.
When I put it in my web-folder /var/www/"my-dyndns-web-adress.com"/web/
I get a blank page (my-dyndns-web-adress is fake instead of my real one).
From tail -f other_vhosts_access.log
I am getting this:
my-dyndns-web-adress.com:80 XX.XXX.XXX.XXX - - [01/Sep/2012:15:31:37 +0200]
"GET /sqlex.php HTTP/1.1" 500 275 "-" "Mozilla/5.0
(Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.25 (KHTML, like Gecko)
Version/6.0 Safari/536.25"
It appears to be some sort of HTTP error, but I don't know how to address that, have googled with no luck.
I have traced it to crash just when the first $graph = something shall execute. Before that there are no problems.
Upvotes: 0
Views: 834
Reputation: 91762
To answer your question about where to put your included files: an .htaccess
file will only have effect if the files are within the web-root.
I normally put my includes inside the php include directory (set in the ini file, include_path
) if they are shared by multiple sites or in the project directory outside the web-root when they are for that specific project only (my project directory normally contains folders like /sys
and /www
where /www
is the web-root).
Upvotes: 0