This file contains 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
top:50%; | |
left:50%; | |
transform:translate(-50%, -50%); |
This file contains 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
left:0; | |
right:0; | |
top:0; | |
bottom:0; | |
margin: auto; |
This file contains 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
Если при проверки статуса Apache | |
``` | |
systemctl status apache2 | |
``` | |
Появляется нотис: | |
*** | |
apachectl[27141]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally | |
*** | |
Необходимо добавить строчку: |
This file contains 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
# Ручное обновление phpMyAdmin | |
В официальном репозитории phpmyadmin не самой последней версии (4.6 ... вроде :) ). Что бы обновиться до последней необходимо: | |
1. Скачать с официального сайта последнюю версию (на момент написания это 4.9.1). Рекомендую ещё скачать темы (мне особенно понравилось metro) | |
2. Распоковать Архив, переместить темы скачанные отдельно в папку themes/. | |
И выполнить следующие действия (в терминале): | |
* sudo mv /usr/share/phpmyadmin/ ~/phpmyadmin.bak (делаем резервную папку в домашнем каталоге) | |
* sudo mkdir /usr/share/phpmyadmin/ (Создаем пустую папку) и перемещаем туда предварительно скаченные файлы phpmyadmin (НЕ ПАПКУ целиком а файлы внутри) | |
## Устранение ошибок после обновления |
This file contains 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
In this video you will learn about the installation of LAMP stack on UBUNTU 19.04. This can work on other Ubuntu versions as well. Make sure you watch the video to get full understanding of the installation. | |
Following are the step by step commands that you need to follow: | |
*INSTALL APACHE* | |
* sudo apt update | |
* sudo apt install apache2 | |
Adjust the Firewall to Allow Web Traffic: |
This file contains 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
*** | |
First you need to install `php` && `apache` | |
*** | |
## Конфигурация Apache | |
### First | |
``` | |
a2enmod actions fastcgi alias proxy_fcgi |
This file contains 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
# Setup | |
/etc/apache2/sites-available - before creat file conf site. | |
/etc/apache2/sites-enabled - become сopy created file here (exists special command `sudo a2ensite {NAME_CONFIG_FILE}`). | |
## First | |
``` | |
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/{NAME_SITE}.conf |
This file contains 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
Проверить длину строки можно функцией strlen(). А состав строки - регулярными выражениями (ф-ция preg_match()). | |
<?php | |
// Проверка длины строки | |
if (strlen($_POST['angl']) < 3) { | |
echo("Строка меньше 3-х символов!"); | |
} else { | |
echo("Правильная строка"); | |
// Только цифры и латинские буквы | |
if (preg_match("/^[0-9a-z]+$/i", $_POST['angl'])) { | |
echo("Строка верная"); |
This file contains 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
*** | |
Вам не нужно этого делать. | |
Вам нужно научиться работать с системой так, чтобы не создавать ей проблем. И как следствие - не создавать проблем себе. | |
*** | |
Возврат настроект (если с пользователями и группами, что-то наворотили) | |
``` | |
chown www-data:www-data /var/www; chmod u=rw,g=rs,o=,u+X,g+X /var/www | |
``` | |
Дальше вы либо добавляете пользователя как совладельца: |
OlderNewer