Installing apache windows 7 x64. Installing Apache on Windows (7)


03/19/17 5.8K

The Apache project does not provide binary versions of the software, but only source. However, they can be obtained from third party sites:

  • ApacheHaus;
  • Apache Lounge.

Download Apache Windows 32-bit ( httpd-2.4.20-win32-VC14.zip) or 64-bit version ( httpd-2.4.20-win64-VC14.zip). Check if you have installed 64-bit version OS. To determine this, you can use msinfo32.exe. This tool helps you gather information about your computer, diagnose problems, or can be used to access other tools.

To run it, run the command Run > msinfo32 > press Enter.

After you find the required version, download the Zip archive and then extract its contents to the C:Apache24 folder.

Before starting the Apache server, if you need to change the listening port to 8181:

  • Open in text editor file C:Apache24confhttpd.conf ;
  • Find the following line: Listen 80 ;
  • And change it to: Listen 8181.

Save your changes.

Now you can start the Apache Windows 7 server:

Open command line as administrator and go to the bin subdirectory:

Type httpd.exe and press Enter.

If a dialog box appears on the screen stating that the MSVCR140.dll file is missing, you need to install Visual C++ Redistributable for Visual Studio 2015 (select vc_redist.x64.exe if you have installed 64-bit Windows version ).

Now open your browser and enter http://localhost:8181 into the address bar to launch the demo site.

Installing PHP 7 on Windows

PHP 7 is an important update for server language PHP web development. Download the VC14 x64 Thread Safe zip archive (2016-Apr-29 00:38:19) . If you have downloaded 32-bit version of Apache, you need to install PHP x86.

Create a folder named " php7", extract the contents of the php-7.0.6-Win32-VC14-x64.zip archive into it, and then place the folder in the root of drive C:

Configuring Apache to Use PHP

Open the installation configuration file Windows Apache C:Apache24confhttpd.conf.

Copy following lines to the beginning of the file:

  • AddHandler application/x-httpd-php.php;
  • AddType application/x-httpd-php .php .html;
  • LoadModule php7_module "c:/php7/php7apache2_4.dll";
  • PHPIniDir "c:/php7" .

In chapter add the line index.php and place it before index.html :

DirectoryIndex index.php index.html

Save the file Apache PHP Windows. Now rename the file C:php7php.ini-development to C:php7php.ini.

Enabling mod_rewrite to rewrite URLs

Open the configuration file Apache C:Apache24confhttpd.conf;
Find the line in it #LoadModule rewrite_module modules/mod_rewrite.so and remove the hash symbol "#";
Find all occurrences of the string " AllowOverride None" and change them to " AllowOverride All".

Setting up PHP with MySQL

Edit the php.ini file and uncomment the extensions directory. Remove the "; " at the beginning of the lines:

; Directory in which the loadable extensions (modules) reside. ; http://php.net/extension-dir; extension_dir = "./" ; On windows: extension_dir = "ext"

Activate the following lines, this will allow you to run MySQL modules:

extension=php_mysqli.dll extension=php_pdo_mysql.dll

And also the below lines if you are using Apache installation PHP MySQL Windows in the development environment:

extension=php_curl.dll extension=php_fileinfo.dll extension=php_gd2.dll extension=php_mbstring.dll extension=php_openssl.dll

Uncomment error_log to enable file logging:

; Log errors to specified file. PHP's default behavior is to leave this value ; empty. ; http://php.net/error-log ; Example: error_log = c:php7php_errors.log

Save your changes.

IMPORTANT! Set Windows PATH to find PHP

  • Click right click mouse on the shortcut My Computer - Properties - Advanced - Environment Variables;
  • In chapter " System Variables"Find the item "Path", click on it and select "Change";
  • Add the path to the end php folder (must be after the semicolon ";"). For example: ";C:php7 ";
  • Click "OK".

How to check if PHP is installed

Create a file at C:Apache24htdocsphpinfo.php and add the following code to it.

The Apache web server is quite popular. It's free software open source. It is usually installed on computers with an operating system UNIX system family, but it is possible to install it on a Windows family operating system.

I found Apache version 2.4.25, and installed it on windows 7 x64 httpd-2.4.25-win64-VC11.zip. There is a 32-bit version and a 64-bit version. On Windows 7 x64 you can install both versions, on 32 bit Windows 7 will only work the 32-bit version. So choose according to your capabilities. I will also note that executable files compiled to Microsoft Visual Studio 2012, I need to install the Visual C++ Redistributable Package for them to work. You can download it from the Microsoft website vcredist_x64.exe. And choose a package of the appropriate bit size

Let's start the installation. If not installed Microsoft package, then install. It's not difficult, everything is done automatically. Then from zip archive extract the Apache24 folder and move it to “C:\Program Files”. If you have Windows x64 and the server is x86, then go to the folder "C:\Program Files (x86)".

I saw advice on the Internet that you need to create a folder in the root of the C: drive and unpack the contents of the archive into it, but I have a different opinion. For programs there is a folder "C:\Program Files". For those who object, they say configuration files are deeply buried and editing them will require administrator rights, I answer: there is no problem. Create a shortcut for notepad ("C:\Windows\notepad.exe"), in the properties of the shortcut after the notepad path add in double quotes full path to the configuration file ("C:\Program Files\Apache24\conf\httpd.conf"), and in the additional properties check the box "run as administrator". Place the shortcut in a location convenient for you, and when you click it, a notepad with administrator rights will be launched and it will open the server configuration file. Once you open it, you need to adjust it a little.

After editing httpd.conf you need to create batch file, write into it

"C:\Program Files\Apache24\bin\httpd.exe" -k install and run it as administrator. This command is for the server to register itself as a windows service, which will automatically start when the system starts. You can also place a small assistant program “C:\Program Files\Apache24\bin\ApacheMonitor.exe” into startup. It is located in the tray, shows the status of the service, and allows you to start, stop, restart the Apache service. You need to restart the Apache service after each edit of the configuration files for the changes to take effect.

If the batch file is completed successfully and the apache service is running, then you can type http://127.0.0.1 or http://localhost in the browser, the browser will open the file “C:\Program Files\Apache24\htdocs\index.html”, in which single line " It works!"If the browser was able to display this, then the server is running.

Of course, the default location for HTML documents that will be processed by the web server is not very convenient, but that doesn’t matter. The fact is that apache can contain many virtual hosts, each of which can be individually configured. Denver's supporters take credit for Denver's ability to host several different sites, but that is due to the apahce server that is built into Denver. We have a full-fledged server running as a Windows service. And now it’s time to start creating

Last update: 10/20/2017

Let's download the Apache web server package from http://www.apachelounge.com/. Let's select the latest version of the server. On the downloads page we can find two versions of the Apache package - for 64-bit systems and for 32-bit.

Before installing Apache, it should be noted that if our OS is Windows, then the package for C++ must be installed on the system, which can be found at the address for 64-bit and 32-bit.

After downloading the package from Apache, unpack the downloaded archive. In it we will find the folder directly with the web server files - the Apache24 directory. Let's move this catalog to drive C so that the full directory path is C:/Apache24 .

Now we need to install Apache as a Windows service. To do this, launch the Windows command line as an administrator and go to the web server directory using the command

httpd.exe -k install

If the installation is successful, the command line will display the message "The Apache2.4 service is successfully installed". The server will also be tested:

In my case, as shown in the picture above, Apache was unable to connect to port 80, which is the default in the configuration, since I have port 80 listening on another web server - IIS. This is one of the common problems when running Apache. To solve it, we need to either disable the IIS service or specify for Apache new port. I will choose the second path.

After installation, we will configure the server to connect it with the previously installed PHP interpreter. To do this in the folder C:\Apache24\conf Let's find the httpd.conf file and open it in a text editor.

The httpd.conf file configures the behavior of the web server. We will not touch upon its descriptions, but will only make small changes that we will need to work with PHP.

First, let's find the line

Listen 80

This line indicates the listening port. The default is port 80. If there are no conflicts with ports, you can leave it as it is. I'll change the port to 8080.

#ServerName www.example.com:80

and change to

ServerName localhost:8080

Now let's connect PHP. To do this, find the end of the module loading block in the httpd.conf file LoadModule

//...................... #LoadModule watchdog_module modules/mod_watchdog.so #LoadModule xml2enc_module modules/mod_xml2enc.so

And at the end of this block we will add the lines

LoadModule php7_module "C:/php/php7apache2_4.dll" PHPIniDir "C:/php"

DocumentRoot "c:/Apache24/htdocs"

By default, the directory "c:/Apache24/htdocs" is used as the document storage. Let's replace this line with the following:

DocumentRoot "c:/localhost"

Let's change the paths of the files in which information about errors or site visits will be recorded. To do this, find the line

ErrorLog "logs/error.log"

And let's replace it with

ErrorLog "c:/localhost/error.log"

CustomLog "logs/access.log" common

And let's replace it with

CustomLog "c:/localhost/access.log" common

And we will also find the block and add two lines to it:

AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps

And at the end we will find the block :

DirectoryIndex index.html

And replace it with the following:

DirectoryIndex index.html index.htm index.shtml index.php

This is minimal required configuration, which is needed to work with PHP. To manage the server (start, stop, restart), we can use the utility that comes with the kit - . This utility can be found in the directory C:\Apache24\bin

Let's launch the utility. The ApacheMonitor icon will appear in the tray. Click on it and in the appeared context menu select Start.

If everything is configured correctly, the web server should start.

Now our task is to make sure that php is connected and working correctly. To do this, let's go to the c:/localhost folder, which we created to store documents, and add the usual text file. Let's rename it index.php and add the following content to it:

IN in this case we created simple script which outputs general information about PHP. Now let's access this script by typing the address in the browser bar http://localhost:8080/index.php

What happened here? When accessing the site on local machine the address is http://localhost. Since we specified 8080 as the port, the port is also indicated in the address via a colon. If we used port 80, which is the default, then it would not need to be specified.

Then the name of the resource being accessed is indicated. In this case, the file index.php is used as a resource. And since the httpd.conf file specifies the directory as the web server document storage C:\localhost, then it is in this directory that the web server will search for the necessary files.

And since we indicated above during configuration that as home page file can be used index.php, then we can also access this resource simply http://localhost:8080/

This completes the installation and configuration of the Apache web server, and we can create our websites.

This article - step-by-step instruction on creating a local web server. It describes the installation Apache web server 2.4 on the Windows OS platform. The installation was tested on Windows XP SP3.

Web server composition:

  • Apache 2.4 (version 2.4.10);
  • PHP 5.4 (version 5.4.34);
  • MySQL 5.5 (version 5.5.23).

This working environment suitable:

  • experienced webmasters to test their projects;
  • for beginning webmasters to create their first websites.

Apache 2.4 and PHP 5.4 distributions are compiled in VC9 (Visual Studio 2008).

Apache 2.4 VC9 version works with almost all current versions Windows (7/8/Vista/XP SP3).

For VC9 applications to work, you first need to update the Visual C++ libraries.

Installing the Visual C++ library update package

Download the vcredist_x86.exe update distribution from the Microsoft website, run the file and perform the update.

Installing and configuring Apache 2.4 server

The Apache distribution does not have an installation file. Therefore, the installation will be done manually.

Create a folder and unpack the archive httpd-2.4.10-win32-VC9.zip.

In the configuration file httpd. conf default routes are C:\Apache24. Therefore, there will be much fewer edits in the configuration file if you unpack the archive into this folder.

We will unpack the distribution into the C:\TestServer folder.

We make changes to the configuration file C:\TestServer\Apache24\conf\httpd. conf. When writing paths, instead of the "\" (backslash) character, use the "/" (forward slash) character. This is how paths are written in operating rooms Linux systems and Unix. But Apache was originally developed specifically for these operating systems.

We perform a group replacement of the text C:/ Apache24 with C:/ TestServer / Apache24.

Set the value of the ServerName parameter.
ServerName localhost:80

Set the value of the ServerAdmin parameter (administrator's e-mail).
ServerAdmin [email protected]

Set the value of the DocumentRoot parameter (location of site documents).
DocumentRoot C:/TestServer/Apache24/htdocs

You may want to store site documents separately from the server. For example, in the C:\MySites folder. Then this parameter can be changed.
DocumentRoot C:/ MySites

Executable Apache files are located in the C:\TestServer\Apache24\bin folder. Add this value to environment variable PATHWindows.
PATH = C:\TestServer\Apache24\bin ;

Install Apache as a service.
httpd.exe -k install

If , then when installing the service a message will appear indicating that the program is blocked from external connections. For the service to work, you must give permission to unlock.

Let's start the Apache server.
httpd.exe -k start

We check the performance of the server. In the browser command line, type the address: http://localhost. If the Apache installation was successful, the text It works! . Otherwise we will see a blank screen.

If the server does not start, you should check whether port 80, which Apache uses by default, is busy.

This is done using the command
netstat –anb

Most often this port is used by Skype or Firefox. In this case, you should either release the port or move Apache to port 8080.

To do this, in the httpd file. conf we change the values ​​of the ServerName and Listen parameters. ServerName localhost:8080
Listen 8080

After this, restart the service with the command
httpd.exe -k re start

and again we try to go to http://localhost

For ease of use Apache server you can set a shortcut in the menu pointing to C:\TestServer\Apache24\bin\ ApacheMonitor.exe

Installing PHP 5.4

We go to the developer’s website http://windows.php.net/download/. Find the PHP 5.4 distribution in the VC9 x86 Thread Safe section and download the php-5.4.34-Win32-VC9-x86.zip archive.

Create a folder on local computer, let it be C:\TestServer\PHP54, and unpack the archive.

We return to the site with the Apache distribution kit. In the Additional + VC9 section we find the archive php5apache2_4.dll-php-5.4-win32.zip with Apache PHP modules and download it.

In the archive we find the folder with the latest version of the php5apache2_4.dll module and place it in the C:\TestServer\PHP54 folder.

In the httpd configuration file. conf add the lines:

LoadModule php 5_ module « C :/ TestServer / PHP 54/ php 5 apache 2_4. dll"
AddHandler application / x - httpd - php . php
# configure the path to php . ini
PHPIniDir "C:/TestServer/PHP 54/php"

In folder C:\TestServer\Apache54\htdocs create a file test.php.

echo "Hello Apache!";
?>

Restart Apache.

IN address bar browser, type http://localhost/test.php. If the text Hello Apache! , That PHP installation completed successfully.

Setting up php.ini

To work with the MySQL database, we need to configure php. ini – PHP configuration file.

In the C:\TestServer\PHP54 folder there are two templates: development and php.ini-production.

Rename the php.ini-production template to .

Libraries for working with the MySQL database are located in the folder C:\TestServer\PHP 54\ext. This path must be specified in the extension_dir directive of the php.ini configuration file.

We find this parameter, remove the comment character at the beginning of the line (this is a semicolon) and write the path.
extension_dir = "C:/TestServer/PHP 54/ext"

There are two libraries for working with the MySQL database in PHP: php_mysqli. dll is newer and is recommended to be used in work; php_mysql. dll is old, but most sites use it.

It is better to include both libraries in the php.ini file.
extension = php_mysql. dll
extension = php_mysqli. dll

After completing the edits, be sure to restart the Apache server.

Installing and configuring MySQL

Go to the page http://www.mysql.ru/download/. Select the version for Win32 or Win64. We will be downloading the mysql-5.5.23-win32.msi installation package.

Run the file mysql-5.5.23-win32.msi.

We agree to license terms, select the installation type Typical.

Let's move on to MySQL setup server.

Select Detailed Configuration – detailed configuration settings.

Select the server type with minimum requirements to memory – Developer Machine.

Now we need to decide which databases (InnoDB, MyISAM) our server will work with.

Multifunctional Database – InnoDB and MyISAM are supported.
Transactional Database Only - InnoDB supported.
Non-Transactional database Only- myISAM is supported.

When choosing InnoDB support, the next step is choosing where to store the InnoDB tables.

Maximum number simultaneous connections It's better to choose Manual Setting ( manual installation) and accept the default value (15 ).

At this step, the Enable TCP/IP Networking parameter enables support for TCP connections and selects the port through which these connections will be made. The Enable Strict Mode parameter is also set – the mode of strict compliance with the MySQL standard.

Now you need to select the default encoding. The best option- UTF-8 encoding. Therefore we choose Best Support For Multilingualism.

In order for MySQL to start as Windows service- install Install as Windows Service. If you need to autostart this service, install Launch the MySQL Server automatically.

Now set the administrator password and turn off the Modify Security Settings option.

After clicking the Next and Execute buttons MySQL installation can be considered completed.

To check the functionality of MySQL, click the Windows Start button, find the utility for working with MySQL (MySql Server 5.5 MySQL Server Command Line) and run it.

After entering the administrator password, we are taken to the MySQL command line.

Enter the command
show databases;

If we see a list of databases, this will mean that the server is working correctly.

Exit command line mode:
exit;

This completes the server installation. Good luck!

Installing a web server on Linux:

  • If you have Ubuntu, then the article “How to install Apache web server with PHP 7, MariaDB/MySQL and phpMyAdmin (LAMP) on Ubuntu 16.10” is suitable for you.
  • If you have Arch Linux, then the article "Installing LAMP (Linux, Apache, MySQL/MariaDB, PHP7 and phpMyAdmin) on Arch Linux / BlackArch" is suitable for you.

Local server Very useful tool. It will definitely be useful for webmasters, PHP programmers, and penetration testers. All programs included in typical installation web servers are free and all of them are open source. A local web server consumes minimal resources and is actually not difficult to install and configure.

This instruction will tell you how to install local web server without use ready-made assemblies. This method has its advantages. The most important of them are: full control on what you install; opportunity to use the most latest versions software.

If you follow the instructions exactly, then everything will definitely work for you! Except for those who have Windows XP - if you like this operating system, then special instructions have been made for you.

I will show an example of installation on Windows 10, but if you have a different version of Windows, then don’t let this bother you - the procedure is identical everywhere. I will download the latest (most recent) versions of the programs at the time of writing. If by the time you read, new versions will be released, then download them.

Installation steps:

You may also find it useful:

1. Preparation (downloading programs included in the server, creating the server structure)

We need:

  • Apache(directly web server)
  • PHP- environment for PHP work programs (required by almost all websites)
  • MySQL- database management system (required by most websites)
  • phpMyAdmin- Very handy tool for database management

The official website of the Apache developers is httpd.apache.org. You can download Apache from this site. But official version compiled using an old compiler, for this reason it does not work with new ones PHP versions. PHP authors recommend Apache from apachelounge.com/download. Therefore, for this instruction, we download Apache from the site apachelounge.com/download.

If you have a 64-bit version of Windows, then you can choose both 64-bit and 32-bit versions of components. The main rule is that all components must be of the same bit size. If you have a 32-bit version of Windows, then all components must be 32-bit. This does not apply to phpMyAdmin, which is written in PHP language. For PHP programs the concept of bit depth is not applicable.

Free MySQL version called MySQL Community Server. It can be downloaded on the page. There is an executable installer on this same page, but I recommend downloading the ZIP archive. On the download page we are asked to register or log in to an existing one. account- but this is not necessary. Just click on the link " No thanks, just start my download" Pay attention to the bit depth.

We also need the C++ Redistributable Visual Studio 2017 file, i.e. Visual C++ redistributable component for Visual Studio 2017 (or any other later), you can download it on the official Microsoft website using the link (direct link to download the 64-bit version; direct link to download the 32-bit version). This file is needed for the web server. And MySQL requires Visual C++ Redistributable Packages for Visual Studio 2015. It can be downloaded from .

So, I downloaded the following files:

  • httpd-2.4.29-Win64-VC15.zip
  • php-7.2.0-Win32-VC15-x64.zip
  • mysql-8.0.11-winx64.zip
  • phpMyAdmin-4.7.6-all-languages.zip
  • vc_redist.x64.exe
  • vcredist_x64.exe

Install files vc_redist.x64.exe And vcredist_x64.exe.

2. Create a web server structure

Let's create the directory structure of our server. The main idea is to separate executable files and website files with databases. This is convenient for server maintenance, including backups.

At the root of the disk C:\ create a directory Server. In this directory, create 2 subdirectories: bin(for executable files) and data.

Go to the directory data and create subfolders there D.B.(for databases) and htdocs(for websites).

Go to the directory C:\Server\data\DB\ and create an empty folder there data.

3. Installing Apache 2.4

The contents of the downloaded archive (more precisely, only the directory Apache24), unpack into C:\Server\bin\.

Go to the directory c:\Server\bin\Apache24\conf\ and open the file httpd.conf any text editor.

In it we need to replace a number of lines.

Define SRVROOT "c:/Apache24"

Define SRVROOT "c:/Server/bin/Apache24"

#ServerName www.example.com:80

ServerName localhost

DocumentRoot "$(SRVROOT)/htdocs"

DocumentRoot "c:/Server/data/htdocs/"

DirectoryIndex index.html

DirectoryIndex index.php index.html index.htm

# AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # AllowOverride None

# AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # AllowOverride All

#LoadModule rewrite_module modules/mod_rewrite.so

LoadModule rewrite_module modules/mod_rewrite.so

Save and close the file. All, Apache setup completed! A description of each changed directive can be found on this page.

Open the command line (this can be done by pressing the Win+X keys simultaneously). Select Windows PowerShell (Administrator) there and copy there:

C:\Server\bin\Apache24\bin\httpd.exe -k install

If a request is received from the firewall for Apache, click Allow.

Now enter into the command line:

C:\Server\bin\Apache24\bin\httpd.exe -k start

And press Enter.

Enter root as the username. Leave the password field empty. If everything is done correctly, then everything should look like this:

7. Server use and data backup

In the catalog c:\Server\data\htdocs\ create folders and files, for example:

c:\Server\data\htdocs\test\ajax.php - this file, accordingly, will be available at http://localhost/test/ajax.php, etc.

To create a complete backup of all sites and databases, just copy the directory C:\Server\data\.

Before updating modules, make a backup of the folder bin- in case of problems, you can easily roll back to previous versions.

At reinstallation server or when updating it, you need to re-configure the configuration files. If you have copies of these files, the process can be significantly speeded up. It is advisable to backup the following files:

  • c:\Server\bin\Apache24\conf\httpd.conf
  • c:\Server\bin\mysql-8.0\my.ini
  • c:\Server\bin\PHP\php.ini
  • c:\Server\data\htdocs\phpMyAdmin\config.inc.php

All settings are stored in them.

8. Additional PHP setup

PHP is now a very powerful, flexible, user-friendly tool. On a local computer, you can use it to solve a variety of tasks that are not necessarily related to generating Web pages. When solving extraordinary problems, you may run into restrictions set in the settings. These settings are contained in the php.ini file (c:\Server\bin\PHP\php.ini). Let's look at some of them:

Memory_limit = 128M

sets maximum amount memory that the script can use

Post_max_size = 8M

sets the maximum amount of data that will be accepted when sending POST method

;default_charset = "UTF-8"

sets the encoding (by default, the line is commented out)

Upload_max_filesize = 2M

the maximum size of a file uploaded to the server. Initially installed very small size- only two megabytes. For example, when loading a database into phpMyAdmin, you will not be able to upload a file larger than 2 megabytes until this setting item is changed.

Max_file_uploads = 20

maximum number of files to upload at one time

Max_execution_time = 30

maximum execution time for one script

Changing these settings is completely optional, but it is useful to know about them.

9. Additional settings for phpMyAdmin

We have already configured phpMyAdmin and for most people the basic functionality is enough. However, on home page phpMyAdmin there is an inscription: “Additional features of phpMyAdmin are not fully configured, some functions have been disabled.”

New features are:

  • showing relationships between (related) tables;
  • adding information about tables (starting from version 2.3.0 you can describe in a special table ‘table_info’ which column will be shown in the tooltip when moving the cursor over the associated key);
  • creating a PDF diagram (starting from version 2.3.0 you can create PDF pages, showing the relationships between your tables);
  • display column comments (since version 2.3.0 you can make a comment describing each column for each table. And they will be visible in " preview for print". Since version 2.5.0, comments are used on own pages tables and in view mode, appearing as tooltips above columns (property tables) or embedded in the table header in view mode. They can also be shown in the table dump);
  • create bookmarks (since version 2.2.0, phpMyAdmin allows users to bookmark queries. This can be useful for frequently used queries);
  • history of SQL queries (starting from version 2.5.0 you can save your history of all SQL queries, which were made through the phpMyAdmin interface);
  • designer (starting from version 2.10.0, the Designer tool is available; it allows you to visually manage relationships between tables);
  • information about recently used tables;
  • customizing the interface of frequently used tables;
  • tracking (starting from version 3.3.x, a tracking mechanism is available. It helps you track every SQL command that was executed by phpMyAdmin. Recording of data manipulation and command recording is supported. Once enabled, you will be able to version tables);
  • user settings (starting from version 3.4.x, phpMyAdmin allows users to set most settings and save them in the database);
  • custom menus (starting from version 4.1.0 you can create user groups that will only have access to assigned menu items. A user can be assigned to a group and will only see menu items available to their group);
  • hide/show navigation items (starting from version 4.1.0 you can hide/show items in the navigation tree).
  • and others

Now we will configure these additional features fully. Go to the link http://localhost/phpmyadmin/chk_rel.php and click "Create database". After this, all new features will be activated.

A few screenshots of the new features:

1) Designer

2) Tracking

10. Installation of a mail plug

In the C:\Server\bin\ directory, create a new directory called Sendmail. Now in this directory create a file sendmail.php with the following content:

#!/usr/bin/env php

Open the PHP configuration file, it is located here C:\Server\bin\PHP\php.ini. And add one line there:

Sendmail_path = "C:\Server\bin\PHP\php.exe C:\Server\bin\Sendmail\sendmail.php --dir C:\Server\bin\Sendmail\emails"

Save the file and restart the server. Great, now all sent emails will be saved in the directory C:\Server\bin\Sendmail\emails\

Letters will have the extension .eml and they can be opened, for example, by the program Thunderbird. Or a regular text editor.

11. Adding a PHP directory to PATH on Windows

If this is not done, there may be problems with some PHP modules, including php_curl.dll, php_intl.dll, php_ldap.dll, php_pdo_pgsql.dll and php_pgsql.dll. At least, every time the server starts, the following appears in the logs:

PHP Warning: PHP Startup: Unable to load dynamic library "C:\\Server\\bin\\PHP\\ext\\php_curl.dll" - \xef\xbf\xbd\xef\xbf\xbd \xef\xbf\ xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\ xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd \xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\ xbf\xbd\xef\xbf\xbd.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library "C:\\Server\\bin\\PHP\\ext\\php_intl.dll " - \xef\xbf\xbd\xef\xbf\xbd \xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd \xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd \xef \xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library " C:\\Server\\bin\\PHP\\ext\\php_ldap.dll" - \xef\xbf\xbd\xef\xbf\xbd \xef\xbf\xbd\xef\xbf\xbd\xef\xbf\ xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd \xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\ xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd \xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd.\r \n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library "C:\\Server\\bin\\PHP\\ext\\php_pdo_pgsql.dll" - \xef\xbf\xbd\xef\xbf \xbd \xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd \xef\xbf\xbd\xef\xbf\xbd \xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd \xef\xbf\xbd\xef\xbf\xbd\xef \xbf\xbd\xef\xbf\xbd\xef\xbf\xbd.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library "C:\\Server\\bin\\PHP\ \ext\\php_pgsql.dll" - \xef\xbf\xbd\xef\xbf\xbd \xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\ xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\ xef\xbf\xbd \xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd.\r\n in Unknown on line 0

To avoid these warnings, you need to add the path to PHP to your system environment variables.

Click the Start button (or whatever it's called on Windows 10?), start typing " Changing system environment variables» and open the corresponding settings window.

There click " Environment Variables»:

In the window " System Variables» find and click on Path, then click " Change»:

Move the entry to the top:

Close all windows and save your changes.

Restart the server.

12. Freeze, slow traffic and/or server error Asynchronous AcceptEx failed

If your server “freezes” even without load - it does not show web pages until restarted, and in the server logs there are errors Asynchronous AcceptEx failed:

AH00455: Apache/2.4.9 (Win64) PHP/5.5.13 configured -- resuming normal operations AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:42:59 AH00094: Command line: "c:\\Server\\ bin\\Apache24\\bin\\httpd.exe -d C:/Server/bin/Apache24" AH00418: Parent: Created child process 4952 AH00354: Child: Starting 64 worker threads. (OS 64)The specified network name is no longer available. : AH00341: winnt_accept: Asynchronous AcceptEx failed. (OS 64)The specified network name is no longer available. : AH00341: winnt_accept: Asynchronous AcceptEx failed. (OS 64)The specified network name is no longer available. : AH00341: winnt_accept: Asynchronous AcceptEx failed. (OS 64)The specified network name is no longer available. : AH00341: winnt_accept: Asynchronous AcceptEx failed. (OS 64)The specified network name is no longer available. : AH00341: winnt_accept: Asynchronous AcceptEx failed. (OS 64)The specified network name is no longer available. : AH00341: winnt_accept: Asynchronous AcceptEx failed.

Then add to the Apache configuration file:

AcceptFilter http none AcceptFilter https none EnableSendfile off EnableMMAP off

13. Configuring cURL in the Apache web server on Windows

If you don't know what cURL is, then you don't need it. Those. Feel free to skip this step.

cURL is a console utility that allows you to exchange data with remote servers using a very large number of protocols. cURL can use cookies and supports authentication. If a web application requires cURL, then this must be specified in the dependencies. Many popular applications do not require cURL, for example phpMyAdmin and WordPress do not need to configure cURL.

If cURL is not configured correctly, you will receive errors:

Fatal error: Call to undefined function curl_multi_init() in ...

curl error: SSL certificate problem: unable to get local issuer certificate

To make cURL work in Apache on Windows you need:

1) Be sure to add the PHP directory to PATH (system environment variables). How to do this is stated just above:

2) In a file C:\Server\bin\PHP\php.ini line should be uncommented extension=curl

This is usually not required, but you can make a backup copy of the server binary (executable) files if you wish. All these files are located in the folder C:\Server\bin\. These are Apache, MySQL and PHP - i.e. programs that are responsible for the operation of the server, but which we can download from official websites and configure again at any time.

If you want to make a backup copy of them (for example, before upgrading the server), then stop the services:

C:\Server\bin\Apache24\bin\httpd.exe -k stop net stop mysql

And copy the folder to a safe place C:\Server\bin\.

By the way, you can copy the entire server, i.e. folder C:\Server\- in this case, you will simultaneously get a backup copy of both executable files and data (databases, websites).

When the copying is complete, start the services again:

C:\Server\bin\Apache24\bin\httpd.exe -k start net start mysql

15. Server update

All components that make up the web server are actively being developed and new versions are regularly released. When a new version is released, you can update one component (for example, PHP), or several at once.

Deleting a server

If you no longer need the server, or you want to install it again, stop the services and remove them from autostart by sequentially executing on the command line:

C:\Server\bin\Apache24\bin\httpd.exe -k stop c:\Server\bin\Apache24\bin\httpd.exe -k uninstall net stop mysql c:\Server\bin\mysql-8.0\bin\ mysqld --remove

Delete the server files; to do this, delete the folder C:\Server\. Warning, this will delete all databases and your sites.

How to protect your Apache web server from hacking on Windows

With PHP (with choice of versions), with MySQL and phpMyAdmin. This site is hosted exactly on it: responsive and qualified technical support, installation of WordPress and other web applications in one click, as a gift when paying for a year, free site transfer. When ordering hosting + 1 month free (promotional code b33e0e2f).







2024 gtavrl.ru.