Results 1 to 7 of 7

Thread: PHP Windows or Linux

  1. #1
    Join Date
    Jul 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP Windows or Linux

    Which one do you guys prefer to run PHP under? Windows server or Linux Server. Which one and why?

  2. #2
    Join Date
    Jul 2006
    Posts
    497
    Thanks
    8
    Thanked 70 Times in 70 Posts

    Default

    I used WampServer on Windows until I switched operating systems; I now use XAMPP on Linux. Although I never benchmarked PHP in either environment, I have no preference regarding which OS to run PHP on. I've read that Linux is the most popular, but I don't think that's because of anything relating to PHP in particular. (Plus this is just a development server on my PC, but my deployment server also happens to run Linux.)

  3. #3
    Join Date
    Jul 2008
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Whell if you are just talking about development environments, then mamp, or xamp are fine. But when you are actualy running in production mode and your site is fully running. I would suggest linux.

    At work i have both linux, and Microsoft server 2003 servers. And we never use php on windows servers, why go through the extra costs. and you can compile apache to naturally run with php and mysql on it. You will go through alot more problems if you try to get iis to work with php and mysql.

    Let me know if any questions.

    Hope that helps.

  4. #4
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    In my opinion, this depends on what your doing. When I am devoping a new site, I use wampserver (on windows, obviously) to test it. Once it is ready to go live, I debug it with xampp server on linux. Really, most live webhosts will use Linux or Unix. I hear that they don't get as bogged down over time as a windows server. Never used one, though, so I don't know.

    Linux is also more strict. File paths, for example, are case sensitive on a linux machine but not on a windows machine. This is one reason I debug in linux. On the other hand, there are more editing programs available to windows, which is why I develope with windows vista.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  5. #5
    Join Date
    Jul 2008
    Location
    Johannesburg, South Africa
    Posts
    31
    Thanks
    1
    Thanked 10 Times in 10 Posts

    Default

    Well editing programs on Linux are by far in greater number. Also, if you are going to use Linux as production avoid Windows then as it won't matter for your dev environment.

    Also bear in mind, PHP was originally built with Linux in mind and only later was "ported" for use on Windows. There are many functions in Linux which only really work easily and effectively on Linux and work on Windows only after numerous hacks and work arounds.

    Linux also makes installing Apache (normally already installed by default on most distros), PHP and MySQL a case of a few command line arguments and its all ready to run. Windows's installation process is a lot more complex..

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Linux also makes installing Apache (normally already installed by default on most distros), PHP and MySQL a case of a few command line arguments and its all ready to run.
    Er, commands, generally.

    On Windows, PHP and Apache take a lot of tweaking and configuring in order to get them to work. On my (Gentoo) box, the command looks something like this:
    Code:
    USE=php emerge apache
    or, to enable PHP on every future installation of Apache (e.g. updates):
    Code:
    euse -E php
    emerge apache
    I don't see the point of using XAMPP on Linux unless you are using a legacy or inadequate distribution. You will not receive updates, compatibility checking, and other benefits from your package manager if you use XAMPP.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Jul 2008
    Location
    Johannesburg, South Africa
    Posts
    31
    Thanks
    1
    Thanked 10 Times in 10 Posts

    Default

    Quote Originally Posted by Twey View Post
    Er, commands, generally.
    Forgive me .. 3 hours of sleep last night trying to meet a deadline for today does not make for a sharp bunny -_-

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •