Apache server document root in linux
I have to find code of websites from customer's Linux Ubuntu server . I have checked their default-document root that is .
/var/www/localhost/htdocsI just found there many html files (e.g index.html.en , index.html.fr,index.html.ce, index.html.ft) but not whole website code like php script.
These files are located in /etc/apache2/
httpd.conf
magic
modules.d
ssl
vhosts.dWhere would the php script files be? Or could you suggest me any way for me to find them. Thanks
2 Answers
Does a2query -s show something? It should list enabled sites. Usually the site-config should be under /etc/apache2/sites-available/site.conf, symlinked to /etc/apache2/sites-enabled/site.conf, if the site is enabled.
Maybe the function phpinfo(); helps you
<?php
phpinfo();
?>It sould list information about the webserver. In the section Apache environment the document root should be listed
5first of all there was file name as httpd.conf where custom directory was defined like
etc /.../vhosts.d/*confvhosts.d files had 3 conf files . one of them was related to my code . server-name and rewriterule were defined there. like
/virtualhosts/aalm/ecash3/....www/i got target files in www.
More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"