Local server is open. Installing OpenServer

From the article you will learn: what OpenServer is needed for, where to download it from and how to install it (I will show using Windows 10 as an example)

Open Server allows you to use a local server on your computer. This means that you can work on your site on your home computer, and when the site is ready, transfer it ready and working to the Internet.

Click Download. On the loading page, select the Basic version. Enter the numeric code from the picture and click the Download button.

A page will open where you will be offered two options to download the program.

The first method is paid (Minimum donation amount is 60 rubles) - this method will ensure fast loading.

The second method is free and therefore very slow))

A file like this will be downloaded (on the day this article was written, it looked like this, but now it may look different). This is an archive with the program.


Double click on the file. A window will open asking you to select a location where to unpack the files from the archive. I chose drive D.

Click the OK button. The unzipping process will begin.

We go to the folder that we selected in step 3. We see that the OpenServer folder has appeared. We enter it.

We see two shortcuts for launching the program (there can be only one shortcut, it depends on the bitness of Windows).

Double-click on the Open Server x64 shortcut.

Since this is the first launch of OpenServer, the process of installing components (MicrosoftVC++) for the correct operation of the program will begin.

After installation is complete, the program will prompt you to restart your computer. Reboot.

We go through the fourth step again - that is, we go to the OpenServer folder and launch the program.

In the tray (the area in the lower right corner where the clock is) we see a new icon - a red flag.

Click on it and the program menu will open. Click on the green checkbox that says Run.

We're waiting a little. The red flag will change to yellow, and then change color to green. The server is running.

If the open server does not start - a window appears with the words “Startup failed!”, then go down to the bottom of the article to the description of the open server settings.

Checking OpenSever operation

Click on the green flag. In the menu that opens, point the arrow to My Sites. A submenu will appear with the only item localhost. Click on it.

A page will open in the browser with a message that OpenServer is running.

Hooray! We made it))

As you can see, installing openserver is not at all difficult. I like this local server more than Denver, so I use it in my projects and recommend it to you.

Now it needs to be configured.

Open server setup

Click on the checkbox. → In the menu that opens, click on Settings.

In the window that opens, on the Basic tab, check the box next to Run with Windows. I left the delay as suggested at 20 seconds. The delay is needed so as not to slow down the loading of Windows. First, all the components necessary for the computer to operate will be loaded, and then the Open Server will start.

Also check the box Require an administrator account. Some functions only work with administrator rights, so be sure to check this box.

For those whose open server displays Startup Failure upon startup, you need to go to the Server tab in the settings and check the “Do not make changes to the HOSTS file” checkbox. If openserver initially starts normally, then do not check this box.

Every owner of a website or blog, sooner or later, has an irresistible desire to somehow “finish” or “tweak” it. Having read cheerful articles in the style of “Hatemeel - it’s even simpler”, they, without hesitation for a long time, begin to straighten the delicate code with the help of a sledgehammer, a chisel and some kind of mother. The result, most often, is pulling out the hair on the butt and panicked letters to technical support: “Help, my site is dead!”

Those who are smarter and more careful understand that before you climb into a living organism with unwashed paws, you need to practice on some kind of simulator. Professional website developers have been using them for a long time and successfully. For quite a long time, the most popular was Denver, a full-featured simulator of a remote server on your own computer. But for about three years now the project has not been resumed, the Internet has gone far ahead, and in modern computers and systems, old Denver is becoming crooked, or not at all.

The new favorite is the freely available OpenServer package. Type this word into Google and you will be taken to the project page, where you can download the source archive. Place it on a disk with at least 1 gigabyte of free space and unzip it. Go to the OpenServer folder and run the file with the same name.

First of all, you will be required to open Internet access. If you don't use Skype, then there shouldn't be any more problems. If you use it, first go to its settings and uncheck the “Use ports 80 and 443 as incoming alternative” checkbox. Then restart Skype. Check your Skype settings - they should look like this.

After the program starts, a red flag will appear on the command line. Click on it and you will see the server menu. Click on the green checkbox next to which it says “Start server”. The program itself will create a virtual disk W:. Congratulations, you have in your hands a full-fledged server with all the capabilities that real high-quality hosting provides.

What I will write next will probably cause indignation among professional webmasters. But I’ll take the risk of describing the easiest way to start your own experiments with code; we’ll leave more complex options for later. According to the rules, working with the site begins with creating a user and a database. Of course, if we are doing a real project, this is what we need to do. For us, experimenters with playful hands, OpenServer has already created a user with the name mysql, a database with the name mysql and the password mysql. All we have to do is create a new domain. To do this, click on the “Settings” menu and select the “Domains” tab. In the “Domain name” field, enter any name (it is not advisable to repeat the name of the real site), in the “Domain folder” field, write “localhost/www” and click on “Add”.

Further actions are standard. Load WordPress into the OpenServer\domains\localhost\www folder, open the wp-config file and enter the user and database names and passwords there.

We save, then in the browser we type the name that we entered as a new domain, and we get to the regular WordPress installation page. Here, be sure to write your email address correctly and do not allow indexing. After this, the new website is at your complete disposal. You can do whatever you want with it. For example, I test all new themes on it. It’s even better to install a working website theme on it and test plugins, widgets and scripts. You can remove unwanted links from the template code before installing it on your production site. You can use OpenServer as a testing ground for learning HTML, CSS and PHP. You can practice moving sites, come up with new pages, and so on and so forth. You can test your own themes and see them in any browser. And most importantly, there is absolutely no risk of ruining an already working site.

In fact, OpenServer is immeasurably richer in capabilities. There, in the menu, there is documentation where everything is described in detail. I just wanted to show a simple path to self-improvement and gaining practical work skills. After all, the one who doesn’t dream of becoming a webmaster is bad!

2. Project files.

I'll name the domain "myshop" (You can choose your own name if you wish). Unpack the downloaded archive with the project into the folder C:\OpenServer\domains\myshop\

It should look like this: (pay attention to the folder path)

3. Add a local domain to Open Server.

Go to settings:

Then go to the "Domains" tab. In the drop-down list, select the “Manual control” menu item:

The program will require a server restart, confirm:

4. Let's check the operation of the site.

Hooray! The site works, although it shows an error. The error text states that the site cannot connect to the database. Now we will configure it.

5. Setting up the database.

At the beginning of the lesson, we downloaded the db_export.zip archive. Unpack it. The db_export.sql file is a "copy" of the database, keep it handy.

The phpMyAdmin tool is included with Open Server. Let's use it to work with the database:

Login to the panel with the login "root", leave the password blank

Go to the Import tab, Choose File, select the db_export.sql file, and click Open.

In a moment, the database will be imported, you can view the contents of its tables:

6. Configuring database connection parameters.

The last step is to configure the settings. To do this, we need to edit the db_params.php file in our project. To do this, open it using notepad:

And enter the required data. We leave the database name unchanged - “phpshop”. In our case (with a standard Open Server installation), the user is “root” and the password is an empty string.

In this lesson we will figure out how to install Open Server on your computer. But first, let’s find out what Open Server is and what is it for?

Open Server is a portable server platform and software environment created specifically for web developers, taking into account their recommendations and wishes.

The software package has a rich set of server software, a convenient, multifunctional, well-thought-out interface, and has powerful capabilities for administering and configuring components. The platform is widely used for the purpose of developing, debugging and testing web projects, as well as for providing web services on local networks.

In other words, Open Server will allow you to create websites right on your local computer. Also, you will be able to work with the current site by first uploading it to Open Server, rather than experimenting with the existing site directly on the hosting. This can be useful when you want to check a new engine update, try out a new module on the site, change the design, etc. Open Server will help you with all this.

You can read more complete information about Open Server on the official website.

I’ll also add that I used to use it to develop websites, but since it hasn’t been updated for a long time, and there’s no way to independently make the necessary settings on the local server, I turned my attention to the alternative - Open Server, and I’ve never regretted it choice.

Well, let's start installing Open Server.

First of all, we need to download the distribution itself. To do this, go to the official website in the “Download” section, select the desired distribution version (1). It is worth noting that the product comes in three versions: Ultimate, Premium, Basic, how they differ from each other can be clearly seen in the comparison table on the website. I always use "ULTIMATE" (maximum performance). Next, enter the code from the image (2) and click the “Download” button (3).

As soon as the distribution is downloaded, we begin the installation.

The distribution is presented in the form of a self-extracting archive. We launch it and we are immediately prompted to select the disk where Open Server will be unpacked. I leave the “C” drive by default; if you want to install on another drive (or on a flash drive or portable drive), then specify the appropriate path for unpacking. After the disk is selected, we begin unpacking and click the “Ok” button.

We are waiting for the distribution to be unpacked.

Now we can run the program. Since the program is portable, no shortcuts are created on the desktop or in the Start menu. Therefore, go to the drive where Open Server was unpacked (for me it’s C:\OpenServer\) and you will see two exe files to run Open Server: for 32 (Open Server x86.exe) and 64 (Open Server x64.exe) bit Windows systems. Depending on your Windows operating system, you can display one of the shortcuts on your desktop to always have quick access to launch Open Server.

When you first launch you will be asked to select a language.

Also, when you first start the Open Server, you will be prompted to install patches for Microsoft Visual C++. Click “Ok”.

We are waiting until the installation of the necessary libraries is completed.

And the last thing we can do is restart the computer for all the changes to take effect. Click “Ok”.

As soon as the computer restarts, you can start working with the local server.

Starting and checking the operation of Open Server

Launch Open Server and you will see that a red flag icon has appeared in the tray. This means that the program is activated, but the server itself has not yet started.

To start the server, click on the icon with any mouse button and in the context menu that opens, select “Run”. As soon as the local server starts, the checkbox will turn green.

Now the Open Server is running and ready to work.

To check its functionality, go to your browser and enter: http://localhost/ in the address bar. If you see the message: “Welcome to Open Server!”, then you have done everything correctly and the local server is ready to work.

This completes the installation of Open Server! Congratulations, you have successfully completed your task :)

In one of the next lessons I will talk about setting up Open Server, so don't miss it.

I would like to introduce you to a new professional tool for web development for Windows.

Open Server is a portable local WAMP/WNMP server that has a multifunctional control program and a large selection of plug-in components. The presented software package is not just another amateur assembly put together on the knee; it is the first full-fledged professional tool created specifically for web developers, taking into account their recommendations and wishes.

If you are still using Denwer, Xampp, Vertrigo, etc. or you prefer to install all server components separately - welcome under cat.

Components and Tools

To debug scripts in different environments, Open Server offers a choice of two types of HTTP servers, different versions of PHP and DBMS modules, as well as the ability to quickly switch between them.

HTTP modules: Apache 2.2.21 and Nginx 1.0.11;

DBMS modules: MySQL 5.1.61, MySQL 5.5.20 and PostgreSQL 9.1.1;

PHP modules: PHP 5.2.17 (IMagick 2.2.1, Zend Optimizer 3.3.3, IonCube Loader 4.0.7, Memcache 2.2.4) and PHP 5.3.9 (IMagick 2.3.0, Xdebug 2.1.3, IonCube Loader 4.0.10, Memcache 2.2.6);

Excellent set of tools: HeidiSQL, Adminer, PHPMyAdmin, PHPPgAdmin, PgAdmin.
The package also includes such goodies as: Perl, FTP server, Sendmail, Memcached server!

Open Server is the only project I know of that includes Nginx! Moreover, here a convenient connection of rewrite rules is implemented through .nxaccess files in the domain root, and PHP works in True FastCGI mode (indestructible).

All components are taken from official repositories and are always updated to the latest versions with each package update.

Possibilities

First of all, I want to note that Open Server is a completely portable server. No system services, heaps of garbage in the registry and system32. You can carry it with you everywhere on a flash drive (preferably a high-speed one), run it on your work/home machine without fear that something won’t work for you.
If the necessary system components are not on the computer, Open Server will install them itself; just select [Tools - First launch] in the menu if the server is launched on the computer for the first time.

I don’t want to describe the main features of the program, since for the most part they are standard for this kind of software. It goes without saying that with the help of Open Server you can start/stop the server or open the desired domain. It will be much more interesting for you to learn about the specific “features” that make Open Server special, truly special:

Detailed viewing of logs of all components in real time;
- choice of HTTP, DBMS and PHP modules in any combination;
- support for SSL and Cyrillic domains out of the box;
- support for aliases or other domain pointers, as well as a convenient form of setting them up (hello to fans of multisite in Drupal!);
- creating a local subdomain without losing visibility of the main domain on the Internet;
- access to domains (in one click) and quick access to module configuration templates;
- multilingual interface (Russian, Ukrainian, Belarusian, English);

The program is constantly being improved, all relevant requests from Open Server users are studied in detail and most of them are implemented!

A little history

Initially, I developed a control program in the DevelStudio environment. I think there will be those who read my story about this development environment. Since then, a lot of water has passed under the bridge, I realized that work on this project is being carried out extremely sluggishly, there were no prospects in terms of developing the functionality of Open Server. I rewrote the program from scratch and from version 4.0 onwards development is carried out in Delphi.

Conclusion

For many years I used Denwer in my daily work, after some time I switched to Vertrigo. I tried almost all other available options: XAMPP, AppServ, WAMPserver, TopServer, etc., but none of the above builds satisfied me. Limited functionality, difficulty in setting up, and sometimes simple external ugliness discouraged me from using these “creations.”

Dear Khabravians, I will be glad to see you at the Open Server forum, I will listen with interest to your suggestions for the development of the project, wishes for connecting new components and other interesting ideas.