version: "3"
networks:
default:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1420
{
"mtu": 1420
}
systemctl restart docker
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName localhost
DocumentRoot /home/slonik/localhost/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/slonik/localhost/www/>
Options +Indexes +FollowSymLinks -MultiViews
AllowOverride All
Order allow,deny
allow from all
Require all granted
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /home/slonik/localhost/error.log
#AccessLog /home/slonik/localhost/access.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
sudo dpkg -i libidn2-0_2.0.4-1.1build2_amd64.deb && sudo apt-mark hold libidn2-0
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.2-imap
sudo service apache2 restart
$imap = imap_open('{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX', 'login', 'password');
$emails = imap_search($imap, 'ALL');
if($emails){
echo count($emails);
}
imap_close($imap);
crontab -e
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
###
ВОТ ТУТ ПИШИТЕ СВОЁ РАСПИСАНИЕ ДЛЯ CRON
###
* * * * * /home/$user/bash.sh
crontab -l
crontab -u UserName -e
Вы укажите, от имени какого пользователя будет запускаться cron./var/spool/cron/crontabs
. В этой директории будет создан файл с названием по имени пользователя системы. Вот он как раз и редактируется через crontab -e
./etc/cron.d
. В этом случае надо указывать имя пользователя, от которого будет запускаться задание./etc/cron.daily
, /etc/cron.hourly
, /etc/cron.monthly
, /etc/cron.weekly
. В этих директориях можно разместить файлы с заданиями, которые будут запускаться ежедневно, ежечасно, ежемесячно и еженедельно соответственно. sudo chown user:user /media/FILMS
sudo chown -R user:user /media/FILMS
sudo apt-get intsll gparted
sudo apt-get install -f
sudo add-apt-repository ppa:ondrej/php-zts
sudo apt-get update
sudo apt-get install -y language-pack-en-base LC_ALL=en_US.UTF-8
slonik@slonik-MS-7971:~$ aptitude search mysqlnd
v php-mysqlnd -
v php-mysqlnd:i386 -
p php-mysqlnd-ms - MySQL replication and load balancing module for PHP
p php-mysqlnd-ms:i386 - MySQL replication and load balancing module for PHP
v php5.6-mysqlnd -
v php5.6-mysqlnd:i386 -
v php5.6-mysqlnd-ms -
v php5.6-mysqlnd-ms:i386 -
v php7.0-mysqlnd -
v php7.0-mysqlnd:i386 -
v php7.1-mysqlnd -
v php7.1-mysqlnd:i386 -
v php7.2-mysqlnd -
v php7.2-mysqlnd:i386 -
v php7.3-mysqlnd -
v php7.3-mysqlnd:i386
sudo apt-get install php7.1-mysqlnd