Untangle Networks [home]


Go Back   Untangle Forums > General Forums > Off Topic

Closed Thread
 
LinkBack Thread Tools
Old 03-21-2010, 08:32 PM   #1 (permalink)
Untangle Ninja
 
Solignis's Avatar
 
Join Date: Jul 2008
Location: Hudson, Ohio, USA
Posts: 1,417
Solignis is on a distinguished road
Send a message via MSN to Solignis
Default Iis + php

I am attempting to install IIS and PHP on my email server so I can host out a website called RoundCube Webmail.

My email server is based on windows, it is called hmailserver.

I am running hmail with MySQL Community 5.1.

I went to download PHP for Windows and found myself at a fork in the road.

I have 2 choices on types of PHP to download.

Either Thread-Safe or Non-Thread-Safe. What is the difference?

I read something on wikipedia about thread safety, but I am still lost.

While typing this I just downloaded both of them, but I am not sure which one to install.
__________________
With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead.
Solignis is offline  
Old 03-21-2010, 08:40 PM   #2 (permalink)
mdh
Untangle Ninja
 
mdh's Avatar
 
Join Date: Aug 2007
URLs submitted: 171
Posts: 4,802
mdh is on a distinguished road
Default

Read this:

http://www.iis-aid.com/articles/my_w..._safe_binaries

In a nutshell, its about connections to the database sharing threads, the robustness of the method (in general), the other code in use, the apps in use, and (likely) whether its in a protected area or accessible to the outside world. You can do a bit of reading and hopefully know what's best for you.
__________________
This space reserved for profound thought.....which does happen on occasion."
mdh is offline  
Old 03-21-2010, 09:20 PM   #3 (permalink)
Untangle Ninja
 
Solignis's Avatar
 
Join Date: Jul 2008
Location: Hudson, Ohio, USA
Posts: 1,417
Solignis is on a distinguished road
Send a message via MSN to Solignis
Default

my head hurts and I have just began my journey down the php road.
__________________
With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead.
Solignis is offline  
Old 03-21-2010, 09:25 PM   #4 (permalink)
Untangle Ninja
 
sky-knight's Avatar
 
Join Date: Apr 2008
Location: Phoenix, AZ
URLs submitted: 7
Posts: 9,951
sky-knight is on a distinguished road
Default

PHP + IIS = Unstable

I don't care how much work you put into it. We've already had this discussion over IM. :P But to be honest, all you really have to do is get the latest PHP windows installer and double click. It does it all for you.
__________________
Intouch Technology
Rob Sandling, BS:SWE, MCP
Office: 480-272-9889
rob@intouchtechllc.com
sky-knight is online now  
Old 03-21-2010, 09:40 PM   #5 (permalink)
Untangle Ninja
 
Solignis's Avatar
 
Join Date: Jul 2008
Location: Hudson, Ohio, USA
Posts: 1,417
Solignis is on a distinguished road
Send a message via MSN to Solignis
Default

Yeah I know we have discussed this, but seeing from where I stand I am very limited on options. I would go the easy way and just use something like WAMP or XAMPP but I don't need the MySQL server and the last time I remember you can't select what you want to install. Or maybe you can I don't recall.
__________________
With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead.
Solignis is offline  
Old 03-21-2010, 09:45 PM   #6 (permalink)
Untangle Ninja
 
Solignis's Avatar
 
Join Date: Jul 2008
Location: Hudson, Ohio, USA
Posts: 1,417
Solignis is on a distinguished road
Send a message via MSN to Solignis
Default

Well I feel silly, I went and tried to install AppServ. Which is my personal preference in Apache, MySQL, PHP packages. It allows me to select which parts I want.

In terms of ease of use, Apache is more straight forward than IIS isnt it?

If I am omitting MySQL from the package installation, is there anything I must do to PHP to make it work with the MySQL server I already have installed? Or is it not dependent on the SQL server?
__________________
With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead.
Solignis is offline  
Old 03-23-2010, 07:30 AM   #7 (permalink)
Master Untangler
 
Mathiau's Avatar
 
Join Date: Feb 2008
Location: Costa Frickn' Rica
Posts: 824
Mathiau is on a distinguished road
Send a message via AIM to Mathiau Send a message via MSN to Mathiau Send a message via Yahoo to Mathiau
Default

Quote:
Originally Posted by sky-knight View Post
PHP + IIS = Unstable

I don't care how much work you put into it. We've already had this discussion over IM. :P But to be honest, all you really have to do is get the latest PHP windows installer and double click. It does it all for you.
not %100 true, maybe 6-7 years ago when it was poorly ported over to work on windows but today it is stable, now it may have better performance on linux, but that is another story.

use fastCGI for server 2008.

we have been using PHP+IIS for 8 years with no issues of stability for any of our reporting systems or hosted site, i am sure this is one issue that can go back and forth, a system is only as good as the person who set it up.

IIS is more straight forward because of the GUI, Apache is all text based to edit settings, not that it is hard, i administer 3 apache based severs and 2 IIS 7 ones, people will argue Apache +php+mysql should only run on Linux blah blah blah, but it runs fine on windows also.

i found IIS is far easier to configure for virtual hosts then apache is

Quote:
the easy way and just use something like WAMP or XAMPP
Unless you secure it down, don't even think of using them on public facing sites, the sites say themselves they are for testing only, because all modules and add-on's are loaded by default.

PHP + IIS7 fastcgi
http://www.jppinto.com/2009/03/insta...s-server-2008/


MYSQL + PHP and IIS7
http://maximumpcguides.com/windows-v...hp-web-server/


For MySQL you need to uncomment the...\

extension=php_mysql.dll

some guides also say to un-comment

;extension=php_mysqli.dll
;extension=php_mbstring.dll
__________________
Def1:Started:UT 7.1 x64 -- Current :UT 7.3 x64| Gigabyte GM-G31 mATX | Intel Q8200 | 8G DDR2 800 | 80G WD | 4x Intel Pro 1000 GT NIC's | Corsair 550W PSU | Norco RPC-250 2U Case | 10mb/10mb | 9 users

Def2:Started: UT 7.3 x64 -- Current:UT 7.3 x64 | Intel DG31PR | Intel e7500 | 2G DDR2 800 | 80G Seagate | 2x Intel Pro 1000 GT NIC's | Corsair 450W PSU | Norco RPC-250 2U Case | 10mb/10mb |

Last edited by Mathiau; 03-23-2010 at 07:40 AM..
Mathiau is offline  
Old 03-23-2010, 10:51 AM   #8 (permalink)
Untangle Ninja
 
sky-knight's Avatar
 
Join Date: Apr 2008
Location: Phoenix, AZ
URLs submitted: 7
Posts: 9,951
sky-knight is on a distinguished road
Default

FastCGI is an entire can of worms in and of itself. I've had it working on a few IIS7 implementations and seen the thing break with random security patches.

The problem is, no matter how you want to slice it. PHP was designed to work within the linux realm of thinking. Windows is very different, and operating it there always requires a certain amount of translation. That translation process is rife with security issues, and performance issues.

If you want to run PHP on a windows server, just get the windows version of Apache 2 and build from there. At least then you aren't dealing with IIS's CGI deficiencies. Finally, virtual hosting with Apache 2 is trivial. I have a .conf file for each domain I host, and each one is identical. I wrote it once... all I do now is copy and paste the thing and change the domains out. One day I'll get unlazy and write a script that creates the conf file for me.

P.S. I need to clarify here... I'm not knocking IIS7, it's a wonderful web service and the only portion of server 2008 I really do like. I just believe in using things for what they are designed for. IIS is for .NET, Apache is for PHP.
__________________
Intouch Technology
Rob Sandling, BS:SWE, MCP
Office: 480-272-9889
rob@intouchtechllc.com

Last edited by sky-knight; 03-23-2010 at 11:03 AM..
sky-knight is online now  
Old 03-23-2010, 12:31 PM   #9 (permalink)
Master Untangler
 
Mathiau's Avatar
 
Join Date: Feb 2008
Location: Costa Frickn' Rica
Posts: 824
Mathiau is on a distinguished road
Send a message via AIM to Mathiau Send a message via MSN to Mathiau Send a message via Yahoo to Mathiau
Default

i cant disagree with you there, i am glad i haven't hit any of the issues with security patches, could be we just don't use enough of PHP's abilities to run into any major issues.

The last time i had tried to do virtual directories with Apache was about 2 years ago and i just gave up as i could not get it to work, nor could my work m8 (sure it was our error), went to IIS, add Virtual site, done, include headers, done.

I will say getting php+mysql to work with Apache is a HECK of a lot easier then any IIS install i have had to do!
__________________
Def1:Started:UT 7.1 x64 -- Current :UT 7.3 x64| Gigabyte GM-G31 mATX | Intel Q8200 | 8G DDR2 800 | 80G WD | 4x Intel Pro 1000 GT NIC's | Corsair 550W PSU | Norco RPC-250 2U Case | 10mb/10mb | 9 users

Def2:Started: UT 7.3 x64 -- Current:UT 7.3 x64 | Intel DG31PR | Intel e7500 | 2G DDR2 800 | 80G Seagate | 2x Intel Pro 1000 GT NIC's | Corsair 450W PSU | Norco RPC-250 2U Case | 10mb/10mb |
Mathiau is offline  
Old 03-23-2010, 12:45 PM   #10 (permalink)
Untangle Ninja
 
sky-knight's Avatar
 
Join Date: Apr 2008
Location: Phoenix, AZ
URLs submitted: 7
Posts: 9,951
sky-knight is on a distinguished road
Default

You should give a base Debian installation a try. They've separated the Apache configuration up into a directory format that is very intuitive. They provide templates for a generic port 80 virtual host, you can modify that to suit your needs and copy it as many times as you want for new virtual hosts.

No it isn't as brainless as IIS thanks to Microsoft's very well done GUI. But once you get used to it you'll find yourself disliking IIS because it takes too long to drill down to the setting you want.

And, while you're at it you'll be getting better at the same base OS Untangle operates on, improving your ability to support and maintain Untangle servers.
__________________
Intouch Technology
Rob Sandling, BS:SWE, MCP
Office: 480-272-9889
rob@intouchtechllc.com
sky-knight is online now  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 02:44 PM.


© 2010 Untangle, Inc. All Rights Reserved.   SEO by vBSEO 3.3.2