Re: Maybe Newbie: PHP-scripts in sub-directories

From: Date: Tue, 05 Apr 2005 22:45:42 +0000
Subject: Re: Maybe Newbie: PHP-scripts in sub-directories
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-212316@lists.php.net to get a copy of this message
On Tue, April 5, 2005 5:43 am, Oliver Ekeis said: > I'm very sorry to bother you, but I've wasted a week solving my problem > and didn't find any solution in the net. > > On my dedicated server preinstalled with Linux Suse 9.0, Apache 2.0.48, > PHP 4.3.3 in want to use php in subdirectories. In the main document root > of apache my test.php (consisting of the simple phpinfo()-function) > works fine. But if I copy the file in any subdirectory I get a error > message > like 'Premature end of script headers...'. > > Please tell me, what might be the reason for that? Somehow, you've managed to crash PHP and/or Apache, I think... Perhaps you've simply chosen a bad directory name which is already used by httpd.conf for something special? Try reading the http://bugs.php.net/ page for info garnering useful info form core dumps. It's also possible some sort of mod_rewrite rule in httpd.conf is kicking in for sub-directories but not the main directory. > Must there be a right configurated '.htaccess'-file? What must be > inserted? > Has it to do with rights (I gave the subdir 777-rights recursively to be > sure)? You shouldn't have had to do anything like that. It should "just work" Change the 777 back to something reasonable ASAP. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#212316) next »