Originally Posted by Torvitas
hi im running a debian 4.0 system on a root-server and i have 2 different but very important questions.
1. how to change apache 2 default directory to change this:
2. how to get sendmail working?
I installed it via "apt-get install sendmail".
what do I have to do now? I only want to send mails for giving "activition-mails" and "forgot my passwd" mails from php pages. Would be nice if somebody could help a bloody noob xD
greetz and thx in advance Torvitas
1. Don't overthink it.
simply go to /var/www and make a folder called "FoH". put index.php in there & you're set. Even better, simply put index.php in /var/www & you can just go to http://184.108.40.206/
to get to the page. Beyond that, your config files are in /etc/apache2/conf (IIRC). The file is called either httpd.conf or apache2.conf Just remember that if you edit anything in there you have to restart apache for the settings to take effect - "sudo /etc/init.d/httpd restart" (or possibly /etc/init.d/apache2 if you don't have httpd)
2. Is there anything that makes you think it's not working? If so, what? if you've installed through apt-get, you should be set. try using the "mail" function in php to test. Alternatively, you can run this command to test:
-s "test" < /etc/fstab
... which will send you your own fstab as a test.