Thursday, May 15, 2008

PHPFileNavigator, Files not displayed



Files are not displayed in PHPFileNavigator?
Not able to download the files?
Or your root folder shows some date in 1969 or older?

Solution is simple.
In pfn_raices table, path and web field values should end with a '/'(slash) character.
Tree view may still show the files even if the path and web don't have a '/' in the end.
However, Thumbnail view will not show any, because it cannot interpret the path.

Tuesday, May 6, 2008

WAMP and IIS on the same Server.



How to have both WAMP and IIS web servers running in the same server together?

Two ways.

1. Same IP Address. Different Port number.
This is the easy way. Assign different port numbers in IIS and WAMP. They will work without any problem.

2. Same Port number. Different IP address.
Things will get tricky when you have to use the same port number.
For example in my case, I have www.domain-a.com linked t0 192.168.1.27:80 and www.domain-b.com linked to 192.168.1.28:80.
Domain-a is a .NET 2.0 based website running on IIS. Domain-b is Joomla running on WAMP.

Here you go.

Step1. Stop the HTTP service
net stop http in command prompt.
If this command prompts any question about stopping some services, say yes.

Step2. Edit the registry. (You better backup the registry before playing around with it ;))
i. Click Start, click Run, type regedit, and then click OK.
ii. In Registry Editor, locate the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\ListenOnlyList
If you don’t find this, no harm. Create one multi-string value in the same name.
iii. Make sure it has only the IP addresses that you want your IIS to listen. In my case, 192.168.1.27.
One IP address per line.
Guess what? IIS doesn’t know about 192.168.1.28 anymore. :)

Step3. Start the HTTP Service.
net start http in command prompt.
You have to start couple of services in MMC as well. (HTTP SSL and World Wide Web Publishing Service)
Now, you can run both the web servers together on same port number. Of course, different IP addresses.

192.168.1.27:80 isIIS Website
192.168.1.28:80 is WAMP website.

In fact, 192.168.1.28 is sole property of WAMP now. IIS can’t use this IP address with any port number.