Last active
December 18, 2019 11:37
-
-
Save if0rest/8ba765205c3c8117b4d944a320363aa8 to your computer and use it in GitHub Desktop.
Установка и настройка XAMPP на Linux + BItrix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Установка и настройка XAMPP | |
1. Скачать дистрибутив - https://www.apachefriends.org/download.html | |
2. Добавить флаг исполняемости: | |
chmod u+x ~/Загрузки/xampp-linux-x64-7.3.3-1-installer.run | |
3. Запустите от суперпользователя: | |
sudo ~/Загрузки/xampp-linux-x64-7.3.3-1-installer.run | |
4. Далее --> Галочка напротив XAMPP Core Files --> ... | |
5. В файле /opt/lampp/etc/httpd.conf раскомментировать строку: | |
Include etc/extra/httpd-vhosts.conf | |
6. В файле /opt/lampp/etc/extra/httpd-vhosts.conf указываем настройки для виртуального хоста. Например: | |
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot "/mnt/workspace/www/____.com" | |
ServerName ____.com | |
ServerAlias www.____.com | |
ErrorLog "/mnt/workspace/www/____.com/logs/error_log" | |
CustomLog "/mnt/workspace/www/____.com/logs/access_log" common | |
<Directory /> | |
AllowOverride All | |
Require all granted | |
</Directory> | |
</VirtualHost> | |
7. В файле /etc/hosts прописываем: | |
127.0.0.1 ____.com | |
8. Перезагружаем xampp, чтобы изменения вступили в силу. | |
Пара слов о Битрикс. | |
1. mbstring.func_overload 0. | |
Исправляется в /opt/lampp/etc/php.ini. | |
2. Папка /%folder%/ не доступна для записи и/или чтения. | |
Исправляется выставлением прав, например: | |
> chmod -R 777 <bitrix folder> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment