PhP execution blocked in my account?

Status
Not open for further replies.

myildi37

New Member
Prime Account
Messages
14
Reaction score
0
Points
0
Hi,
I am a new user of x10hosting. I have copied my site from my present server. Everything seems to work, except the execution of even very simple PHP scripts. Could you please check what it blocking this possibility?
I have even created a simple example and I get a 500 Internal Server Error:

http://yildizoglu.x10.mx/livretj/test.php

This file just contains:
<?php
Print "<HTML><head>";
Print "<TITLE>Telechargement</TITLE></head> <body bgcolor='#CC3333' text='#FFFFFF'>";
Print "<hr><br><H2>Test PHP</H2><br><hr> <p>";
Print "</head></HTML>";
?>

and has the authorizations 664.

I have asked this question in the forums but nobody has been able to locate the problem yet.

Thank you very much in advance.

Prof. Murat Yildizoglu
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
The file is right, the folders shouldn't be 777. They should be 755. Checked it via SSH and that does appear to be the issue since every subfolder on your account is set to 777 - the html pages will serve fine, but it can be a security issue for folders to be 777, hence why php freaks out if you're running php from a 777 folder.
 
Last edited:

myildi37

New Member
Prime Account
Messages
14
Reaction score
0
Points
0
Thank you for your suggestions. My folder have been changed to 775 last night and this was not working. I have now changed all folder on the path to the script (/public_html and livretj) to 755 and the test.php file has 664. I continue to get the same error message.

I have installed Moodle via fantastico and it works on my account. By looking at its authorizations, I have seen that php files have 644. I have given the same rights to my php file and it works now. So the problem is solved. I will also post this solution on the forums.
We can then consider that this support request is closed.

Thank you very much.

Murat
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
Welcome; closing the ticket for now. If you need more assistance, please let us know :)
 
Status
Not open for further replies.
Top