PHP on Windows: Apache or IIS7? - php

Here's the thing:
Due to a new project, I have to learn PHP from scratch. I'm now in windows and I DON'T want to change quickly, so, don't tell me to change.
I need to setup a DreamWeaverCS4/PHP5 develop environment, and, I don't have a clue whether to use Apache or IIS7.
I just need some advice relating to it.
Remarks:
I really don't care about performance(yet), neither portability, and so on. I just need to set it up quickly and easily.
Thanks in advance
UPDATE: I'm Using Windows 7 7600 x64

Setting up PHP on IIS is pretty simple. Here is what you need now...
http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-7/

Apache is the best as it's native for the PHP while IIS is foreign. You'll always get help for Apache+PHP here on SO and hardly for PHP+IIS.

I haven't used WAMP yet but I've never had a problem using XAMPP and it's a pretty easy install to get a complete php environment using apache. I wouldn't recommend going the IIS route, its possible but... not worth the effort.

Go and Download WAMP5 Server it is the best and easiest solution for u. By the way it is Apache.

I recommend Apache+PHP, which brings you mod rewrites, .htaccess and other important features that IIS does not support.

Apache-PHP is the better choice...

Related

Debian 8 multiple PHP are these safe methods?

At work i want to upgrade our system to PHP7. It is currently at PHP5.6.
We have a different folder structure, as we have all our code in the /home/user directory.
I am not a server guy, i only code. But i know some linux basics.
I came across phpbrew. Is it safe for me to use? as we have a different folder structure then most have.
I dont want to mess up my development server, so it is important for me that i can switch back to 5.6. The server is running debian 8 and we use apache2.
I also came across this article:
https://lornajane.net/posts/2016/php-7-0-and-5-6-on-ubuntu
Is this a safe way to do what i want?
Any other suggestions are also welcome!
Thanks in advance!
The process described in that link looks plausible. Possibly other online resources might confirm it. Why not make a quick VM and try it out?
Is your current dev server a VM? You could clone it, then make the changes and run both in parallel. If not, you could shut it down briefly, image it, and then use the image to build a VM or another physical box.
That way you've got any custom server setup copied across reliably with minimal effort, and you can test PHP7 along with that stuff, with no risk to the current environment. That would be my advice.

Can we keep python & php both with same apache server?

I am familiar with PHP-MYSQL on Apache Server, Now i want to Try PYTHON with Apache & Mysql. My Machine is Already Installed With Apache-PHP-MYSQL. So i want to know is it possible to configure Python on the same server. Please let me know some links for documentation on this.
You probably want mod_wsgi, which will allow you to run Python code (built against WSGI) from httpd.
Absolutely possible, as a matter of fact have you heard of PiP? I have even called Python without PiP and echo out lines in an HTML table before. Works like a charm.
Of course you can, it should be just about another module to insert into apache.
You can use the old CGI way (http://www.modpython.org/), but nowadays we have a fast WSGI, as mentioned in post above.
I recommend you to check http://docs.python.org/howto/webservers.html, I think it covers all information you will need.

Choice of a local WAMP server - possibility to add php extensions

I'm looking for a WAMP distribution for running in my lan (on localhost)
Now
I'm using usbwebserver, i like it for its simplicity. But this simplicity became a bottleneck when i wanted to add extensions to php. It was (in most cases) not possible.
Future
I looking for a WAMP-server which is pretty easy to configure but has the abbility to add extra extensions to the php module of WAMP.
Anyone any suggestions? or experience with this subject?
In my experience, the best WAMP-server is wampserver. Easy to set up, easy to use and just plain awesome.

Which is the simplest way to install PHP

I am very new to php.... please tell me the most easiest way to install it and run a sample app, some tutorials which do that....
I read something on internet but most of the time, all the tutorials were not ok... so i decided to ask here to find someone's else opinion...
Thanks
If you're on Windows, you can use WampServer which is pretty straightforward (just click next 3 times and you have Apache+mySql+PHP. For you development box of course (not for production).
In windows I would use WAMP or XAMP, in OSX I would use either the Native php installs or MAMP if you want to make it easy to configure.. On linux you should compile it from source.
Edit: As samuel says, only use these on Development machines, you should always compile your own versions for a production box!
You could use the MS Web Platform Installer.
I use AppServ it sets up Apache/PHP/MySQL and phpMyAdmin in about 5 clicks!

What do I need to run PHP applications on IIS?

Having been a PHP developer on LAMP servers for quite a while, is there anything that I will need to take into consideration while preparing an application for IIS on windows.
Make sure you get the FastCGI extension for IIS 6.0 or IIS 7.0. It is the single most important thing you can have when running PHP under IIS. Also this article should get you setup:
http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/
Everything beyond this is simple, MySQL and what not.
We just rolled out PHP 5.2.6 + FastCGI on our shared hosting platform without any problems. As long as you follow the steps outlined in the article Nick linked to then you should be just fine.
My only additional piece of advice would be to forget about using the fcgiconfig.js script to modify the fcgiext.ini file, it's more of a hindrance than a help. Just edit it by hand, you also learn more about how it works.
If you're installing PHP onto IIS 7 then this link should be worth a read though:
Using FastCGI to Host PHP Applications on IIS 7
#pix0r
That actually annoyed the hell out of me too and nothing came close to Apache mod_rewrite. Because they all have this overly complex XML structure. So I actually took the time and wrote my own rewriter for IIS 6.0 and IIS 7.0. Non-.NET applications only works in IIS 7.0.
http://www.managedfusion.com/products/url-rewriter/
http://www.codeplex.com/urlrewriter
One of the major sticking points I've had with IIS is the lack of Apache's mod_rewrite. There are other work-arounds and work-alikes depending on what you're doing, but just keep in mind that you'll need to change things up a bit to work with IIS if you're using mod rewrite extensively.
Since you're moving from LAMP (a somewhat cool acronym) to WIMP (a less cool one), you may need to mentally affirm yourself. Otherwise, I've had very little trouble with PHP on Windows.
ISAPI rewrite (http://www.isapirewrite.com/) is $99 and has worked very well for me for URL rewriting.
Why not go with Apache on Windows?
If your using iis 7 keep an eye on this project, http://phpmanager.codeplex.com/.

Categories