Getting started:
Related tutorials:
| #!/bin/bash | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
| # | |
| WP_OWNER=www-data # <-- wordpress owner | |
| WP_GROUP=www-data # <-- wordpress group | |
| WP_ROOT=$1 # <-- wordpress root directory |
| <?php | |
| # Fill our vars and run on cli | |
| # $ php -f db-connect-test.php | |
| $dbname = 'name'; | |
| $dbuser = 'user'; | |
| $dbpass = 'pass'; | |
| $dbhost = 'host'; | |
| $connect = mysql_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'"); |
Getting started:
Related tutorials:
| //after installing mondodb | |
| //cd to the 'bin' directory of the mongodb folder | |
| //run the following commands in the cmd (run as administrator -for Windows) | |
| mongod --directoryperdb --dbpath C:\mongodb\data\db --logpath C:\mongodb\log\mongo.log --logappend --rest --install | |
| //to start the mongodb service | |
| net start MongoDB | |
| //to enter mongodb service (this is necessary to start the mongo service) | |
| mongo |
| var gulp = require('gulp'), | |
| sass = require('gulp-sass'), | |
| autoprefixer = require('gulp-autoprefixer'), | |
| jshint = require('gulp-jshint'), | |
| uglify = require('gulp-uglify'), | |
| imagemin = require('gulp-imagemin'), | |
| rename = require('gulp-rename'), | |
| concat = require('gulp-concat'), | |
| notify = require('gulp-notify'), | |
| cache = require('gulp-cache'), |
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
STEPS
Click on Help menu
Select Enter License
Then paste given KEY given at bottom
Finally click on Use License
| #!/bin/bash | |
| UP=$(pgrep mysql | wc -l); | |
| if [ "$UP" -ne 1 ]; | |
| then | |
| echo "MySQL is down."; | |
| sudo service mysql start | |
| else | |
| echo "All is well."; | |
| fi |
| server { | |
| listen 443 ssl http2; | |
| listen [::]:443 ssl http2; | |
| ssl_certificate /opt/homebrew/etc/nginx/ssl/{{host}}.crt; | |
| ssl_certificate_key /opt/homebrew/etc/nginx/ssl/{{host}}.key; | |
| ssl_ciphers HIGH:!aNULL:!MD5; | |
| # listen 80; | |
| server_name {{host}}; |