check which user nginx is running
ps aux | grep "nginx: worker process"
in my case it "apache"
chown apache:apache /var/cache/nginx/ -R
Должно быть так
/etc/apache2/apache2.conf
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
А не так
/etc/apache2/mod-available/php5filter.conf <Files *.php> SetOutputFilter PHP SetInputFilter PHP </Files>
Делаем так
#<Files *.php> # SetOutputFilter PHP # SetInputFilter PHP #</Files>
#!/bin/bash
for user in `cat /etc/passwd | cut -d":" -f1`;
do
crontab -l -u $user;
done
ps -ylC httpd --sort:rss | awk '{sum+=$8; ++n} END {print "Tot="sum"("n")";print "Avg="sum"/"n"="sum/n/1024"MB"}'
artemiy@artemiy-nix ~ $ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/artemiy/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/artemiy/.ssh/id_rsa.
Your public key has been saved in /home/artemiy/.ssh/id_rsa.pub.
The key fingerprint is:
af:5e:ea:19:84:dd:5a:75:3e:b3:96:b1:b7:15:12:36 artemiy@artemiy-nix
The key's randomart image is:
+--[ RSA 2048]----+
| |
| |
| .E. |
| o . ..oo |
| . S o .=. |
| . + .B.|
| o o = o|
| * . .o|
| o* . |
+-----------------+
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" URIEncoding="UTF-8" redirectPort="8443" />
mysqldump: ambiguous option '--all' (all-databases, allow-keywords)
./configure --with-apxs2=/usr/bin/apxs --enable-mbstring --with-mysql=/usr/bin/mysql_config --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-config-file-path=/etc/php/
[root@logs /etc]# locate libgcrypt.so
/usr/local/lib/libgcrypt.so
/usr/local/lib/libgcrypt.so.20
/usr/local/lib/libgcrypt.so.20.0.2
ln -s /usr/local/lib/libgcrypt.so.20 /usr/local/lib/libgcrypt.so.19
After raid 1 disk replacement faced with this issue # grub2-install /dev/sdb Installing for i386-pc platform. grub2-install: error: disk `md...