Mimicking a Virtual Host Setup
| From: | Gerard Samuel | Date: | Wed, 26 Nov 2003 18:19:28 +0000 |
| Subject: | Mimicking a Virtual Host Setup | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-171118@lists.php.net to get a copy of this message | ||
Im looking to find out information on what hosting companies do to
run php on their servers.
So that I can try to duplicate their environments, to see how my scripts
behave under "real world" conditions.
Currently, I use a default php.ini setup, and control domains via apache's
config file.
--snip--
<VirtualHost *>
ServerName www.foo.org
DocumentRoot /path/to/files/
<IfModule mod_php4.c>
php_admin_value include_path ".:/usr/local/lib/php"
php_admin_flag register_globals on
php_admin_flag safe_mode on
php_admin_flag magic_quotes_gpc on
php_admin_flag output_buffering 0
# php_admin_flag display_errors off
php_admin_value error_log '/tmp/php-error.log'
</IfModule>
</VirtualHost>
--snip--
Plus I make all files/folders owned by a user other than the apache user, to
mimick ftp uploaded files to a virtual account.
So if one can point me to an online reference, or first hand accounts on
seting up up a "real world" server would be appreciated.
Thanks