LinuxGuruz
Toll Free Numbers
Custom Search
MAIN MENU
Main Page
IT Jobs
IPTABLES
Linux Forum
HTML Forum
PHP Forum
MySQL Forum
Linux FAQ
Linux Articles
About Us
Privacy Policy

ADD TO FAVORITES


MARC

Mailing list ARChives
- Search by -
 Subjects
 Authors
 Bodies





FOLDOC

Computing Dictionary






Cheap UK Web Hosting Provider

Cheap Dedicated Servers UK

Cheap Linux VPS Hosting UK

Cheap Cloud Hosting UK



Icons
Icons


free brochure template
Free Brochure Template

Web Hosting

Domain Names

Web Design

Reseller Hosting

Registro de Dominios

Reseller Hosting


Toll Free Number for $2.00/Month!!!

Toll Free Number for $2.00/Month!!!
VirtualHost PHP 4.x Tips

Title:       VirtualHost PHP 4.x Tips
Contributor: Randall Goguen (aka Ranman)
Last Update: Friday October 19 22:20 EDT 2001

    You can view the settings of most of the configuration
values in the output of <? phpinfo(); ?>

    Following is a extract of a httpd.conf file.


NameVirtualHost 10.166.98.200

<VirtualHost 10.166.98.200>
ServerName virtual.com
ServerAlias *.virtual.com
ServerAdmin webmaster@hostmachine.com
DocumentRoot /home/www/www.virtual.com/htdocs
php_admin_value open_basedir /home/www/www.virtual.com 
UserDir /home/www/www.virtual.com/htdocs
ErrorLog /home/www/www.virtual.com/logs/error_log
CustomLog /home/www/www.virtual.com/logs/access_log combined
ScriptAlias /cgi-bin/ /home/www/www.virtual.com/cgi-bin/

<Directory /home/www/www.virtual.com/cgi-bin>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

# See: http://www.php.net/manual/en/configuration.php
#
# For httpd.conf
#
php_admin_value open_basedir /home/www/www.virtual.com
php_admin_flag engine on
php_admin_flag log_errors on
php_admin_value max_execution_time 180
php_admin_value upload_tmp_dir /home/www/www.virtual.com/htdocs/tmp
php_admin_value include_path /home/www/www.virtual.com/htdocs/include
php_admin_flag short_open_tag on
php_admin_value memory_limit 8388608
php_admin_value error_reporting 15
php_admin_flag display_errors on
php_admin_flag track_errors off
php_admin_value error_log /home/www/www.virtual.com/logs/php_error.log
php_admin_flag magic_quotes_gpc on
php_admin_flag track_vars on
php_admin_value auto_prepend_file /home/www/www.virtual.com/php/prepend.php
php_admin_value auto_append_file /home/www/www.virtual.com/php/append.php

# See: http://www.he.net/info/htaccess/demo.html
#
# For .htaccess
#
php_flag log_errors on
php_flag short_open_tag on
php_value max_execution_time 180
php_value upload_tmp_dir /home/www/www.virtual.com/htdocs/tmp
php_value include_path /home/www/www.virtual.com/htdocs/include
php_value memory_limit 8388608
php_value error_reporting 15
php_flag display_errors on
php_flag track_errors off
php_value error_log /home/www/www.virtual.com/logs/php_error.log
php_flag magic_quotes_gpc on
php_flag track_vars on
php_value auto_prepend_file /home/www/www.virtual.com/php/prepend.php
php_value auto_append_file /home/www/www.virtual.com/php/append.php

</VirtualHost>


	Anyone who wishes to make additions or changes to this 
PHP Tip email them to webmaster@linuxguruz.org

	This document is Copyright (c) 1999 by LinuxGuruz

Return to the LinuxGuruz PHP Tutorials Page
Return to the LinuxGuruz Main Page


www.PHP.net Search Engine


Restrict the search to:
Copyright © 1999, 2000 The PHP Development Team.
Submit a PHP Tutorial

Title:

Contributor:

IRC NICK: (optional)

E-Mail Address: (optional)

Tutorial:

Return to the LinuxGuruz PHP Tutorials Page
Return to the LinuxGuruz Main Page

RESOURCE LINKS
Linux
Apache
HTML
PHP
MySQL
PostgreSQL
Oracle
CGI
Perl
Java
C/C++
Bash
Tcl
Networking
Security
ISP
IRC
Xwindow
Laptop
Graphics
Hardware
Reference
Misc

Broadband


filing cabinet

  • Buy Batteries for Laptops and Cameras
  • Notebooks
  • Michael Fertik
  • Reputation Defender

  • XP Style Icons
    XP Style Icons


    Network Certification


    Network Security


    Wireless Networking


    Canadian
    Web Hosting in Canada


    Drummer Portal


    Mending Media

    The Path Of
    Most Resistance


    Toll Free Number for $2.00/Month!!!

    Toll Free Number for $2.00/Month!!!


    Linux

    The Distributions





    Linux

    The Software





    Linux

    The News




    webmaster@linuxguruz.com
    Copyright © 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 and 2009 by LinuxGuruz