CentOS folder permission ftp user and apache on GoogleCloud
You can use access control lists commands. First set owner apache to the directory sudo chown -R apache:apache /var/www/public_html/test Now set acl so that ftp user can upload folders. FOR USER sudo setfacl -R -m u:YourUserNameHere:rwx /var/www/public_html/test FOR GROUP sudo setfacl -R -m g:UsersGroupNameHere:rwx /var/www/public_html/test
Most Popular Screen Resolutions: Designing for Desktop and all mobile devices
Most Popular Screen Resolutions Knowing that it is key to accommodate for the many different devices when designing websites, we have compiled a list of the most up-to-date devices with their respective pixel sizes and viewports below. We have also put this information into a handy downloadable PDF. Desktops & Laptops 1024×768 pixels or higher Apple Products Pixel Size Viewport iPhone 7 Plus 1080 x 1920 414 x 736 7 750 x 1334 375 x 667 6 Plus/6S Plus 1080 x 1920 414 x 736…
file_get_contents in php7
If file_get_contents($url) generates error “Warning: file_get_contents(…) failed to open stream: Invalid argument in”, use this curl function below.
Configure VHost on Windows with Bitnami
1) Configure VHost of windows first by editing this file C:\Windows\System32\drivers\etc\hosts 127.0.0.1 localhost 127.0.0.2 test1.yourdomain.com 127.0.0.3 test2.yourdomain.com 2) Configure Bitnami VHost by editing this file C:\Bitnami\wampstack-7.0.16-1\apache2\conf\bitnami\bitnami-apps-vhosts.conf Add as many virtualhosts as you need. VirtualHost test1.yourdomain.com:8070 DocumentRoot “C:/Users/you/Documents/_www_php70/ws” Directory “C:/Users/you/Documents/_www_php70/ws” Options Indexes FollowSymLinks AllowOverride All IfVersion < 2.3 Order allow,deny Allow from all /IfVersion IfVersion >= 2.3 Require all granted /IfVersion # Error Documents ErrorDocument 503 /503.html # Bitnami applications installed with a prefix URL (default) Include “C:/Bitnami/wampstack-7.0.16-1/apache2/conf/bitnami/bitnami-apps-prefix.conf” /VirtualHost
Send Email Plugin in WordPress using the Gmail SMTP Server
First you need to install and activate the WP Mail SMTP plugin. Upon activation, you need to visit Settings » Email page to configure the plugin settings. Here is how to fill out the plugin settings: From Email: Enter your Gmail address. From Name: Enter your name or title of your website. Mailer: Select ‘Send all WordPress emails via SMTP. Return Path: Check the box to use the From email as return path. SMTP Host: smtp.gmail.com SMTP Port: 465 Encryption: Use SSL encryption Authentication: Yes,…