magento2 – Magento 2 fresh install, admin page 404, css 404, js 404


I’ve got a fresh install of magento 2 on ubuntu 20.04. I followed the install with composer guide on the mangento site. The installer completed with no complaints.

When I head over to my url I get a very sparse looking page with no css or js. A look in the console and network tab shows that the page is trying to load a number of assets but non are found.

(HTTP/1.1 404 Not Found 58ms)

Looking into pub/static shows no directory called version1606418294 perhaps this is a clue?

In addition to this heading over to the admin URI that was generated on installation gives a 404 for the whole page.

Things I’ve Tried

changing mode between development / production / default

deploying static content and flushing the cache

php bin/magento setup:upgrade
bin/magento setup:static-content:deploy -f
bin/magento indexer:reindex
bin/magetno cache:flush

these are the current permissions

ls -la
total 1816
drwxrwxrwx 12 magento www-data   4096 Nov 26 19:16 .
drwxr-xr-x  4 root    root       4096 Nov 25 13:09 ..
-rwxrwxrwx  1 magento www-data    188 Nov 26 18:21 .editorconfig
-rwxrwxrwx  1 magento www-data  11281 Nov 26 19:16 .htaccess
-rwxrwxrwx  1 magento www-data  11382 Nov 26 18:21 .htaccess.sample
-rwxrwxrwx  1 magento www-data   1519 Nov 26 18:21 .php_cs.dist
-rwxrwxrwx  1 magento www-data    101 Nov 26 18:21 .user.ini
-rwxrwxrwx  1 magento www-data 766543 Nov 26 18:21
-rwxrwxrwx  1 magento www-data    650 Nov 26 18:21 COPYING.txt
-rwxrwxrwx  1 magento www-data   2994 Nov 26 18:21 Gruntfile.js.sample
-rwxrwxrwx  1 magento www-data  10364 Nov 26 18:21 LICENSE.txt
-rwxrwxrwx  1 magento www-data  10376 Nov 26 18:21 LICENSE_AFL.txt
-rwxrwxrwx  1 magento www-data    700 Nov 26 18:21
drwxrwxrwx  4 magento www-data   4096 Nov 26 18:21 app
-rwxrwxrwx  1 magento www-data    150 Nov 26 18:21 auth.json.sample
drwxrwxrwx  2 magento www-data   4096 Nov 26 18:21 bin
-rwxrwxrwx  1 magento www-data   2634 Sep 23 20:01 composer.json
-rwxrwxrwx  1 magento www-data 937015 Nov 26 18:21 composer.lock
drwxrwxrwx  4 magento www-data   4096 Nov 26 18:21 dev
drwxrwsrwx  3 magento www-data   4096 Nov 26 19:46 generated
-rwxrwxrwx  1 magento www-data     57 Nov 26 18:21 grunt-config.json.sample
-rwxrwxrwx  1 magento www-data   1370 Nov 26 18:21 index.php
drwxrwxrwx  4 magento www-data   4096 Nov 26 18:21 lib
-rwxrwxrwx  1 magento www-data   5842 Nov 26 18:21 nginx.conf.sample
-rwxrwxrwx  1 magento www-data   1416 Nov 26 18:21 package.json.sample
drwxrwxrwx  2 magento www-data   4096 Nov 26 18:21 phpserver
drwxrwxrwx  6 magento www-data   4096 Nov 26 18:21 pub
drwxrwxrwx  7 magento www-data   4096 Nov 26 18:21 setup
drwxrwsrwx  8 magento www-data   4096 Nov 26 19:46 var
drwxrwsrwx 84 magento www-data   4096 Nov 26 18:21 vendor

rewrite module is enabled

a2enmod rewrite 
Module rewrite already enabled

here’s a list of php modules while im at it

php -m
(PHP Modules)
Zend OPcache

(Zend Modules)
Zend OPcache

I read that changing .htacces in the projects root folder to affect symlinks might help, though neither of those two options seems to make any difference.

 13 ############################################                                                                      
 12 ## enable rewrites                                                                                                
 10 #    Options +FollowSymLinks                                                                                      
  9 Options +SymLinksIfOwnerMatch                                                                                     
  7     RewriteEngine on                                                                                             

added the following to the bottom of /etc/apache2/sites-available/000-default.conf as per magento’s trouble shooting instructions. here and here.

  4   <Directory /var/www/html>                                                                                       
  3           Options Indexes FollowSymLinks                                                                          
  2           AllowOverride all                                                                                       
  1           Require all granted                                                                                     
48    </Directory>    

I logged into mysql to see if magento is speaking to it but it seems to have made a whole bunch of tables so is probably ok?

mysql> show tables;
| Tables_in_magento                                    |
| admin_analytics_usage_version_log                    |
| admin_passwords                                      |
| admin_system_messages                                |
| admin_user                                           |
| admin_user_expiration                                |
| admin_user_session                                   |
| adminnotification_inbox     
| wishlist                                             |
| wishlist_item                                        |
| wishlist_item_option                                 |
| yotpo_order_status_history                           |
| yotpo_rich_snippets                                  |
| yotpo_sync                                           |
404 rows in set (0.02 sec)

I’m pretty much out of ideas, any insight or direction would be greatly appreciated.

I upgraded from 14.04 to 16.04 (do-release-upgrade) with mysql version held. When trying to upgrade to 18.04, please install updates

I was able to upgrade using do-release-upgrade from 14.04 to 16.04, while holding mysql version. When I try to upgrade to 18.04 I get error to install updates for release before upgrading.
Is it possible to upgrade with mysql still on hold?

homebrew – How do I install p4v (previously p4merge) as my git difftool on macos catalina 10.15.3

Ive found these instructions for setting up p4merge as my git difftool (I’ve not been able to test these instructions):

brew cask install p4merge
git config --global diff.guitool p4mergetool
git config --global difftool.p4mergetool.cmd 
  "/Applications/ $LOCAL $REMOTE"

I’ve learnt that p4merge was renamed p4v. So I now have to do:

brew cask install p4v

but I’m not sure how this impacts the other commands given. Can anyone clarify how to setup p4merge as your difftool when using p4v? thx

proxy – Trying to Install two program and their respective d3d11.dll into games main exe folder

They bare the same name and file extension d3d11.dll .

In order for the game.exe to make use of Both programs ;
their contents and respective dlls “d3d11.dll ” x2
have to be placed in the games.exe mainfolder.

Problem thus far how ?

They both create in game UI and options.
I can get one or the other installed . The goal and hope to have them both installed .

It was suggested I could use a side by side manifest ?
You place the files in sub directories and define an sxs manifest to allow the executable to locate them ( d3d11.dll . Maybe someone can explain that .

I tried wrappers and injections to no avail.
I dabbled in a proxy setting one of the programs offers ;
to proxy load one dll. But that ended in failure .

Install homebrew packages without homebrew?

Certain packages are needed for my application that, for whatever reason, are only available in homebrew.

And some of my customers are not happy with installing homebrew as a requirement.

I went digging and learnt about “bottles”, which are pre-built binaries that are used by homebrew to install an app.

But when I tried manually downloading one of these binaries and executing it, I got “cannot be opened” error and it got deleted.

Question is, how do I use the binary? Should I sign/notarize it? Is there an alternative way? How does homebrew execute them when these are not signed?

php – Custom Plugin: How to Include Install Buttons of other 3rd Party Plugins?

My employer has over a dozen WP sites, and we keep creating more. I decided to develop a plugin with all of the functions, etc. that we use across all the sites. We also use 3rd party plugins (such as Gravity Forms) on pretty much all of the sites. I would like to add a section on my settings page that detects if these 3rd party plugins are installed and if not, then include an “Install” button. I know how to detect the plugins, but I’m stuck at the install/activate part of the ordeal.

In my code below, I am trying to install the Fillable PDFs plugin from the settings page. The paid plugin zip file is on our main server. Other plugins I can get the zip file links directly from I found the functions code online, but all I’m getting is a fatal error.

On my settings page:

<table class="form-table">
    <tr valign="top">
        <th scope="row">Fillable PDFs</th>
        $fpdf_plugin_slug = 'forgravity-fillablepdfs/fillablepdfs.php';
        $fpdf_zip_url = '';
        if ( !is_plugin_active( $fpdf_plugin_slug ) ) {
            echo '<span class="span_install_button"><form method="post">
                <input type="hidden" name="pluginSlug" value="'.$fpdf_plugin_slug.'">
                <input type="hidden" name="pluginZip" value="'.$fpdf_zip_url.'">
                <input type="submit" name="install_plugin" class="btn" value="Install Plugin" />
        } else {
            echo 'Installed';
        } ?>

In my functions:

if ( isset($_POST("install_plugin"))) {
    add_action( 'init', 'eri_install_plugin');
function eri_install_plugin($plugin_slug, $plugin_zip) {
  $plugin_slug = $_POST('pluginSlug');
  $plugin_zip = $_POST('pluginZip');  
  echo 'Starting ...<br><br>';
  echo 'Check if new plugin is already installed - ';
  if ( is_plugin_installed( $plugin_slug ) ) {
    $installed = true;
  } else {
    echo 'it's not installed. Installing.';
    $installed = install_plugin( $plugin_zip );
  if ( !is_wp_error( $installed ) && $installed ) {
    echo 'Activating new plugin.';
    $activate = activate_plugin( $plugin_slug );
    if ( is_null($activate) ) {
      echo '<br>Done! Everything went smooth.';
  } else {
    echo 'Could not install the new plugin.';
function is_plugin_installed( $slug ) {
  if ( ! function_exists( 'get_plugins' ) ) {
    require_once ABSPATH . 'wp-admin/includes/plugin.php';
  $all_plugins = get_plugins();
  if ( !empty( $all_plugins($slug) ) ) {
    return true;
  } else {
    return false;
function install_plugin( $plugin_zip ) {
  include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
  $upgrader = new Plugin_Upgrader();
  $installed = $upgrader->install( $plugin_zip );
  return $installed;

partitioning – Procedure: How to create mirror RAID via ZFS on a fresh install of Ubuntu 20.10?

I have two 1TB disks. I ran a fresh install of Ubuntu 20.10 using encryption + ZFS, which installed to /dev/sda.

It created the following:

Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model:
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 917DAC1E-06D8-479B-AAC6-43FB711931BD

Device       Start        End    Sectors  Size Type
/dev/sda1     2048       4095       2048    1M BIOS boot
/dev/sda2     4096    1054719    1050624  513M EFI System
/dev/sda3  1054720    5249023    4194304    2G Linux swap
/dev/sda4  5249024    9443327    4194304    2G Solaris boot
/dev/sda5  9443328 1953525134 1944081807  927G Solaris root

Disk /dev/sdb: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model:
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 4176D618-E056-4905-BCFE-7ACA909134CD

Lsblck shows:

sda                          931.5G
├─sda1                           1M
├─sda2           vfat          513M /boot/efi
├─sda3           crypto_LUKS     2G
│ └─cryptoswap   swap            2G (SWAP)
├─sda4           zfs_member      2G                              bpool
└─sda5           zfs_member    927G                              rpool
sdb                          931.5G
sr0                           1024M
zd0              crypto_LUKS   500M
└─keystore-rpool ext4          484M /run/keystore/rpool          keystore-rpool

Is there a way to turn /dev/sdb into a proper mirror of /dev/sda using RAIDZ with ZFS? I’ve found some notes and tutorials that seem to give parts (like this askubuntu question, but I think it would already need partitions configured and wouldn’t be a drive mirror, or maybe having a full drive mirror configuration wouldn’t be possible with this ZFS+Encryption fresh installation?

macbook pro – Cannot enable FileVault (options greyed out) on macOS Catalina Clean install

I just did a clean install off off my MacBook Pro by dd’ing the hard drive, and then installing macOS Catalina from a bootable USB. I formatted the internal ssd using apple filesystem and installed successfully. Now, when trying to enable FileVault via System Preferences>Security & Privacy>FileVault>Turn on FileVault, I get a pop up with both the “Set up my iCloud account to reset my password” and “Create a recovery key and do not use my iCloud account” options greyed out. The “Back” and “Continue” buttons are also greyed out. The only button that is not greyed out is the “Cancel” button. So essentially, I can not enable FileVault via the system preferences pane. See screenshot below.

What in the world is happening, and how do I fix this so that I can enable fileVault via the system preferences pane again?

Cannot Enable FileVault from System Preferences macOS Catalina

python – How do I change the pip install location on MacOS?

I have downloaded both Anaconda3 and Python 3.9 on my MacBook. However, when I use the command pip install, pip downloads the packages here:


Because of this, I cannot download any packages that I can use in Jupyter Notebook. Is there any way to change the pip install location or change Jupyter’s Python distribution?

Thank you!

flutter pod install is not installing anything

my podfile looks like this

        # Uncomment the next line to define a global platform for your project
    # platform :ios, '9.0'

    target 'Runner' do
        # Comment the next line if you don't want to use dynamic frameworks
        # Pods for Runner

If I run pod install, it shows

        MDs-MacBook-Pro:ios mdzainalabedin$ pod install
    Analyzing dependencies
    Downloading dependencies
    Generating Pods project
    Integrating client project
    Pod installation complete! There are 0 dependencies from the Podfile and 0 total pods installed.

    (!) The Podfile does not contain any dependencies.

    (!) Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See ``.

    (!) CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).

    (!) Your project does not explicitly specify the CocoaPods master specs repo. Since CDN is now used as the default, you may safely remove it from your repos directory via `pod repo remove master`. To suppress this warning please add `warn_for_unused_master_specs_repo => false` to your Podfile.
    MDs-MacBook-Pro:ios mdzainalabedin$ 


Any idea how can I generate one?