[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Odd happenings in proven PHP script after latest updates / pre site resolved access



Hi Phil,

> I've looked in the archives and Google and cannot find the answer to the
> following problem, so I'm hoping there may be someone who has encountered
> this before and knows the answer!
> 
> I'm using the hosts file in windows to gain access to a site that has not
> currently resolved. This is a virtual site on a Raq4i, the box is absolutely
> up to date with patches etc except the Cobalt PHP upgrade as I have the
> Pkgmaster.com one installed.
> 
> I'm a running PHP and MySQL script which manages a "user content managed"
> website, I have this script running on 3 other sites and it works perfectly
> on those, no errors being reported whatsoever. All the permissions on the
> new site are identical and the site is setup exactly as the others.
> 
> The first issue is the login script - this runs fine if it is in the site
> root (/web) directory - put it in a subdirectory and it accepts the username
> and password but does not go to next part where it asks what area the user
> wants to manage on the site. No errors are generated, it just does not work.
> If it detects a wrong password / username it responds correctly though.
> 
> On the main part of the program it fails to unlink files correctly, the
> tempnam function does not seem to operate correctly and also it has problems
> copying between image information variables e.g. $imgfile_name - (normally
> in an if statement) especially when an image upload is involved.
> 
> PHP is enabled on the site (and must be running for it to get as far as it
> is), permissions are correct (actually 777 right now) on files and
> directories.
> 
> The only thing that is different is that either; since this site was set up
> after running in the latest 6 or so patches something has altered in the way
> the box works (the other sites were pre patching) or it is something to do
> with accessing via the windows hosts file.
> I can't see why a DNS issue should screw things up in what PHP is doing!
> 
> Does anyone have any clues or directions they can point me in please - I've
> been messing with this for 2 days now!

You may want to check if php is configured for safe_mode:

http://www.php.net/manual/en/printwn/features.safe-mode.php

Could explain why you get errors depending on the directory you place the php
script in.

Cheers,

Alex

--
Alex Krohn
http://gossamer-threads.com/cobalt/