Forum Moderators: phranque
I've just joined a new hosting company. The only folder I can find for displaying files is "public". But also inside this is my cgi bin.
My hosting company has given me access to apache handlers, (no idea what they are) have read apache manual, but still don't understand: a) what to do, or,
b) which handler to use to change, which folder apache will use to display my files to visitors, and also how to add extemsion .php to my cgi bin?
Kind regards
DG
Welcome to WebmasterWorld!
a) That depends on what you want to do. Usually, stick a plain .html file in the "public" directory, and see if you can see it on the web.
b) Typically, you use AddHandler [httpd.apache.org] to declare that php files should be processed for included php code. If php is pre-installed in your account, you may not even need to do that. Lots of examples [google.com] posted here.
2a) Spend a lot of time reading the Apache documentation [httpd.apache.org]. There are no shortcuts that don't lead to big problems later on.
c) Have fun!
Jim