Menu
  • Home
  • Recent Posts
  • My Skills
  • My Projects
    • All Projects
  • My Blog
    • PHP MySQL Development
    • WordPress Development
    • Magento Development
    • Laravel Development
    • System Administration
  • Contact

Month: July 2017

Create WordPress User with Admin Privileges in MySQL

July 23, 2017
| No Comments
| PHP MySQL Development, WordPress Development

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…

Read More »

Posted in PHP MySQL Development, WordPress Development

Disable .htaccess on Apache

July 17, 2017
| No Comments
| System Administration

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…

Read More »

Posted in System Administration

Running Node.js App with Supervisord on Homestead

July 3, 2017
| No Comments
| System Administration

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…

Read More »

Posted in System Administration

Archives

  • October 2020
  • September 2020
  • August 2020
  • May 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • December 2018
  • November 2018
  • September 2018
  • August 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • November 2017
  • October 2017
  • September 2017
  • July 2017
  • June 2017
  • December 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016

Meta

  • Log in
Back to Main Page

© 2020 Alex Rusin. All Rights Reserved.