htdocs path in linux

Shishant picture Shishant · Oct 17, 2009 · Viewed 61.3k times · Source

I am working on linux server through ssh and want to know where to put html and php files (the htdocs folder) but its seems to me the servers is running lighttpd

My directory structure looks something like this.

alt text

Answer

Horst Gutmann picture Horst Gutmann · Oct 17, 2009

That totally depends on your server configuration so your only reliable source of information should be lighttpd's configuration file which (if installed globally) should normally be within the /etc folder (e.g. /etc/lighttpd/lighttpd.conf).

Popular locations for the htdocs folder are /var/www or somewhere within /srv.