Develop a website using PHP on Linux

Source: Internet
Author: User
Tags windows remote desktop
I am a php programmer who has nearly one year of work experience. Now I have the idea of Job hopping, after reading the requirements of many large and medium-sized companies for php programmers, I will refer to "using PHP to develop websites on Linux platforms ". I am not particularly familiar with this sentence. How can I use PHP on Linux... I am a php programmer who has nearly one year of work experience. Now I have the idea of Job hopping, after reading the requirements of many large and medium-sized companies for php programmers, I will refer to "using PHP to develop websites on Linux platforms ".
I am not particularly familiar with this sentence. How can I develop a website using PHP on the Linux platform?
Is it developed under win and then run in linux?
Developed in linux and then run in linux?
How to develop it in linux? I only know some simple commands for linux.
I hope you can have great gods, experienced people, and Daniel to answer your questions.
Thanks for your effort ------ a try of phper!

Reply content:

I am a php programmer who has nearly one year of work experience. Now I have the idea of Job hopping, after reading the requirements of many large and medium-sized companies for php programmers, I will refer to "using PHP to develop websites on Linux platforms ".
I am not particularly familiar with this sentence. How can I develop a website using PHP on the Linux platform?
Is it developed under win and then run in linux?
Developed in linux and then run in linux?
How to develop it in linux? I only know some simple commands for linux.
I hope you can have great gods, experienced people, and Daniel to answer your questions.
Thanks for your effort ------ a try of phper!

The specific meaning of this sentence is indeed difficult to understand. The requirements for these positions are copied from each other. Many HR personnel are knowledgeable about the technology, so they can write their job requirements.
In any case, as long as you are familiar with Linux, what are your fears?

In addition:About Linux, I think developers are not O & M and focus on development. Therefore, before becoming a bull, it is not necessary for Linux to be more awesome, because more PHPer writes business, not kernel. Of course, this is not an excuse for not using Linux. Basic Linux knowledge and Common commands are required. We recommend that you stick to the Linux desktop for one year (you can considerUbuntuOrFedoraThese two releases) use Shell to handle problems (I used to do that .), Linux will naturally become familiar. I have seen many people say that there is no good php ide in Linux, and I am depressed. Are they not using it?PHPStorm?

Development is one thing. Deployment is another. Deploying the code developed on windows to a linux environment may not be able to run normally, especially concerning file permissions. Therefore, php development generally requires knowledge about linux, because most php will be deployed on linxu server.

Well, it seems that there is no php IDE in linux... There is also how linux development websites are inconvenient, in addition to compatibility with debugging IE

Do you really develop and deploy projects in linux? Do you really understand the real needs of "development in Linux?

Example: How to efficiently traverse folders in PHP
Http://www.oschina.net/question/260395_162648

Development on Linux requires you to understand the most common file operations, network operations, exception handling, shell, tasks, timing, and permissions in Linux.
Whether you are developing on Windows or Linux, as long as the project can run on Linux, I think it can be called the development on the chivalrous Linux. However, if you don't even use the most important features of Linux (such as awk, sed, shell, lvs, Hdfs, scheduled tasks, and multi-process), even if it is developed and deployed on Linux, I still use lengthy and inefficient code from Windows, so I don't think it is "development on Linux ".

I think "development on Linux" can be understood as a way to master common issues and solutions for development on Linux, performance optimization methods, cluster building methods, and files (Protocols) under Linux) operations, network (Protocol) operations, and cluster building methods can be used with Linux commands and extensions to stably and quickly solve project businesses, you can use Linux to achieve cost-effective development at a lower cost.

Master, good at using tools, and Linux is the ultimate weapon. Have you used it? Will it be used?

This sentence is translated as follows:
"Skilled in using the Linux operating system to complete php development tasks"

Development and operation are inseparable. My personal habit is to change one point. Open the web page and test it. Therefore, my personal understanding of this issue is to configure the entire development and running environment in Linux. You can directly write php code in Linux and access localhost to test the website.

It is impossible for you to deploy and run it on the server after each writing. Php can be written by opening a text editor, and apache and mysql are also available under linux. Where can I develop them? The l in lamp is linux.

Or can it be understood as vim. Are you familiar with it?

I once had such a question, but the linux development website will be very inconvenient, unless it is a mac computer.
Can a hand-written code be better than an IDE?

Using IDE To develop PHP websites in widows and running it in linux has always been like this.

If the requirement is higher, this sentence can be understood as: Build lamp/lnmp in linux, use common commands skillfully, check error logs, and find a solution for some errors, proficient in vim.

I personally think that we should first be familiar with the configuration of the php environment in Linux, the use of php development tools and test tools.

Then, you are familiar with nginx configuration and how to run php In nginx. Comparison with apache (apache runs in php_module mode and nginx runs in fastcgi mode ).

In addition, understanding some O & M knowledge is beneficial to development, just as O & M personnel need to understand development.

Familiar with php performance monitoring and stress testing in linux. Monitor CPU usage, analyze php-fpm output logs, and track processes. These can be done using linux commands.

Personal opinions, hope to help you.

In fact, as long as the server environment is linux, development does not matter in windows. For example, I just installed ubuntu in vbox to configure the LNMP environment for development in windows. But if you want to learn linux well, you 'd better install it on your own desktop. We recommend ubuntu and cent.

What's the big difference ...... The configuration file is basically the same ......
There is no big difference between desktop release Development and windows. IDE is cross-platform ......
During deployment, you can only connect to the terminal via SSH instead of windows Remote Desktop.
Good habits.

linuxThere are not many development advantages, such as avoidingFile Name case,Path backslash,Read and Write PermissionsAnd other issues, inwindowsDevelopers can only be found after deployment!

Simply put, install a virtual machine for your windows system, centos or wubantu in the virtual machine, install php and mysql in the virtual machine, deploy and test the program, and try more.

You can searchLAMP...

I feel that it is enough to let you know about lnmp configuration and some linux web O & M knowledge. Of course, I also like linux development. I personally think Windows and linux have their own interests. benefits

Never develop PHP under Win ~ The PHP code written under win is difficult to debug in linux due to various exceptions,
Virtual machines are also not used, and there is still a retreat in my mind when I use a Virtual Machine (it should be a good time to break up)
I used ubuntu for half a year and got started with centOS. I tried archlinux within two years, and mac was used for my laptop. php developed on mac was 99% compatible in linux.

I don't just want to tell the candidates that they want to build LAMP or LNMP on their own. What's the difference? The Centos configuration is super simple. I don't have sublime text when writing PHP in Linux. Filezilla is used for uploading, like Linux, this is not a problem.

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.