[PHP] Pages does not parse from one domain

Mikej0h

Verified User
Joined
May 13, 2005
Messages
45
Hi All,

I have a big problem with a customer.
The custom have's a php gallery. I just did some chmods to setup the directories. (according to the manual).

But now, every php file in the domain doesn't work :S
I get the following error:
Code:
Warning: Unknown(): Unable to access ./php_value_ok.php in Unknown on line 0

Warning: Unknown(./php_value_ok.php): failed to open stream: No such file or directory in Unknown on line 0

Warning: (null)(): Failed opening './php_value_ok.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0

Then I tried in the same site just a simple phpinfo.php file.
chmodded it to 777 (for testing purposes) and this gives the same error message :S.
To check if other users are also encounting problems I tested the same phpinfo.php file on an other domain at the same server, this works perfectly.

It looks the PHP parser hungs for ONE domain, how to solve this ?
I already tried to reboot the machine, but still the same result.

Can anyone help me out, it's very urgent.
 
In the httpd.conf of the domain all is good ? (like <Directory /home/users/domains/domain.com/public_html>
Options +Includes -Indexes
php_admin_flag engine ON
php_admin_flag safe_mode OFF
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
</Directory> )
 
Exact the same you said is in the config of the customer website. :(

Any other suggestions ?
 
in /usr/local/directadmin/data/users/USER/users.conf

just to verify, php=ON ?

(i'm beginner, i said you what i could think about this :\)
 
Also php=On on the file you suggest here.

For testing purposes I turned it via DirectAdmin off, then php pages didn't load at all (which is normal ofcourse). Then I turned it back on, but still the same result php pages gives an error.

EDIT: It looks pages hung in the parser or via Apache, already tried to reboot, reload en restart the server and or Apache, no result. On other users PHP pages' it works just as it should be.

Any other idea's or suggestions :? :(

Regards,

Mike
 
Anything in your apache logs?

If you get the same message calling a simple phpinfo script, I would guess that something (probably a .htaccess file) has an include directive or an auto_prepend_file directive or something in it. Check for .htaccess files starting in the root of the public_html folder.

You might also try setting ERROR_REPORTING(E_ALL); in the top of your phpinfo script and see if you can find where that file is trying to be included.

And stop rebooting that unix machine, you're messing up your uptime :).
 
Thanks, the .htaccess was the cause of the problem.

I did what you suggested to look for an .htaccess file, this existed, bwith the "auto_prepend_file directive" where you were talking about. Removed this .htaccess.

The problem is solved now, and me and my customer are very happy.

Thanks again !
 
Back
Top