Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.