PHP error on new website
I'm in the process of moving a client over to a new server. It's running free-BSD 4.7, and I've installed PHP 4.3.0 & MySQL 3.23.54.
PHPMyAdmin comes up fine, and I've gotten all my database tables up & running. PHP info shows fine too.
When I go to a php page on the site, I get:
Warning: Unknown(/usr/local/apache/htdocs/admin/index.php); failed to create stream: Permission denied in Unknown on line 0
Warning: Unknown(): Failed opening '/usr/local/apache/htdocs/admin/index.php' for inclusion (include_path=".:/php/included') in Unknown on line 0
I've got my includes in the directory specified.
Help! I don't know what's up. To my knowledge, I've got everything set up the same as what's on the old server (working fine). The only difference I know of is the new site is running PHP 4.3.0, and the old has version 4.2.2. MySQL is the same on both.
It appears to be a permissions problem. Does Apache have permission to access the includes directory? (just off the cuff)
I'm not sure, where would I find that?
Honestly, I'm not sure. I'm just getting to know Linux, myself.
Right, i'm really no expert neither if it comes to Linux, but here's what might help
1.Fire up a console
2. cd to your include dir
3. do a l -al and have a look at the file permission set.
I know this is not much of information, but if you do a search for file permissions, you'll find lots of info, and can move on from there.
You just need to make sure Apache has the correct permissions, which can be set using chown and/or chmod.
Hope this helps to get you started ;)