403 Forbidden - Access to this resource on the server is denied!

nokiajavi

New Member
Messages
10
Reaction score
1
Points
3
Good evening, today I noticed that when I access some pages of my website, I get the error:

403 Forbidden - Access to this resource on the server is denied!

The .HTML files work, but the .php files do not. When I try to access to my web, to a php file, for example: http://nokiajavi.tk/phpinfo.php

I get this error, has something changed in my account, could you help me?

PD: I have resisected all files and folders and they have permissions 644 and 775 respectively.

Thank you very much in advance.

Thanks in advance.
 

nokiajavi

New Member
Messages
10
Reaction score
1
Points
3
Hello, could an administrator help me? @Eric S Thanks

In logs I see:

[ERROR] [3410597] [T0] [81.40.58.253:63769#APVH_www.nokiajavi.tk] MIME type [application/x-httpd-alt-php72] for suffix '.php' does not allow serving as static file, access denied!
 
Last edited:

spacresx

Community Advocate
Community Support
Messages
2,199
Reaction score
195
Points
63
in that phpinfo file try removing the line phpinfo(INFO_MODULES);
that may be the cause of your error
 

nokiajavi

New Member
Messages
10
Reaction score
1
Points
3
in that phpinfo file try removing the line phpinfo(INFO_MODULES);
that may be the cause of your error

Well it doesn't work either, no .php page works, the worrpress that I have installed doesn't work either, only the .html pages work.

I have read that it could be a directAdmin issue, in the apache Handler, for the attribute "lsphp" add php72 but I have verified it and if it is added.

I don't know if it has to do with the .htaccess, or some update that has been done on the servers or something. As in my case, my server does not allow me to change PHP version, because when I change it no longer works any mysql library, or pdo or anything. Something strange must be happening in my account.

Thanks!
 

spacresx

Community Advocate
Community Support
Messages
2,199
Reaction score
195
Points
63
i have requested staff to review your post.
please allow them time to check this out and reply back.
 

nokiajavi

New Member
Messages
10
Reaction score
1
Points
3
Thank you very much! Of course I'll wait as long as it takes, no problem.
 

Eric S

Administrator
Staff member
Messages
1,056
Reaction score
145
Points
63
Good evening, today I noticed that when I access some pages of my website, I get the error:

403 Forbidden - Access to this resource on the server is denied!

The .HTML files work, but the .php files do not. When I try to access to my web, to a php file, for example: http://nokiajavi.tk/phpinfo.php

I get this error, has something changed in my account, could you help me?

PD: I have resisected all files and folders and they have permissions 644 and 775 respectively.

Thank you very much in advance.

Thanks in advance.
Hello,

This is caused by your .htaccess file containing custom code to point to a php install that does not exist. I have renamed the .htaccess file and can now see everything loading : http://nokiajavi.tk/phpinfo.php
 

nokiajavi

New Member
Messages
10
Reaction score
1
Points
3
Waw! Thank you very much, you are a crack! What I do not know is how this file has been modified, because I have not touched it, tde anyway I point it out in case it happens to me again, the same has solved the problem of the change of php version that had been happening to me for some time.

Again thank you very much! Best regards.
 
Top