Tag Archives: IIS

What If Ftp and mysql access are not given ?

5 Jun , 2008,
Administrator
, , , , , , ,
No Comments

Many times customer thinks that we might spoil their FTP account. or mis-use the FTP or cpanel. But this is all myth. As we are professionals and doing work from almost Year 2000.

Generally FTP is the thing where we can able to upload the files on your server. as for IIS and Apache(Linux) both having different settings. so as a programmer point of view we have know which server you are using.

There might be another question which might arise. What is difference between IIS and apache servers. First Major difference is that IIS is case-insensitive. and Apache is case-sensitive. in more details. when say If I created one file abc.php, ABC.php and uploaded on IIS server then both files will be overwrite. and Final upload will be carried out. But If server is linux+Apache then both files will be uploaded. and server thinks that abc.php and ABC.php both are different file. So As a programmer point of view, it is necessary for us to get access.

There are some settings which is also required to know. Let say you have install php on your server. but we would like to know which version of php is installed on it. sometime if your php version is very older then some function will not execute properly on your machine. and their might be possibility that you think that we programmed bad. No that is not the case.

Same thing for mysql versions. some of mysql version having very less features and recent version of mysql having many features like procedures and triggers.

We have seen that my people try to upload the files on their own. and unable to access site. They forgot many thing which only programmer knows.

  • Whether Uploaded Files on correct location. e.g IIS sometime folder is httpdocs or httpsdocs or Apache its www folder. if any person upload the files on wrong path then it will not seen.
  • Some folder might need to give permission differently. Let say if program is created to upload the files to specific folder then that folder’s permission would be set accordingly.
  • Sometime people upload the files and forgot to provide permission for execution.

Access for Cpanel / Plesk / Admin Panel

Some program need to set email handling script. their need to From email name should be set. so for that reason we needs to know whether that name was already set. if that email address is not set then systems thinks that email going outward or inward as spam

Some time we need to set the cron job. for setting cron job on cpanel,plesk or any other login are different.

Some we need to check whether their particular module is installed or not. Recently we have one cpanel access where we found that every upgradation server do. then they disabled pdf module. and then customer thinks that it was our problem. then we technically shown that customer that it was problem belongs to host company and not with solutions which we have provided.

Still if you have doubt why we need these ? Then you have to always keep faith on programmer. because he is the person who is working on your code. We are here to create goodwill for our firm. We doesn’t like that our work is not going online. so just keep faith.

Some of Differences on IIS and Apache

23 May , 2008,
Administrator
, , , ,
No Comments

Many people demands to create SEO friendly urls on IIS. As most of the servers doesn’t have 3rd party add-on for SEO. so making url which doesn’t have “&” “?” is not possible.

As far as Apache have mod_rewrite module installed by default on many servers. so we can able to make SEO friendly URL easily. As per our experience we have seen that Apache having many features which IIS unable to provide by default.

So I always recommend our customer to get apache server. and come top to search engines pages.

Multiple IIS Virtual Servers on local machines

May , 2008,
Administrator
, ,
No Comments

By Author : Steven Cohn

Posted on : http://www.developerfusion.co.uk/show/4645/

When Microsoft released Windows XP Pro they pushed it as the next development platform, superceding Windows 2000 Workstation. The reality, however, is that it is nothing more than a very slightly enhanced version of Windows XP Home edition. One of the major development features that didn’t make it from 2000 to XP was the ability to host multiple virtual Web servers on a single machine. Essentially, Microsoft disabled (hid) the menu item in the IIS Management Console that allows you create a new virtual server.

As a developer who builds and maintains multiple Web sites for friends, collegues, other (non-competitive) companies, this is extremely annoying! Although you can theoretically create a new Web site under a new virtual root (a child path under your default Web server) this presents a big problem: the new Web site would have to be aware of this path offset when referring to itself with absolute or relative paths. The advantage of having a new and independent virtual server is that it only recognizes its own virtual roots and paths.

The Secret

However, there is an alternative, albeit slightly cumbersome. The ability to create multiple virtual servers is only hidden, not stripped out completely.

While you cannot create a new virtual servers through the MMC, you can still use the administrative scripts that come with IIS, specifically, the adsutil.vbs script.

IIS virtual servers are defined in the IIS metabase as numbered entries under the W3SVC key. For example, the default Web site is named W3SVC/1; the second site created would be named W3SVC/2; and so on.

So, to create a second virtual server, open a command window and type:

C:InetpubAdminScripts> adsutil.vbs create_vserv W3SVC/2
C:InetpubAdminScripts> adsutil.vbs copy W3SVC/1 W3SVC/2

The first command creates a new virtual server in the IIS metabase.

The second command copies all the necessary meta data from your default Web site to the new Web site to make it work properly.

Rename It!

When you copy the meta data from an old site to a new site, the new site will inherit all of the old attributes, including the name. So you’ll want to immediately rename the new virtual server. Open MMC and find the new entry – they will be listed in the sequence in which they were created (W3SVC/1, W3SVC/2, ….).

You’ll also need to change other settings, such as the home directory. I typically like to create a new folder directly under the C:InetPub folder for each new virtual server.

The Caveat!

When you open the IIS MMC, you’ll notice a red icon next to the new virtual server and and error message in the comments column. This is OK. What this means is that inetinfo.exe attempted to start up this second virtual server.

The caveat in this whole thing is that, while you can create multiple virtual Web servers on a single Windows XP Pro machine, you can only run one at a time. Unfortunately, I (and apparently no one else) can find a way to work around this. Even applying a unique port number to each virtual server doesn’t seem to work.

Toggling

But it’s not so bad… All you have to do is open the IIS MMC, stop the currently running virtual server and start the one you want.

Of course, this means that when you switch between virtual servers, any active sessions on the virtual server you just shutdown will be lost. But the original intention was to be able to develop multiple Web sites, without having to worry about absolute or relative URL paths throughout the source code.

Deleting and Enumerating

You can also delete a virtual server that you previously created using this technique. The adsutil.vbs script includes a delete command:

C:InetpubAdminScripts> adsutil.vbs delete W3SVC/2

Keep in mind, after deleting a virtual server, that you can’t rely on the number of virtual servers shown in the IIS console to indicate the next available virtual server id number. For example, if you’ve created server 1, 2 and 3 and then delete server 2, the IIS console will only show two servers, but you cannot create another W3SVC/3 because that one already exists.

But you can enumerate the existing virtual servers using this adsutil.vbs syntax:

C:InetpubAdminScripts> adsutil.vbs enum w3svc /p

The /p qualifier indicates that you only want to view top level paths and not individual parameters. Otherwise, the output will be very long and difficult to understand.