Solved

Going away from Apache to IIS

Posted on 2004-10-09
17
145 Views
Last Modified: 2010-04-20
I currently have many php scripts running on win2k3, apache 1.3, php4,mysql
apache 1.3 is giving me some problems and it's speed is not the best... i'm thinking about going to IIS 6/php4/mysql... i made sure all my scripts supports IIS/php4... are there any warnings before i venture on this risky migration? if it's risky at all? i'd like to migrate by the end of the weekend.. any tips/heads up will be greatly appreciated.. thanks!
0
Comment
Question by:andreni78
  • 4
  • 4
  • 3
  • +3
17 Comments
 
LVL 33

Expert Comment

by:humeniuk
ID: 12266491
I don't know if it's risky.  I have PHP4/MySQL running on a couple of different IIS servers - one Win2k3 Server, one Win2000 Server - and I've never had a problem.  In my experience, they work extremely well together.  The PHP Windows installler sets up PHP for you and the MySQL manual has good info about installing MySQL on Windows (http://dev.mysql.com/doc/mysql/en/Windows_installation.html).

Keep in mind that my experience is based on only two servers.  Perhaps someone else has encountered some problems that I haven't.
0
 
LVL 9

Accepted Solution

by:
ronan_40060 earned 168 total points
ID: 12267614
I think the following links wud be a good starting point
 http://httpd.apache.org/docs/mod/core.html#keepalive
http://httpd.apache.org/docs/misc/perf-tuning.html
Infact theres a good article on apache performance tuning from IBM developrworks , you need to register yourself there the link is
http://www-106.ibm.com/developerworks/edu/wa-dw-waapache-i.html
another url worth looking at is
http://apache.active-venture.com/
Ronan
0
 
LVL 17

Expert Comment

by:Tacobell777
ID: 12282306
why dont you upgrade Apache?

I don't think you will find any performance gains when moving to IIS (and I am pro IIS - use it all the time)

You'd probably want to look at other things, like programming, upgrading etc..
0
 

Author Comment

by:andreni78
ID: 12284873
some of the articles ronan provided stated apache isn't made for winnt.. the programming structure isn't the same
0
 
LVL 17

Expert Comment

by:Tacobell777
ID: 12284910
maybe the old apache, but the new is just as good as anything else. Upgrade its free!
0
 

Author Comment

by:andreni78
ID: 12290531
I actually want to upgrade.. but the problem i'm facing is making virtual domains work.. for the life of me.. i can't get it to work.. whenever i add the virtual domain command:
<VirtualHost 111.111.111.111:80>
    ServerAdmin me@mysite.com
    DocumentRoot d:/web/mysite
    ServerName www.mysite.com.com
    CustomLog d:/web/apache/logs/mysite.log combined
</VirtualHost>

it doesn't work for some odd reason.. apache 2 wouldn't even start...
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 12291038
What errors are shown in the error_log or on screen?

Have you tried:

apachectl configtest

to see what problems it mentioned your configuration as having?

 Do you have a command like:

Listen 111.111.111.111

in your configuration files?
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:andreni78
ID: 12331688
ok i got the virtualhost deal to work.. now i've got another situation:


System: Win2k3/Apache2.0/PHP4.3.9

Situation: I've got a smooth running site with apache 1.3 - I want to upgrade to apache 2.0 because its architecture is built for NT.. so when I upgraded my site to apache 2.0... some of the links/files i access results in "cannot find server."

for example.. when i enable apache 1.3 on my site.. i can access www.mysite.com/activity.php (activity mod for phpbb2) just fine.  however when i switch to apache 2.0.. the activity file will return a "cannot find server" error.. this problem seems to occur on random scripts i have on my site.  PHPBB will run fine.. but it's activity mod has problems... most of egroupware applications run fine.. but the email returns a "cannot find server" error..

so i tried renaming the activity.php to  activity1.php.. and create another activity.php file with simple php code - it parses fine... but when i switch activity1.php to activity.php again.. it gives me the same error... when the file was named activity1.php.. i accessed it and it gave me the same error - "cannot find server"..

so.. it HAS to be the content in these php files that causing these errors.. but why would it cause problems in apache2 but not apache 1.3?  i've run installation test for a few scripts under apache2.0 and it doesn't give me anything diff from installation test under apache 1.3 environment...

i've been having this problem for days and i cannot for the life of me, figure this one out..

please any suggestions would be greatly appreciated! as i've exhausted all avenues i know of to try and fix this problem...
0
 
LVL 17

Expert Comment

by:Tacobell777
ID: 12331784
maybe post another question in the apache area??
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 12333010
Have you installed support for PHP in Apache 2.0?  What are the errors in the error_log?
0
 

Author Comment

by:andreni78
ID: 12336121
yeah php works fine.. as said before.. when i put simple php coding in activity.php file, it works fine.. error log doesn't log any errors at all.. it's just something contained in the original activity.php file is causing problems.. i don't know what...

so ...
phpbb works fine
oscommerce works fine
"activity" mod for php bb doesn't work
SOME parts of egroupware work.. some doesn't...

so when i switch back to apache 1.3... EVERYTHING works fine... this is really giving me some major probs..

one note.. it's recommended on egroupware site that i use apache 1.3
0
 
LVL 15

Assisted Solution

by:periwinkle
periwinkle earned 166 total points
ID: 12338783
Hmmm - sounds like there are some incompatibilities, then with your egroupware suite that they are aware of.

The upgrading Apache to 2.0 from 1.3 page can be found here:

http://httpd.apache.org/docs-2.0/upgrading.html

There are definitely some issues with backward compatibility, particularly in terms of modules;  you may wish to review this page to see if there is something readily identifiable as the problem.
0
 
LVL 23

Assisted Solution

by:rama_krishna580
rama_krishna580 earned 166 total points
ID: 12484408
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 12798081
This is a difficult one to call on who should receive the points.

The original question was about migration from Apache to IIS; however, the user was also interested in potentially upgrading Apache, too.

I feel that ronan_40060 and periwinkle gave the best advise on whether or not upgrading the version of Apache would work with the upgrade.

rama_krishna580 gave a link to another ee question that had some good advise on the original question....

The real question is how did the asker solve their problem, I suppose!
0

Featured Post

Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

Join & Write a Comment

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now