PHP5 and Apache Conifg?
I am new to this and using OpenSUSE 10.2. I originally posted in the programming forum but realized that this is probably such a newbie error that it belonged here, so here it goes :-):
I had the SUSE install program go ahead and install MySQL and PHP5 as wellnwhile I set up the operating system. When I run the "PHP Test" file that comes with it everything works great (even if I change the extension from .php5 to .php). However, when I tried my own test:
echo "If this works, we <i>really</i> did it!";
and saved this as "phptest.php" I received the following error:
Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error: Unknown: Failed opening required '/srv/www/htdocs/phptest.php' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in Unknown on line 0
I looked at the aforementioned directories and they appear to all have the "755" permissions. I also tried renaming the file to .php5 and it worked (??). But f I put HTML (i.e. <TITLE>PHPTest</TITLE> with appropriate added tags, it gives me the same error again.
I am running Apache 2, if that helps. My guess is there is some configuration I need to change somewhere. Anyone have any ideas?
Sorry for the long post.