Saturday, 19 March 2011

Virtual Host

<VirtualHost 192.168.2.154:80>
 #  ServerAdmin webmaster@dummy-host2.example.com
   DocumentRoot "/usr/local/apache2/htdocs/ram"
   ServerName addon.com
   ServerAlias ram.exam.com
   ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
   DirectoryIndex "index.php"
   Options +ExecCGI
    #Redirect / http://addon.com
#    ErrorLog "logs/dummy-host2.example.com-error_log"
 #   CustomLog "logs/dummy-host2.example.com-access_log" common
</VirtualHost>
inside ifmodule type the below line
   ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
out side ifmodule type
 AddHandler php5-script .php
       Action php5-script "/cgi-bin/php-cgi"

##############################################################################
type php -i |grep php.ini
this will show where this php.ini files should be available by default
copy php.ini-recommended or php.ini-development as php.ini in those
locations.Or if you want to activat

No comments:

Post a Comment