WordPress: Fix permalink issue “Not Found” in Ubuntu

run command: nano  /etc/apache2/apache2.conf Change from “AllowOverride None” to “AllowOverride All” Save and close Now run: a2enmod rewrite Now run sudo service apache2 restart It should work now.

How to remove index.php from codeigniter in UBUNTU?

This tutorial will show you that how to remove index.php from codeigniter in UBUNTU or how to enable url rewriting. Step 1 : Add this in htaccess file <IfModule mod_rewrite.c> RewriteEngine On #RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L] </IfModule> Step 2 : Remove index.php in codeigniter config $config[‘index_page’] = ”; Step 3 […]

PHP: How to run / execute a script in the background forever through SSH ?

You can execute a php script in the background forever by using SSH through PHP but for that you have to make sure first that SSH2 extension is available. PHP DOCS: http://www.php.net/manual/en/function.ssh2-exec.php $connection = ssh2_connect(‘shell.example.com’, 22); ssh2_auth_password($connection, ‘username’, ‘password’); /* if you want to execute script from a different directory then use commands in same line […]

CentOS: how to execute a php file with different php version than the php version of OS

To execute a php file with different php version than the version installed on the main php of your Server follow this: You should know that where is that php version located so that you can add the path. In my case I want to use PHP 7 that is installed in the plesk hosting […]