Skip to content

Alex Rusin Blog

  • BlogExpand
    • AWS
    • Javascript Development
    • Remix
    • PHP MySQL Development
    • Laravel
    • System Administration
    • WordPress Development
    • Magento
    • Uncategorized
  • My Projects
Alex Rusin Blog
  • Laravel

    Using Local and Public Disks

    Byalexrusin February 25, 2018February 25, 2018

    Having vagrant run on Windows host machine may cause some problems with symbolic links. After trying to make symbolic links to work and failing, I decided to use public disk in development and local disk in production. php artisan storage:link makes symbolic link from “public/storage” to “storage/app/public”.  When developing on windows-vagrant this command will not work properly,…

    Read More Using Local and Public DisksContinue

  • Laravel | PHP MySQL Development | System Administration

    Laravel Jenkins CI

    Byalexrusin November 26, 2017

    This article covers installation of Jenkins on Ubuntu server and its usage to continuously integrate a Laravel application.  Besides LAMP/LEMP stack we need to install Java, Git, Composer, and Node to successfully use Jenkins. Before starting to install this software, let’s take care of miscellaneous  stuff. Miscellaneous (can skip this). Create mysql user and database….

    Read More Laravel Jenkins CIContinue

  • Laravel

    Laravel: Getting Authenticated User Early in the Controller

    Byalexrusin October 31, 2017April 29, 2020

    Sometimes there is a need to access the authenticated user in your controller.  If you do it in several methods in your controller, it makes sense to put the code in the constructor.  Unfortunately, the code below will not work. This happens because the request is not injected into the controller at the time of…

    Read More Laravel: Getting Authenticated User Early in the ControllerContinue

  • Laravel | PHP MySQL Development

    Composer: Path Repositories

    Byalexrusin October 30, 2017July 15, 2019

    When working on a php package it is inconvenient to push the package to github (or other repository) and then wait for the package to update using composer update.  For package development, composer has such feature as path repositories.  Let’s imagine we have a two folders on the same level:  my-app and  package.   my-app is an app — a test…

    Read More Composer: Path RepositoriesContinue

  • Laravel | System Administration

    Adding Virtual Box Bridged Network Adapter to Laravel Homestead

    Byalexrusin September 16, 2017September 16, 2017

    Vagrant allows you to configure bridged network adapter, so your vagrant(homestead) box can be seen on local network.  I order to make this possible by adding a line of code to homestear.rb script in scripts folder. I opted to add this line after the following code. if settings.has_key?(“networks”) settings[“networks”].each do |network| config.vm.network network[“type”], ip: network[“ip”], bridge: network[“bridge”]…

    Read More Adding Virtual Box Bridged Network Adapter to Laravel HomesteadContinue

  • Laravel | PHP MySQL Development

    Running Artisan Command as a Separate PHP Process in Laravel

    Byalexrusin September 9, 2017September 9, 2017

    In Laravel framework you can create commands and call them from php application.  One command can call another command, and another command, and so on.  But if an exception is thrown in one of the commands in this chain the whole chain breaks.  In order to avoid this problem and run each artisan command as…

    Read More Running Artisan Command as a Separate PHP Process in LaravelContinue

  • PHP MySQL Development | WordPress Development

    Create WordPress User with Admin Privileges in MySQL

    Byalexrusin July 23, 2017July 23, 2017

    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’);

    Read More Create WordPress User with Admin Privileges in MySQLContinue

  • System Administration

    Disable .htaccess on Apache

    Byalexrusin July 17, 2017July 17, 2017

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

    Read More Disable .htaccess on ApacheContinue

  • System Administration

    Running Node.js App with Supervisord on Homestead

    Byalexrusin July 3, 2017July 14, 2017

    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 Running Node.js App with Supervisord on HomesteadContinue

  • PHP MySQL Development

    Exporting/Importing MySQL database from/to Remote Server

    Byalexrusin June 20, 2017June 21, 2017

    Export database mysqldump -u dbuser -p databasename -h rds.amazonaws.com > backup.sql Import database mysql -u username -p -h rds.amazon.com databasename < backup.sql mysql –host=rds.amazonaws.com –user=dbuser –password=password databasename < backup.sql

    Read More Exporting/Importing MySQL database from/to Remote ServerContinue

Page navigation

Previous PagePrevious 1 … 8 9 10 11 12 13 Next PageNext

© 2025 Alex Rusin Blog - WordPress Theme by Kadence WP

  • Blog
    • AWS
    • Javascript Development
    • Remix
    • PHP MySQL Development
    • Laravel
    • System Administration
    • WordPress Development
    • Magento
    • Uncategorized
  • My Projects