Author: Oxford
//autorun crontab -e 02 4 * * * root run-parts /etc/cron.daily 42 4 1 * * root run-parts /etc/cron.monthly // mysqlbackup vi /etc/cron.daily/bakmysql.sh DATE=`date +%Y%m%d%H%M` #every minute DATABASE=wordpress_hss5com #database name DB_USER=wordpress #database username DB_PASS=”wordpress” #database password BACKUP=/data/dbbackup #backup path #backup command /usr/bin/mysqldump -u$DB_USER -p$DB_PASS -h 127.0.0.1 -R –opt $DATABASE |gzip > ${BACKUP}\/${DATABASE}_${DATE}.sql.gz # send to oss /var/local/src/ossutil64 cp /data/dbbackup/ oss://vpseo.com/dbbackup -r -u #just backup the latest 5 days find ${BACKUP} -name “${DATABASE}_*.sql.gz” -type f -mtime +50 -exec rm {} \; > /dev/null 2>&1 vi /etc/cron.monthly/bakfile.sh // file backup DATE=`date +%Y%m%d%H%M` #every minute WEBSITE=hss5com BACKUP=/data/filebackup #backup path #backup command zip…
If you have ever run your WordPress website through Google PageSpeed Insights or Pingdom then you have probably seen that big yellow Leverage Browser Cachingwarning. And that is probably why you ended up at this post. Today we will dive into what this warning means, how it affects you, and what your options are as it pertains to your WordPress site. What is the Leverage Browser Caching Warning? Fix the Leverage Browser Caching Warning in WordPress What is the Leverage Browser Caching Warning? The leverage browser caching warning, as shown below in the screenshot, is referring to your browser cache. Whenever you visit a website, it downloads…
yum provides php #自带的只有5.4版本 yum remove php* rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm #更新源 rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum remove php-common -y #移除系统自带的php-common yum install -y php72w php72w-opcache php72w-xml php72w-mcrypt php72w-gd php72w-devel php72w-mysql php72w-intl php72w-mbstring php72w-fpm #安装依赖包
Have you ever wished writing a post in WordPress was as easy as writing in Microsoft Word? Many may not know it, but you can write a post in Word and then publish directly to your WordPress site. Although you can obviously write your posts in Word and then copy them into the WordPress editor, maybe the biggest reason to post directly from Word is to take advantage of the impressive graphics capabilities it offers. From image manipulation to “SmartArt” to sophisticated charts and graphs, Microsoft Word has a lot to offer. A Simple Example of Some MS Word Graphics in…
可能很多朋友有同样的经历,magento在服务器中配置域名是可以正常的访问了,但是在本地配置后却无法登录后台,账号密码登录的时候发现出现空白,无法跳转到后台,本文章向大家介绍两种解决本地magento后台无法登录的方法,需要的朋友可以参考下
摘要: 经常碰到内部同学或者外部客户问ossutil关于增量上传的问题。本文简单描述下原理并举例说明。 # 应用场景 ## 场景一 某用户有一批文件(比如1000个)要上传到OSS(或从OSS下载,或从OSS拷贝到OSS,下同),当执行批量上传的过程中出现失败(比如在上传第601个文件时失败)。
server { listen *:80; server_name www.shopym.com *.shopym.com shopym.com; root /var/www/html; if ($http_host != “www.shopym.com”) { rewrite ^ http://www.shopym.com$request_uri permanent; } index index.php index.html; location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { allow all; log_not_found off; access_log off; } # Deny all for .htaccess, .htpasswd, .DS_Store (Mac). location ~ /\. { deny all; access_log off; log_not_found off; } rewrite ^/api/?(.*)$ /webservice/dispatcher.php?url=$1 last; rewrite ^/([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$1$2$3.jpg last; rewrite ^/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$1$2$3$4.jpg last; rewrite ^/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$1$2$3$4$5.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg last; rewrite ^/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg last; rewrite ^/c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$…
2016-03-28 发布 一个结合crontab定时推送github或coding库小玩意 gogit 2.5k 次阅读 · 读完需要 4 分钟 0 gogit 一个结合crontab定时推送github或coding库小玩意。 Github:https://github.com/HavenShen/gogit 注:运行此玩意的电脑,必须可运行python、已经配置好github和coding使用ssh key 无密钥通道git的ssh获取方式(推荐使用常年不关机的linux服务器)。 配置参考:Git配置安装使用教程操作github上传克隆数据 安装 1.克隆此库 git clone [email protected]:HavenShen/gogit.git 配置推送github同时提交coding库 1.在自己的github和coding中创建自己的新库 可取名如:mygogit取得自己的ssh地址 [email protected]:xxx/mygogit.git [email protected]:xxx/mygogit.git 2.修改及增加刚在github克隆的库目录下gogit/.git/config文件中的[remote “origin]”节点下url路径 url = [email protected]:xxx/mygogit.git url = [email protected]:xxx/mygogit.git 设置crontab定时任务 #编辑定时任务 crontab -e #键入每天下午3点执行命令 00 15 * * * python /home/gitfile/gogit/main.py #这边执行路径按自己的库目录而改动 #保存退出 :wq 搞定。 坐等任务每天帮你填补github空地,以及coding每天推送代码的 + 0.01码币 错误反馈 1.如果crontab不执行python脚本 在main.py文件头部加入 #!/usr/bin/python #对应python环境变量路径 把Python(main.py)的属性改为可执行 chmod a+x main.py 修改crontab crontab -e 00 15 * * * /home/gitfile/gogit/main.py License
vi /etc/nginx/conf.d/gzipfcgi.conf gzip on; gzip_min_length 1k; gzip_buffers 4 16k; gzip_http_version 1.1; gzip_comp_level 9; gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php; gzip_vary on; fastcgi_connect_timeout 1600; fastcgi_send_timeout 1600; fastcgi_read_timeout 1600; fastcgi_buffer_size 62k; fastcgi_buffers 4 62k; fastcgi_busy_buffers_size 62k; fastcgi_temp_file_write_size 62k; client_header_timeout 200s; #调大点 client_body_timeout 200s; #调大点 client_max_body_size 100m; #主要是这个参数,限制了上传文件大大小 client_body_buffer_size 256k;
Introduction Web scraping, often called web crawling or web spidering, or “programatically going over a collection of web pages and extracting data,” is a powerful tool for working with data on the web. With a web scraper, you can mine data about a set of products, get a large corpus of text or quantitative data to play around with, get data from a site without an official API, or just satisfy your own personal curiosity. In this tutorial, you’ll learn about the fundamentals of the scraping and spidering process as you explore a playful data set. We’ll use BrickSet, a community-run…
CentOS 7: Install Xfce for desktop environment This article will describe installing Xfce for desktop environment. Table of Contents 1. Install Xfce 2. Login to Xfce 3. Uninstall Xfce 1 Install Xfce The following command will install Xfce. $ sudo yum install -y epel-release $ sudo yum groupinstall -y “Xfce” $ sudo reboot 2 Login to Xfce You can select other desktop environment. Xfce is displayed. 3 Uninstall Xfce The following command will uninstall Xfce. $ sudo yum groupremove -y “Xfce” $ sudo yum remove -y libxfce4*
Connect your Magento account to Facebook Set up your Magento account to share your website events with Facebook in order gain more insights about how users are interacting with your business. By passing more events to Facebook, you can optimize the targeting and delivery of your Facebook ads to drive more business outcomes. To get started, go to the Magento page in Events Manager and follow our guided instructions that help you select the pixel you want to use and configure the Facebook Ads Extension in your account. You can also follow the instructions below. Go to Partner Integrations Download the Facebook…
https://www.facebook.com/business/help/922442221236307?helpref=search&sr=1&query=prestashop Connect your PrestaShop account to Facebook This integration is currently supported for PrestaShop versions 1.7 and 1.72. If you’re using PrestaShop for your website, you can set up a Facebook pixel without having to edit any of your website’s code. To get started, go to the PrestaShop page in Events Manager and follow our guided instructions that help you select the pixel you want to use and enter your pixel ID in your account. You can also follow the instructions below. Go to Partner Integrations Install Module Log in to your PrestaShop account and click Modules in the dashboard menu. Search for Official…
vi /etc/httpd/conf.d/hss5.conf <VirtualHost *:8080> ServerAdmin [email protected] DocumentRoot “/var/www/html” ServerName www.vpseo.com ServerAlias vpseo.com ErrorLog “logs/hss5.error.log” CustomLog “logs/ vpseo.common.log” common ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/$1 DirectoryIndex index.php index.html index.htm <Directory “/var/www/html”> Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted </Directory> </VirtualHost>
Prestashop Error 500 – Top 7 reasons, and how to fix them by Visakh S | 28 May , 2018 “500 Internal Server Error” or plain “Internal Server Error” is common in Prestashop installations. As a Server Administration Service provider, we’ve seen a wide range of reasons for this error in Nginx servers, Apache, IIS, LiteSpeed and more. It can range from Memory limits and File permission issues to obscrure Deadlock errors and Cache issues. Here’s what an HTTP error 500 looked like in a Prestashop hosted in Nginx. What is HTTP 500 Internal Sever Error? “500” is an universal error code used by…
Why is a WordPress Child Theme Important and How to Create It? Raushan JaiswalApril 28, 20175 Comments The awesome WordPress theme you are using on your website is great. But. Maybe you want to tweak the theme’s code a bit to suit your needs. Or, you want to learn how to customize a WordPress theme. Then (whether you want to add/remove even a single line of code), we at Rara Theme highly recommended everyone to use a WordPress Child Theme. Creating a child theme, believe us, will save you from more than just headaches in the future. A child theme,…
Tutorial—Set up multiple websites or stores with nginx Set up multiple websites with nginx https://devdocs.magento.com/guides/v2.0/config-guide/multi-site/ms_nginx.html This tutorial shows you step-by-step how to set up multiple websites using nginx . Assumptions We assume the following: You’re working on a development machine (laptop, virtual machine, and so on)Additional tasks might be required to deploy multiple websites in a hosted environment; check with your hosting provider for more information. Additional tasks are required to set up Magento Commerce (Cloud). After you complete the tasks discussed in this topic, see Set up multiple Magento Commerce (Cloud) websites or stores. You use one…
vi /etc/nginx/conf.d/ps1.7.conf server { listen 80; listen [::]:80; #Use this to enable IPv6 server_name www.example.com; root /var/www/prestashop17; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; index index.php index.html; location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { auth_basic off; allow all; log_not_found off; access_log off; } # Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac). location ~ /. { deny all; access_log off; log_not_found off; } ## # Gzip Settings ## gzip on; gzip_disable “msie6”; gzip_vary on; gzip_proxied any; gzip_comp_level 1; gzip_buffers 16 8k; gzip_http_version 1.0; gzip_types application/json text/css application/javascript; rewrite ^/[a-zA-Z][a-zA-Z]/(index.php.*)$ /$1 last; #Remove…
vi /etc/nginx/conf.d/prestashop.conf server { listen 80; #listen [::]:80; # Uncomment this line if you also want to enable IPv6 support server_name chinaredstone.net www.chinaredstone.net; root /var/www/html; # access_log /var/log/nginx/example.access.log; # error_log /var/log/nginx/example.error.log; index index.php index.html; # Letting nginx know which files to try when requesting a folder location = /favicon.ico { log_not_found off; # PrestaShop by default does not provide a favicon.ico access_log off; # Disable logging to prevent excessive log sizes } location = /robots.txt { auth_basic off; # Whatever happens, always let bots know about your policy allow all; log_not_found off; # Prevent excessive log size access_log off; }…
https://github.com/cuber/ngx_http_google_filter_module
server { listen 80 default backlog=2048; listen 443 ssl; # listen [::]:80 default_server; server_name www.vpseo.com vpseo.com; #这里是你自己的域名,如果没有,用本机ip root /www/vpseo.com; #这里是放wordpress的文件目录 index index.php index.html; ssl_certificate cert/hss5._com.crt; ssl_certificate_key cert/vpseo.com.key; ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; location / { try_files $uri $uri/ /index.php?$args; } # Add trailing slash to */wp-admin requests. rewrite /wp-admin$ $scheme://$host$uri/ permanent; location ~ .php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } }
Online learning may not appeal to everyone; however, the sheer number of online learning sites suggests that there is at least a strong interest in convenient, portable learning options — many of which are study-at-your-own-pace. For your reference, we’ve selected 50 top learning sites and loosely collected them into the categories you’ll find below. While this is not a rankings list by any means, (for that you should consult our ranking of the best online colleges) by using a variety of criteria, we’ve filtered in some of the most popular sites in each category. Featured Online Colleges Point UniversityFind Degrees…
Aw All Service https://connect20.magentocommerce.com/bd881e4f86db425994d9adc91b35a4fc/aheadworks+AW_All-2.3.8 Copy Blog https://connect20.magentocommerce.com/bd881e4f86db425994d9adc91b35a4fc/aheadworks+AW_Blog-1.4.0 Copy