Jump to content

PHP Files don't get parsed


Recommended Posts

Hi,

 

I'm having the problem that php files in a specific folder won't get parsed.

The ouput of the php files is just their source code with a text/plain header.

 

Could someone explain me why it isn't working?

Is there something wrong with the .htaccess file's content?

 

I'd be very happy if someone could help me as soon as possible.

 

Best regards

Link to comment
https://forums.phpfreaks.com/topic/100200-php-files-dont-get-parsed/
Share on other sites

Hmm well but all the other files work (in a different directory).

First I got a 500 error code (Internal Server Error) when I accessed a php file.

So I created a .htaccess file with the following content:

AddHandler application/x-httpd-php .php

 

Now there isn't a error anymore, but the ouput is just plain source code.

 

Regards

Yeah, it's inside of the www root.

 

Files in www/ work normally. Files in the folder www/upload/ won't work and all other directories like www/folder01/ work normally with parsing php files.

 

Might there be a possibility to active the php file parsing with a htaccess file?

 

Regards

I just found something which might help:

when I run a *.php5 file the following message is returned:

 

Not Found
The requested URL /cgi-bin/php5.cgi/php/server-up/uploadfolder/sathan.php5 was not found on this server.

 

Looks like it's using cgi anyway?

 

best regards

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.