What are the advantages of PHP development in Linux compared to Windows?

Source: Internet
Author: User
In Linux, how does one develop PHP? What are the benefits? In Linux, what kind of development capabilities need to be enhanced? In Linux, how does one develop PHP? What are the benefits? In Linux, what kind of development capabilities need to be enhanced? Reply content: here only benefits

  • Make sure that the development environment is consistent with the online environment. For example, some developers may mistakenly write the file case by mistake, and the local win debugging tool is OK. After the file is uploaded, an error is reported. For another example, if you do not want to use the built-in GD library instead of ImageMagick, you do not need to modify the code after it is pushed online.
  • Installing software and expansion is really convenient. Both fedora and ubuntu have abundant resources. Installing php and mysql is just a few commands. What xampp and wamp do you need, after installation, you want to add an extension or something...
  • A lot of software is installed only in Linux or win, and you just want to hit the wall, such as Memcache, such as nginx in the past.
  • Git was born for linux and is more robust and stable, but the gui version is ..... Omitted part...
  • Php compilation and php extension compilation, win compilation... Can you choose not to install a monster like VC...
  • Some scripts for php deployment and O & M can be directly debugged and used online.
I have been using PHP for four years. I started to use Linux, and later I used Windows. Now I am using Mac. I think I can give a brief look at the problem of the subject.


  • In Linux, how does one develop PHP?
Editor:For Linux, I started to use Ubuntu as the release version. Later I was CentOS, but I never used VIM or Emacs. I started to use Eclipse, and later I used Sublime Text. Most of the commonly used editors have corresponding versions in Linux, which is hardly mentioned.

Environment:Build LAMP/LNMP locally.


  • What are the benefits?
Currently, almost all common PHP Web servers are Linux.
In Linux development, the first thing we can ensure is the code compatibility, so there will be no problems such as upper case or lower case.
Second, most Linux package management mechanisms are very friendly for PHP developers. You only need to enter a few simple commands, by modifying a few configuration files, you can build a Web server with excellent performance. However, in Windows, it is simply a pain point.
Third, you can learn a lot of basic Linux knowledge while using Linux. This is also necessary for PHP development.

  • In Linux, what kind of development capabilities need to be enhanced?
After thinking about it, there seems to be no special requirements for development in Linux, as long as some basic commands are used.

My development method has been to write code locally while sublime text configures sftp plug-in http://blog.wpjam.com/m/sublime-text-2-sftp/ Upload the code to the test server (Linux) when saving it. The code runs on the test server, which is very convenient and similar to local writing. Because Sublime supports Linux, Windows, and Mac platforms, this method can be easily migrated at any time.

Next, let's talk about Linux. I really can't stand the Linux graphical interface, desktop one-stop, running a worm. For Mac and Windows, the graphic interface can be replaced by Linux in seconds. I don't know what's going on. I can always crash the graphic interface in Linux. Isn't my sitting posture correct? There are also disgusting Chinese Input Methods, No matter how configured, even the Chinese Input of Mac is not comparable, can compare with Windows?

Summary:
Linux can be used as a server. If you really want to write code, we recommend that you do not use Linux as the desktop, however, we recommend that you run the code you are debugging in a Linux environment. In many ways, it is certainly easier to WIN...
1. The recruitment cost problem is not that everyone is very skilled in the LINUX environment. How much do you have to pay for recruiting such a person.
2. Human training: Okay. You said you would not hire anyone to train them for development in LINUX. Someone will teach you how to bring it with you? In addition, what should I do if someone else is not used to it?
3. in addition to the cold library, there are basically Windows versions for various extension problems .. even if there is no WIN version. can be deployed to the test environment .. can I connect the development environment to the test environment? (This is what we do in REDIS and SPHINX ).
4. in the answer to the online deployment question, it is nonsense to say that the environment is consistent... no one in the world can ensure that the two environments are the same... there are many solutions to similar environment problems... for example, the test environment is in linux .. simulate the online environment... or deploy a prerelease environment for online machines .. before going online, pass the test and go to the prerelease .. smoke test .. re-deployment can save a lot of trouble.

Or did Deng say that no matter whether the black cat or the white cat catches the mouse, it's a good cat...
Of course, everything cannot be absolute. Enhancing your development capabilities in linux is indeed helpful to you... self-resolution.
Installing software and expansion is really convenient. Both fedora and ubuntu have abundant resources. Installing php and mysql is just a few commands. What xampp and wamp do you need, after installation, you want to add an extension or something...
Have you used the integration environment in win ??? How easy is adding an extension under win ??? Laxatives,
Netbeans is generally used.
1. perfectly simulate the production environment.
2. It is very convenient to install various packages. Many unique software is only available in linux. Can you make and use windows if you want to make it?
3. force yourself to understand the linux system, various commands, and various environments during development, and expand your knowledge.

If you want to work, consider using Unix-like systems!
Do you want to entertain? Sorry, this is not a Unix-like specialty. You have to have a headache if you install QQ.
The rest is the same as that of @ Bruce and @ feixue Lian Tian. Linux version management is more convenient... for example, git
Some php frameworks prefer the command line method... for example, yii
Linux operations will be prepared for later architects... for example, with a technical team later, mainly for server development...
Linux is more focused on technology .. for example, QQ is hard to use... no QVOD .... the advantage is that it does not write the code and feels it is hard to strike a dota closer to the production environment, so it can avoid some minor problems. For example, I have encountered a project that uses spl_autoload to automatically load class files. In PHP, class names are not case sensitive and Windows file names are not case sensitive, so everything goes from normal. In the production environment, the file is case sensitive, so the require file fails.
In addition, PHP projects are not necessarily purely PHP projects. It is also common to rely on the backend compiled separately. In Linux, it is easier and more rigorous to develop a simulator like Cygwin. In theory, it has nothing to do with the development platform, but using linux development will make it easier for you to go further and use windows for development. Don't force yourself to use linux.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.