Author |
problem with php |
rssnow1
Member
Posts: 3
Joined: 19.08.10 |
Posted on August 21 2010 17:05 |
|
|
I've done a clean install of the secure web server and the php v0210 kit.
I can display http://mypals.info/php/php_rules.php
the /php/ path is an alias for sys$common:[apache.php.scripts]
but I created hello.php in the apache document root which is sys$common:[apache.htdocs]
and if you try to display it with http://mypals.info/hello.php
you get this:
Warning: Unknown: failed to open stream: no such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required '/apache$root/htdocs/hello.php' (include_path='.:/php_root/000000' in Unknown on line 0
I'm baffled by this, checked permissions on the file, it is owned by apache$www user ok.
is this a known issue with php or have I a misconfiguration somewhere? |
|
Author |
RE: work around -- |
rssnow1
Member
Posts: 3
Joined: 19.08.10 |
Posted on August 21 2010 19:58 |
|
|
using netbean ide on another computer and letting it ftp the files to the apache$www account works.
I guess the problem might have been that I was using the system account to edit the files directly, so
some permissions might have been messed up.
so I guess the right way to create files locally would be to log in as apache$www
Richard |
|
Author |
RE: think i figured it out |
rssnow
Member
Posts: 3
Joined: 24.02.06 |
Posted on August 23 2010 17:43 |
|
|
apparently there are two htdocs directories -- one is sys$common:[apache.htdocs] and one is
sys$common:[apache.specific.vax.htdocs] which is used when you request a url with a slash after the hostname.
The ftp upload put the files in this directory. |
|