Soumitra Kayal

System Administrator | Wordpress Expert | Web Developer

Add Additional Mime Types in functions.php add_filter(‘upload_mimes’,’add_custom_mime_types’); function add_custom_mime_types($mimes){ return array_merge($mimes,array ( ‘eps’ => ‘application/eps’, ‘jpg’ => ‘image/jpg’, ‘png’ => ‘image/png’, ‘jpeg’ => ‘image/jpeg’, ‘pdf’ => ‘application/pdf’, ‘doc’ => ‘application/doc’, ‘docx’ => ‘application/vnd.openxmlformats-officedocument.wordprocessingml.document’, ‘gif’ => ‘image/gif’, )); }...

Read More

Log in to MySQL from terminal mysql -u root -p Run MySQL commands CREATE database_name; CREATE USER 'some_user'@'localhost' IDENTIFIED WITH mysql_native_password BY ‘your_password’; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, TRIGGER, REFERENCES ON database_name.* TO 'some_user'@'localhost'; Edit above privileges as needed  ...

Read More

Enable mod_rewrite Enable any Apache module using the a2enmod command. Command below on your Ubuntu server: $ sudo a2enmod rewrite In case the module is already enabled on your server, you will get an alert message. Restart Apache once you make any change to its configuration. Type the command below on a terminal window: $ sudo systemctl restart apache2 Server is now ready to accept rewrite rules.     ...

Read More