Pages

Showing posts with label web server. Show all posts
Showing posts with label web server. Show all posts

Allow FireFox Browser To Run Localhost Web Sever

This isn't an issue with Google Chrome browser, but Firefox will not allow you  to run local website  localhost.

If you try to run a local webserver on http://localhost.com, Firefox will automatically convert the URL into http://www.localhost.com. This is really annoying.

Lucky, there is a setting in Firefox to turn the feature off.

To disable this ‘feature’ do the following:
  • Type about:config in the Firefox browser bar
  • Type browser.fixup.alternate.enabled in the search box that appears
  • Double click on the browser.fixup.alternate.enabled will turn it to false
Run LocalHost on Firefox Browser

Run PHP5 on Apache2.2.x as Module or CGI

This is a notes on how to run PHP5 on Apache 2.2 with either Module or CGI.

Open Apache http.conf file and make the following changes.

The following modification is only required for run PHP as CGI.
1. Find the default directory section
<Directory />
Options FollowSymLinks
AllowOverride None
#Order deny,allow
#Deny from all
Satisfy all
</Directory>


Comment out the following two lines
Order deny,allow
Deny from all

2. Add the following lines for Module or CGI
# RUN PHP as Module

PHPIniDir "D:/php5/"
LoadModule php5_module "D:/php5/php5apache2_2.dll"
AddType text/html .php .php5
AddHandler application/x-httpd-php .php . php5

# RUN PHP as CGI
ScriptAlias /php/ "C:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"
<Directory />
Order allow,deny
Allow from all
</Directory>