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

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

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux