|

Create WordPress User with Admin Privileges in MySQL

INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`) VALUES (’admin’, MD5(’password’), ‘User Admin’, ‘user@admin.com’, ‘0’);   INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, (SELECT MAX(id) FROM wp_users), ‘wp_capabilities’, ‘a:1:{s:13:"administrator";s:1:"1";}’);   INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, (SELECT MAX(id) FROM wp_users), ‘wp_user_level’, ’10’);INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`) VALUES…

Disable .htaccess on Apache

It is possible to disable .htaccess files while using mod_rewrite in virtual host’s configuration file. <Directory /home/vagrant/blog/public> Options FollowSymLinks AllowOverride None Require all granted <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> </Directory> <Directory /home/vagrant/blog/public> Options FollowSymLinks AllowOverride None Require all granted…

Running Node.js App with Supervisord on Homestead

Earlier I covered how to continuously run Node.js app with Forever.  In this article I will explain how to run Node.js app with Supervisord.  Since Homestead already has Supervisord installed, we will use it. First, let’s create a simple node application.  Edit after.sh script in Homestead installation to contain the following code: #!/bin/sh cd /var/www…

Westcomfort

Westcomfort

Westcomfort is a responsive WordPress theme for a private construction company. It has custom post type Projects that can be used to demonstrate company’s architectural solutions.  Front page has a slider that showcases custom posts.  The slider is replaced by custom post index page on devices with smaller screens.  The theme also includes social media…