San Sign Info

January 26, 2009

How to enable htaccess on ubuntu server

Filed under: Linux, SanSignInfo — Tags: , , , , , , — San @ 1:40 pm

Here are the simple steps to enable htaccess on ubuntu server

locate the folder /etc/apache2/sites-available and edited the file default

I have highlighted the required changes in Bold letters.

NameVirtualHost *
<VirtualHost *>
ServerAdmin admin@site.com

DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
# This directive allows us to have apache2’s default start page
# in /apache2-default/, but still have / go to the right place
# Commented out for Ubuntu
#RedirectMatch ^/$ /apache2-default/
</Directory>

Default for AllowOverride is none, should be all
/etc/init.d/apache2 restart

Now run the following command on terminal
code:
sudo a2enmod rewrite

You can verify what modules are loaded with:
code:
sudo apache2ctl -l

For any further help please add reply on to the same post.

Thank you,

San :)

October 28, 2008

Send Mail from window-Apache & PHP

Filed under: Coding, SanSignInfo — Tags: , , , , , , , — San @ 11:29 pm

If you are facing problem to send mail from Apache-PHP which is installed on Window OS. Here is the right solution for you “Fake sendmail”. You can configure it on your window server to send mail through PHP.

http://www.simplehelp.net/2008/08/25/how-to-install-and-setup-apache-mysql-and-php-in-windows/
http://sbox.bgweiz.at/benjamin.friess/Programme/xampp/sendmail/ReadMe.html
http://wiki.uniformserver.com/index.php/Installing_Fake_Sendmail_for_Windows
http://codingforums.com/archive/index.php?t-74853.html

Powered by WordPress