Programmer-Talk about the differences, feelings, and inner thoughts of developing PHP under Win and Linux. Reviews

Source: Internet
Author: User
Tags apache php ftp client drupal
I have always been under win to write PHP code, but many times to see the recruitment information to recruit PHP programmers are talking about being able to develop PHP in Linux, and then I myself have to go to Linux (CentOS) to develop PHP. Say a profound experience, feel, I hope you can evaluate it.

1) Linux Installation and development environment is not easy to win under the direct use of integrated development package installation is very convenient AMPP environment all have. It is also convenient to open the extension directly and conveniently. Under Linux must be manually compiled, install Apr apr-util pcre apache php libxml2 mysql ... and the installation of PHP, but also to configure PHP.ini my.cnf httpd.conf, and modified after it will not take effect, very strange phenomenon. PHP.ini in/etc/php.ini, but there is another one in/usr/local/php5/lib/php.ini, and I open the Apache virtual directory vhosts, if you put the directory/home/username/ There is no access under WWW, but it can be accessed under/var/www/.

Then I installed Drupal, and found that again zlib extension, I went to recompile PHP. PHP-5.5.13 in the Ext directory has zlib folder, compile time--with-zlib, can not be installed up. And I found that I have all the PHP files including directories have been deleted, restart httpd, incredibly still can open phpinfo.php, very strange. MySQL configuration is not good configuration, I win7 under the Wamp, directly modify the My.ini can be moved to any directory, but in Linux there are also a lot of permissions. Anyway, it is really troublesome to configure the lamp environment under Linux, and the quickest one is to have a morning, because compiling and installing php,make test There are nearly 10,000 items, make install and very long. Coupled with the configuration MySQL, Apache (open vhosts) will not necessarily be able to succeed, permissions issues, directory allocation problems.

2) for the worry of developing PHP in win I will always be wondering if I should go to Linux to develop PHP, the main factors are: first I have one or two times to interview PHP programmers, but see the other programmer is the development of PHP under Linux, and the second is PHP 5.6. x version, they no longer release the following version of Win, the third is that I recently looked at Symfony, but found that they are composer installed, and the official website of the prompt operation is done under Linux. So my mind is not after PHP can not be developed under win, is not a foreign PHP programmers are in the development of PHP under Linux.

3 in Linux under the shortcomings of the development of the site , the problem I have carefully thought about some of the problems, now this time, the site is very attention to the beautiful UI experience, do a site if only PHP programmer is really impossible to complete, and art designers must cooperate with the completion. If you develop PHP Web site under Linux, then the artist often pass the picture material come over, then how to get? Art is responsible for the design, now the domestic company to do the website art transfer things pictures are through the QQ, very convenient, fast. If you go to Linux under development, how will it be delivered? First from the VM Win7 QQ receive and then upload themselves from the WIN7 FTP client to the Linux Web site directory, and then switch to Linux to use the image resources?

4) Speaking of the end, I think the PHP and other software programs Java C + + nature of the difference I have been PHP for many years, always feel that PHP is always the other software program language, such as Java C + + interference. It is arbitrary that PHP should be the same as C + + Java, but I always a sense of their essential differences, C + + Java seems to be very collaborative, and the art of the participation of less or perhaps no lack of art designers involved, because the software aspect of the interface has no requirements, The requirements are run and business logic. But to do the site, most of the content, CMS enough to meet, and then static generation, the procedural requirements are secondary, the art of participation is very much, so that, simply can not be like C + + Java Those languages independent development, Must be more artistic very strong co-ordination (because most companies do not understand HTML CSS JS). And do the site PHP programmer, in fact, you still need to use PS, DW transduction these software, and these software Linux is not supported at all. So I have been very obsessed with this problem, on the one hand, the actual need for PHP is not like the C + + Java Those programs have what kind of team, most companies are only one PHP programmer. On the other hand, many places also said that PHP must be developed under Linux, but I myself actually several times to Linux under the development of PHP feel really troublesome, inconvenient, inflexible.

Write these hope to get everyone's comments, views, opinions.

2015-8-12 Supplement:

Back to this question again, in fact, now more inclined to use *nix under development, rather than win under the development.

This issue has been closed due to:

Reply content:

I have always been under win to write PHP code, but many times to see the recruitment information to recruit PHP programmers are talking about being able to develop PHP in Linux, and then I myself have to go to Linux (CentOS) to develop PHP. Say a profound experience, feel, I hope you can evaluate it.

1) Linux Installation and development environment is not easy to win under the direct use of integrated development package installation is very convenient AMPP environment all have. It is also convenient to open the extension directly and conveniently. Under Linux must be manually compiled, install Apr apr-util pcre apache php libxml2 mysql ... and the installation of PHP, but also to configure PHP.ini my.cnf httpd.conf, and modified after it will not take effect, very strange phenomenon. PHP.ini in/etc/php.ini, but there is another one in/usr/local/php5/lib/php.ini, and I open the Apache virtual directory vhosts, if you put the directory/home/username/ There is no access under WWW, but it can be accessed under/var/www/.

Then I installed Drupal, and found that again zlib extension, I went to recompile PHP. PHP-5.5.13 in the Ext directory has zlib folder, compile time--with-zlib, can not be installed up. And I found that I have all the PHP files including directories have been deleted, restart httpd, incredibly still can open phpinfo.php, very strange. MySQL configuration is not good configuration, I win7 under the Wamp, directly modify the My.ini can be moved to any directory, but in Linux there are also a lot of permissions. Anyway, it is really troublesome to configure the lamp environment under Linux, and the quickest one is to have a morning, because compiling and installing php,make test There are nearly 10,000 items, make install and very long. Coupled with the configuration MySQL, Apache (open vhosts) will not necessarily be able to succeed, permissions issues, directory allocation problems.

2) for the worry of developing PHP in win I will always be wondering if I should go to Linux to develop PHP, the main factors are: first I have one or two times to interview PHP programmers, but see the other programmer is the development of PHP under Linux, and the second is PHP 5.6. x version, they no longer release the following version of Win, the third is that I recently looked at Symfony, but found that they are composer installed, and the official website of the prompt operation is done under Linux. So my mind is not after PHP can not be developed under win, is not a foreign PHP programmers are in the development of PHP under Linux.

3 in Linux under the shortcomings of the development of the site , the problem I have carefully thought about some of the problems, now this time, the site is very attention to the beautiful UI experience, do a site if only PHP programmer is really impossible to complete, and art designers must cooperate with the completion. If you develop PHP Web site under Linux, then the artist often pass the picture material come over, then how to get? Art is responsible for the design, now the domestic company to do the website art transfer things pictures are through the QQ, very convenient, fast. If you go to Linux under development, how will it be delivered? First from the VM Win7 QQ receive and then upload themselves from the WIN7 FTP client to the Linux Web site directory, and then switch to Linux to use the image resources?

4) Speaking of the end, I think the PHP and other software programs Java C + + nature of the difference I have been PHP for many years, always feel that PHP is always the other software program language, such as Java C + + interference. It is arbitrary that PHP should be the same as C + + Java, but I always a sense of their essential differences, C + + Java seems to be very collaborative, and the art of the participation of less or perhaps no lack of art designers involved, because the software aspect of the interface has no requirements, The requirements are run and business logic. But to do the site, most of the content, CMS enough to meet, and then static generation, the procedural requirements are secondary, the art of participation is very much, so that, simply can not be like C + + Java Those languages independent development, Must be more artistic very strong co-ordination (because most companies do not understand HTML CSS JS). And do the site PHP programmer, in fact, you still need to use PS, DW transduction these software, and these software Linux is not supported at all. So I have been very obsessed with this problem, on the one hand, the actual need for PHP is not like the C + + Java Those programs have what kind of team, most companies are only one PHP programmer. On the other hand, many places also said that PHP must be developed under Linux, but I myself actually several times to Linux under the development of PHP feel really troublesome, inconvenient, inflexible.

Write these hope to get everyone's comments, views, opinions.

2015-8-12 Supplement:

Back to this question again, in fact, now more inclined to use *nix under development, rather than win under the development.

The first step is to distinguish between "operating system for development" and "operating system for development environment". The former is the operating system that you use when you run the IDE, editor, check Mail, and team communication, and the latter is the operating system that runs the code in your development process, my view is that the latter must not be windows, and the former is arbitrary. Both can be the same Linux, either a Windows or Mac, another Linux virtual machine inside, or two physical machines are OK, abandon the use of Windows as a development environment is very right, but this does not mean that you have to use the Linux desktop.

In addition to the compilation of the Spit slot, if you develop a system for PHP version, module is not particularly critical, almost all distributions have compiled PHP binary package. Of course, learn to compile their own better, so-called "Linux Basic Skills" is nothing more than file/text operations and source code compilation/installation of two chunks. Compared to Microsoft's that set of things, Linux may you start to install the first machine to half a day, but skilled after 100 machines will be as long as half a day. Windows you may take an hour to get started, but it is not possible to install 100 machines a week, but also to pay Microsoft 100 licenses, hehe

My development environment!
1. There is no QQ that will allow me to concentrate for a longer time every day.
2. Linux operation will understand more than win has never been concerned about the original rational things
3. Work area shortcut key free switch to use a great increase in efficiency.
4. More free appearance development.
........

Keng:
It can be used in conjunction with the UI designer, but in order to better track tasks you can use Teambition or tower images directly.
Linux IE Web compatibility test, this is a pit, the company provided me with a test machine, you can also use virtual machine.
Really need QQ only web QQ simple exchange a bit.

Slowly get used to, really get used to the high efficiency, write thousands of lines of code without difficulty.

    • 1) There is a kind of thing called XAMPP. There is another thing called lamp one-click installation package ... I think you may need this, and I really do not feel that in Linux under the environment has you said the trouble (of course, than win under the suite of trouble is true, after all, is the package ah Hello! )
    • 2) This article has several questions:

      • Not that it doesn't support windows, it says Windows XP is not supported. Specifically, please search by yourself.
      • Give two links your words will be dead: win under how to install composer and the official win installation tutorial. In addition composer is the most critical problem is not the system problems but the network problem good!!!!
    • 3) If necessary, the developer communicates via email I think it's a basic accomplishment.
    • 4) Two options:

      1. Go out and turn left for GIMP.
      2. Go out and turn right for Mac

In summary, you can develop PHP under Linux is of course a bright spot, proving that you have a certain ability to operate Linux. But you're developing under Windows and nobody's going to say anything about you, and I haven't seen a job that says "5 years of experience with PHP development in Linux".

Cough, look upstairs all say much, I come a lite version of.
1. Linux also has the famous LNMP one-click Environment (lnmp.org)
2. The tools you say are also available in Windows version
3. Linux has artifact GIMP
4. Large company PHP no matter the front end

This is similar to the learning curve of Vim, Linux is highly efficient, although not necessarily convenient (only in a few cases), when the landlord encountered a line due to the operating system caused by the bug is so hard to find that it is definitely worth

In fact, I think the enterprise write requirements under the development of Linux, and does not necessarily require you to work under Linux, but can have a Linux server layout and troubleshooting capabilities.

If you want to be a qualified PHP programmer, you must be familiar with lanmp| Lnmp

lamp| PHP Development under LNMP is the beginning of your introductory PHP

First, in Windows | | Linux | | Under the development of MAC can, as long as you are handy, with your team to communicate conveniently.

Second, in most cases your PHP program will run in a Linux environment, so if you are not developing under Linux, you will have a Linux environment for pre-launch testing.

Thirdly, if PHP programmers always have to deal with the art, the development mode, collaboration mode is to be improved, at least M and V is not separate.

Finally, feel that your understanding of the use of Linux is still in the introductory stage, familiar with the future without you say so much trouble.

You can only say you used an axe to use a chainsaw. In this case, the chainsaw is less efficient than an axe. To be able to experience the efficiency of the chainsaw, you have to follow the use of electric saws.

Programming, especially open source, Linux has an absolute advantage.
You can use VirtualBox virtual machine to run Linux, you can use two together?

I say humorous, I started using Ubuntu about 4 years ago and started using the Mac 2 years ago,
It's very important to be attentive .

  • Related Article

    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.