Apache is a cross-platform software that supports Linux, BSD, Mac OS, Microsoft Windows, Novell NetWare, and BeOS operating systems.
Installation Apache2:
To install Apache2 on VDS, you must register:
Customization Apache2:
To configure Apache2, go to /etc/apache2/sites-available and create a file modeled on site.conf:
Turning on the site, the site.conf location should be the name of the config that you created:
If you need to disable the site, the name of the config should be instead of site.conf:
Rebooting apache2:
Connecting PHP to Apache2:
In order for Apache to display php files correctly, you need to install the package:
Rebooting apache2:
Enabling rewrite:
Without this option, 70% of CMS for websites will not work.
Most sites contain a file.htaccess must be registered for its operation:
Rebooting apache2:
Enabling SSL:
SSL connection is not required, it is carried out if it is available and you wish.
You need to enable the module that is responsible for SSL:
Creating another config in /etc/apache2/sites-available, it will be responsible for SSL, for example site-ssl.conf:
Rebooting apache2:
Check на nginx:
If apache2 is installed with nginx, then they will conflict due to port - 80. So you need to delete one of the web servers. Check if nginx is installed:
If a huge message with information is not visible, then it is not installed.
If nginx is installed, you need to delete it:
Removal Apache2
To remove Apache2, use:
Last updated