After we have install the GD Graphics Library for PHP 4 we get this in our error log "Directory index forbidden by rule: /home/filmparadiset/public_html/", and also for the other domain we have on our server.
What have happend?
This is the Apache configuration–and it’s always been like that. When you put content into that directory (and index.html, or index.php) this error will disappear. All it means is that either: A default Virtualmin “Server is working!” page was served (if you have a /etc/httpd/conf.d/welcome.conf file), or an error saying “forbidden” was served. Since there was no file to serve there anyway (if there were, it wouldn’t have given an error), neither of these is harmful.
You can enable indexes in the Apache configuration, but I don’t recommend it. It can be a potential source of security problems, particularly if you have non-technical users hosting on your system who might store private data in ~/public_html, rather than moving it up a level into ~ where web services can’t see it at all.
I have to jump in with a question that is related to this.
You say “This is the Apache configuration–and it’s always been like that…”
If I understand you rigth the indexing is off by default. But on our two installs the default is allow indexing, I have to manually set indexing off, I have not changed these settings in the default template.
Jo i samband med att jag installerade GD så slutade möjligheten att öppna sidor med .php ändelser. .html fungerar utan problem. Jad avistallerade GD men har fortfarande kvar problemet med att jag inte kan öppna .php sidor.
Var och hur ändrar jag indexing, kan inte hitta var jag gör denna inställning, som man brukar säga "jag ser inte skogen för alla träd"
There are RPMs for all of the operating systems we support in the OS-standard repository (and in our repos for the php4 packages that we provide on Fedora Core 4, 5 and 6). So installation should be a very simple operation with no chance of screwing anything up:
yum install php-gd
Or:
yum install php4-gd
Or, using yast on SUSE, urpmi on Mandriva, apt-get on Debian/Ubuntu (same concept, maybe a different package name).
I have found the problem right now, and the solutions is that I have both php4 and php5 loaded. So in php.conf I comment out all referens to php5, and BINGO the page shows upp again.
Yes i have install by yum install php4-gd, I do`nt now what happend after that installation, but after stop loading php5 everythings work as a charm again.