# Download and Configure WordPress
wp core download
wp core config --dbhost=host.db --dbname=prefix_db --dbuser=username --dbpass=password
# Configure wp-config.php
chmod 644 wp-config.php
wp core install --url=yourwebsite.com --title="Your Blog Title" --admin_name=wordpress_admin --admin_password=4Long&Strong1 --admin_email=you@example.com
# Enable File Uploading
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' | |
apt-get update | |
apt-get install -y docker-engine | |
systemctl enable docker | |
usermod -aG docker ubuntu | |
curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)" | |
chmod +x /usr/local/bin/docker-compose | |
docker-compose -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
concat: { | |
options: { | |
// define a string to put between each file in the concatenated output | |
separator: '' | |
}, |
git clone https://github.com/PrestaShop/PrestaShop.git mystore
cd mystore
composer install
sudo nano /etc/php/7.0/apache2/php.ini
#add extension=simplexml.so
#add extension=zip.so
sudo service apache2 restart
sudo chown -R www-data:www-data ./
sudo find ./ -type d -exec chmod 755 {} \;
Find Line Around - 51:
if (is_callable($callable)) {
return call_user_func_array($callable, $request->params['pass']);
}
Replace:
if (is_callable($callable) && $request->params['action'] === 'activate' && is_array($request->params['pass'])) {
return call_user_func_array($callable, [join('/', $request->params['pass'])]);
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
This code snippet can be added to your functions.php file (without the <?php) | |
to add a query string to the login link emailed to the user upon registration | |
which when clicked will validate the user, log them in, and direct them to | |
the home page. | |
*/ | |
/** | |
* This first function is hooked to the 'user_register' action which fires |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
//usage: php envato-screenshots-downloader.php /path/to/save/screenshots http://url/to/screenshots/page | |
set_time_limit(0); | |
$dir = $argv[1]; | |
$source = $argv[2]; | |
print_r($argv); | |
mkdir ($dir); | |
$src = file_get_contents($source); | |
$pattern = '/src="(https:\/\/0.s3[a-zA-Z0-9_\-\.\/%]+)"/i'; |
Open terminal and move to your WordPress root and execute below commands:
sudo chown -R www-data:www-data ./
sudo find ./ -type d -exec chmod 755 {} \;
sudo find ./ -type f -exec chmod 644 {} \;
LIST OF FREE STOCK PHOTOS WEBSITES
https://pixabay.com/
https://www.pexels.com/
http://isorepublic.com/
http://morguefile.com/
https://unsplash.com/
http://magdeleine.co/
http://picography.co/
http://www.fotor.com/