ls -la /home/user/mail/domain.com/info/cur/
chow -R user.user /home/user/mail/domain.com/info/cur/
Monthly Archives: June 2017
nginx cors policy woff
location ~* \.(eot|otf|ttf|woff|woff2)$ {
add_header Access-Control-Allow-Origin *;
}
directadmin Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: undefined symbol: unixd_config
cd /usr/local/directadmin/custombuild
./build update
mv /usr/local/lib/php.ini /usr/local/lib/php.ini.back
./build php n
mv /usr/local/lib/php.ini.back /usr/local/lib/php.ini
/etc/init.d/httpd restart
apache cache control images
FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=3024000, public"
FilesMatch>
[emerg] (28)No space left on device: Couldn’t create accept lock (/var/log/httpd/acce
for i in `ipcs -s | awk ‘/apache/ {print $2}’`; do (ipcrm -s $i); done
ipcrm -m 0x63637069
ipcs -s | grep nobody | awk ‘ { print $2 } ‘ | xargs ipcrm
Unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR
You are using PHP4, should upgarde PHP version to PHP5.6 or 7.
Checking for psol fails, see autoconf.err log
.You should try older nginx-pagespeed version, or use Centos 7 instead od older version.
own content delivery network CDN nginx
yum install nginx
cd /etc/nginx/conf.d
vi cdn.conf
server {
listen 80;
server_name static.yourdomain.com;
location ~* .(gif|jpg|jpeg|png|wmv|avi|mpg|mpeg|mp4|htm|html|js|css|mp3|swf|ico|flv)$ {
expires max;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://yourdomain.com;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control;
proxy_store /var/www/cache$uri;
proxy_store_access user:rw group:rw all:r;
}
}
chkconfig nginx on
nginx -t
service nginx start
Got packet bigger than ‘max_allowed_packet’ bytes when dumping table
[mysqldump]
max_allowed_packet = 500M # default max_allowed_packet size is 25M