Web Programming

Web Programming

EasyPHP: Apache Cannot Be Run. Another Web Server Is Using The Web Port Or Port Is Blocked By Firewall

easyphp_logoProblem:
When I start EasyPHP: “Apache Cannot be Run. Another web server is using the web port or port is blocked by firewall”…

Solution:
1. By default the Apache port is set to 127.0.0.1:80, so make sure other applications  like IIS, Skype, Yahoo! messenger and etc applications are not using the same port (port 80).

2. If the port already used by other application, change the port to 8080. How? Please read more from this post.

3. If the problem still exists, then try this: Press “Ctrl+E” and there is a pop-up window or go to Configuration>EasyPHP:
easyphp_portbeenused

4. Uncheck the “Check Server’s TCP port before starting” and press “Apply”. Then Restart EasyPHP again.

EasyPHP: How to change Apache server port number?

easyphp_logoProblem:
By default the Apache server port is set to 80, same as IIS server. If I want to change the default port to the port that I want.

Solution:
1. Double click on the EasyPHP icon at the system tray (the icon appears beside the clock). A popup window will appear, click once on the “e” button that appear on the left hand side> Configuaration > Apache.

easyphp_changeport

2. It will open a file called httpd.conf:

- Find the line “Listen 127.0.0.1:80″ and change to “Listen 127.0.0.1:8080“,

- (Optional) Find the line “ServerName localhost:80″ and change to “ServerName localhost:8080

align=”absmiddle” or align=”absbottom” not validate in W3C Markup Validator

Normally we will use align=”absmiddle” to make an image align in the middle between a HTML element/object, e.g:

<input name=”text1″ type=”text” maxlength=”17″><img src=”button_ok.gif’” alt=”OK” style=”margin-bottom:1px;” align=”absmiddle>
or
<img src=”images/icon_diamond.gif” alt=”" align=”absbottom>

You will get error when you try to validate your page with W3C Markup Validator (http://validator.w3.org/check).

How to solve?

Use this:

<img style=”vertical-align:bottom” src=”images/icon_diamond.gif” alt=”" >

Same as:

<img style=”vertical-align:middle” src=”images/icon_diamond.gif” alt=”" >