WinLAMP v.4.0 Configuration Help
WinLAMP config help
To edit the config files, use the Start Menu shortcuts:
Start | Programs | WinLAMP | Configure | Edit conf file.
Following are the CONFIG options which may be customized by WinLAMP. To adjust
them, open up the file, search for the keyword, and modify it.
Then save your file and restart Apache for the settings to take effect.
- ServerName (WinLAMP defaults to 'localhost' but if you're using a
production server, you might change this to the actual machine
name. Find it by right-clicking "My Computer", selecting
'Properties' and viewing 'Computer Name').
- DocumentRoot (WinLAMP defaults to C:\Apache2\htdocs)
- Listen (WinLAMP defaults to port 80. This is the port Apache will listen on.)
- AllowOverride (WinLAMP defaults to 'All').
- register_globals (Back in the old days, this defaulted to "On." Nowadays,
for security, this defaults to "Off". Some developers need it to be "On"
for legacy code. If it is Off, you need to refer to form variables using
the syntax $_REQUEST['variablename'] instead of simply $variablename.)
- magic_quotes_gpc (Leave it OFF. It's better to learn how to manually tweak your data than to let magic complicate things.)
- session.save_path (WinLAMP php temp directory defaults to Apache2/modules/php/tmp).
Make sure you synchronize any user/pass changes in MySQL with phpMyAdmin.
- user (This is the admin username, 'root'.)
- password (WinLAMP defaults to 'mysql')
- auth_type (Authentication method -- config, http or cookie based. WinLAMP defaults to config.)
Apache and MySQL are installed as services, and designed to
startup automatically when you log in. If you want to change them to start
only when you tell them to, use the command lines. You only have to
run these commands once:
- sc config Apache2 start= demand (This will make it start only on demand. Note the space after the equal sign.)
- sc config Apache2 start= auto (This will make it start during boot, which is the default).
- sc config mysql start= demand (Same as above).
- sc config mysql start= auto (Same as above).
- c:\apache2\bin\apache -k install -n "Apache2" (Used to install Apache as a service).
- net stop Apache2 (This will stop the service; do this before uninstall. Same effect as '-k stop' described below).
- c:\apache2\bin\apache -k uninstall -n "Apache2" (Used to uninstall Apache).
- Apache -n "Apache2" -k start (Start Apache as a service-- must be installed beforehand, as described above).
- Apache -k stop (Gracefully stop Apache).
- Apache -k restart (Graceful restart of Apache).