v_hosts Minor query
Posted by: kevsy (---.bb.sky.com)
Date: May 07, 2015 10:25AM

WAMPServer 2.5 The Homepage, Your Projects Menu and the need for Virtual Hosts

Hello Riggs.
From the final section.
"Now if you take this to its logical extension":
'Also I have added some modifications to the PHP config'.

The only configuration file in apache2.4.9 is the php.ini is that the one referred to.

Also the two lines refered to, php_value and php_flag can they be included anywhere within the file.
php_value max_execution_time 120
php_flag display_errors Off

Up to this stage I seem to have the thing working ok
Finally do you know anywhere I might get a demonstration/tutorial of it in action.

Options: ReplyQuote
Re: v_hosts Minor query
Posted by: RiggsFolly (---.as43234.net)
Date: May 23, 2015 02:59PM

Hi kevsy,

The php_value and php_flag etc parameter setting should go inside the Virtual Host definition to which they should be applied, like so,

<VirtualHost *:80>
    DocumentRoot "D:/wamp/www"
    ServerName localhost
    <Directory  "D:/wamp/www">
    	AllowOverride All
    	<IfDefine APACHE24>
    		Require local
    		Require ip 192.168.2
	</IfDefine>
	<IfDefine !APACHE24>
		Order Deny,Allow
   		Deny from all
    		Allow from 127.0.0.1 localhost ::1 192.168.2
    	</IfDefine>
    </Directory>

    php_admin_value upload_max_filesize 128M
    php_admin_value post_max_size 128M
    php_admin_value max_execution_time 360
    php_admin_value max_input_time 360

</VirtualHost>

This ensures that these amendments to the values set in the php.ini file only apply when connected to the specific VirtualHost within which they are entered.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.