ComputersSoftware

Installing Apache on Ubuntu and Windows

First you need to understand what Apache is. It's very simple, it's a free web server, which is cross-platform software. It runs under OSes such as iOS, Windows, BSD, Linux. The main advantages of this tool are flexibility, greater productivity and reliability. It also has a large number of different extensions that are designed to perform many additional useful functions. Installing Apache is needed very much, because such a tool also provides the ability to maintain a significant number of websites under the same IP address.

For the work of the resource, a web server is required, which takes on the function of displaying its pages. All users know that before the name of a specific URL must necessarily be a prefix "http: //". This is the designation of the protocol by which the user's browser and server are coordinated. The latter supports work with many programming languages: PHP, Python, Ruby and others. Also, with the help of additional tools, you can run programs written in C ++, Java and many others.

Many webmasters need to install Apache. Windows allows you to do this. The connection with the PHP programming language is considered. To start, you need to download the installer and the correct version of PHP to work with the desired server. Then the installation of Apache follows. You need to click the "Next" button as long as possible. After that, the "Server Information" item is filled in, where the word "localhost" is written in the first two fields, and in the third - any invented Email. Then you select the type of installation (you can click "Typical") and specify its path. The final step is the installation process and the appearance in the system tray icon with a red pen. To check the operation, type the word localhost in the address bar of the browser and watch the welcome message.

Now the installation of Apache is finished, it remains to create an interaction with PHP. Previously downloaded archive is unpacked. Renames the file found in it with php.ini-dist on php.ini. Then some changes are made to the configuration document of the installed server, which is then restarted. A .php format file is created, where it is written . It needs to be placed in the htdocs folder. Everything, the installation of Apache with PHP binding is completed. You only need to view information about the language package involved. To do this, enter http: // localhost / filename.php in the browser.

Some users require the installation of Apache Ubuntu, because many prefer to work just Linux. To do this, the command line is opened and the command to build from the repository is written: sudo apt-get install apache. Then the installed server should start automatically and display the inscription "Starting web server apache". For further management, the apachectl command exists. For example, in order to see the real status of a web server, the phrase "apachectl status" is applied. One of the most necessary commands for the functioning of Apache: sudo apachectl stop, sudo apachectl start and sudo apache2ctl restart. Accordingly, they are designed to stop, start and restart the server. To determine the availability of work, it is necessary, as in the Windows system, to write the localhost address in the browser. In case of a successful result, the user will see the English message "It works!".

In any case, the services of such a server are used by webmasters around the world. In the market Apache takes 50%, which is very significant and indicative.

Similar articles

 

 

 

 

Trending Now

 

 

 

 

Newest

Copyright © 2018 en.birmiss.com. Theme powered by WordPress.