Notes‎ > ‎

Debian

Enable sending mail from PHP

Exim4 comes with Debian, but to install (or update) it
sudo apt-get install exim4


Configure

sudo dpkg-reconfigure exim4-config

Choose "Internet site... SMTP"
System mail name: Your domain (ours was: tgn.tv)
Other destinations for which mail is accepted: (blank)
Press Enter for everything else (leave default setting)

Now the PHP mail() function should work!


Manual configuration

Edit /etc/exim4/update-exim4.conf.conf
Run update-exim4.conf


Documentation


Discussion


Test PHP

http://inspektech.com/phpmailer.tar.gz

See "testfile.php"

See also

Enable mod_rewrite

a2enmod rewrite

Ensure the <directory> includes to the webroot
AllowOverride All

Test mod_rewrite

.htaccess

RewriteEngine On
RewriteBase /
RewriteRule a.html favicon.ico


Enable CGI

a2enmod cgi
/etc/init.d/apache2 restart

<VirtualHost *:80>
# Comment out "ScriptAlias" if it isn't working
<Directory /usr/home/stratics/public_html/subdomains/uoss/cgi-bin>
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
AddHandler cgi-script .cgi .pl
</Directory>
</VirtalHost>



Comments