My server recently made some serious changes,
As a result I suffered the famous php download application/x-httpd-php file browser error.
After hours of searching I finally resolved the issue editing my .htaccess file from
- Code: Select all
AddHandler php5-script .php
SetEnv PHP_VER 5
- Code: Select all
AddHandler x-httpd-php5 .php
SetEnv PHP_VER 5
But soon after, I discovered another problem, In the past I could simply create folders and if they did not contain an index file, the apache server would give me a nice overview of the contents.
Well, now it gives me a forbidden or not found error.
I read on the net this could be simulated with a php file,
but when I tried it I noticed the '@opendir($path)' would simply fail.
I did not cause the above issues as it worked before until my host decided to make some unknown changes.
Now I am stuck with the 'httpd.conf' file, this is what I have
- Code: Select all
<Directory "/some-site.com/www/php">
Options Indexes MultiViews FollowSymLinks
IndexOptions FancyIndexing
AllowOverride none
order allow,deny
allow from all
</Directory>
I also don't know wheter
- Code: Select all
<Directory "/some-site.com/www/php">
I did try 'http://www.some-site.com/php/' and '/php' to no avail.
Most solutions I see on the web are for people running apache from home which is not the case with me.
Any help is greatly appreciated, as I wasted too much time already and am frustrated now.
Thanks in advance,

