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 isn’t related to the GD graphics library.
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.
Ok… to clarify my post, I was talking about indexing on folders stored in public_html, indexing on public_html is of by default just like you say.
Tack fÃ¶r att du "jumpm in".
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"
Stranger, I ca’t open any .php file, but .html file are ok.
Somethings stranger have happend with access to .php files after that I have try to install GD.
But now I have done some progress, and I have fund that php is not working on my server anymore, and that happend after install of GD "arrrg"
Some tip have been wonderful, so that I can get php upp and running again!
How did you install the PHP GD bindings?
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
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.
Thank for all help, have a nice time!