It's for your own safety !

General discussions related to php

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 2
Joined: Mon Oct 17, 2011 5:12 am

It's for your own safety !

Postby EdDyreen » Wed Jul 11, 2012 11:13 am

Not sure whether this is the right location for this question...

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 "/">
Options Indexes MultiViews FollowSymLinks
IndexOptions FancyIndexing
AllowOverride none
order allow,deny
allow from all
I don't even know where to place this file so I placed it in the root folder of my host, where .htaccess is.
I also don't know wheter

Code: Select all

<Directory "/">
is correct because to browse it I used to go to ''.
I did try '' 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. :yawn:

Thanks in advance,

Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 1 guest