Fix: FreeNAS Samba/CIFS not starting after reimported volume – “Service cannot be started”

Had a lot of issues when importing a ZFS  volume after a complete OS reinstall. CIFS wouldn’t start giving an error “Service cannot be started”. This was due to the Smb configuration being stored on the mnt volume and since it doesn’t have permissions, FreeNAS can’t load the smb.conf file nor start the service.

Continue reading “Fix: FreeNAS Samba/CIFS not starting after reimported volume – “Service cannot be started””

Update WordPress without FTP

I tried updating WordPress using FTP but that came with a lot of issues: creating users, giving permissions to the directory, installing proftp for the jail. But WordPress kept giving me an error message There was an error connecting to the server. 

To fix this, edit the wp-config.php file to have this define marker:

define('FS_METHOD','direct');

You can add this right before the part where you define the database credentials.