Hi all,
For starters: I've seen this error (see below) in many posts, in many PHP forums (I've done a lot of searching) but I haven't seen the answer yet. I have seen some suggestions. But the reason for getting this error seems to be different for everyone. I haven't seen this error posted for this reason yet. Can someone help me? I've never done any PHP yet.
I just installed PHP 4.3.1 on Caldera OpenLinux. It already had Apache 1.3.11, so I didn't change that.
I thought it would be a good idea to test it before I do anything with it so I found a 'Hello World' script. I copy/pasted it into a file I named hello-world.php and put in /home/httpd/html
This is the file;
This is the error I get;
Warning: Unknown(/home/httpd/html/hello-world.php): failed to create stream: Permission denied in Unknown on line 0
Warning: Unknown(): Failed opening '/home/httpd/html/hello-world.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
Do I need to do something to Apache? I have rebooted to make sure all changes take place.
Is there a daemon that needs to be started for PHP?
Judging by the paths in the errors, I'm not sure if there's anything else to change in the php.ini file which is located in /usr/local/lib - is that right?
The error says 'Permission denied'. Do I need to change permissions somewhere?
tgus
____________________________
Families can be together forever...
For starters: I've seen this error (see below) in many posts, in many PHP forums (I've done a lot of searching) but I haven't seen the answer yet. I have seen some suggestions. But the reason for getting this error seems to be different for everyone. I haven't seen this error posted for this reason yet. Can someone help me? I've never done any PHP yet.
I just installed PHP 4.3.1 on Caldera OpenLinux. It already had Apache 1.3.11, so I didn't change that.
I thought it would be a good idea to test it before I do anything with it so I found a 'Hello World' script. I copy/pasted it into a file I named hello-world.php and put in /home/httpd/html
This is the file;
Code:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo "<p>Hello World</p>"; ?>
</body>
</html>
This is the error I get;
Warning: Unknown(/home/httpd/html/hello-world.php): failed to create stream: Permission denied in Unknown on line 0
Warning: Unknown(): Failed opening '/home/httpd/html/hello-world.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
Do I need to do something to Apache? I have rebooted to make sure all changes take place.
Is there a daemon that needs to be started for PHP?
Judging by the paths in the errors, I'm not sure if there's anything else to change in the php.ini file which is located in /usr/local/lib - is that right?
The error says 'Permission denied'. Do I need to change permissions somewhere?
tgus
____________________________
Families can be together forever...