Disable the current php version $ sudo a2dismod php7.0 Restart the apache $ sudo systemctl restart apache2 Enable the expect php version $ sudo a2enmod php7.1 ** If problem arise then the following two line $ sudo apt purge libapache2-mod-php7.1 libapache2-mod-php $ sudo apt install libapache2-mod-php7.1 libapache2-mod-php Enable the expect php version $ sudo a2enmod php7.1 Restart the apache $ sudo systemctl restart apache2 Check the php version $ php -v Finally set the php version $ sudo update-alternatives --set php /usr/bin/php7.1 Check the php version $ php -v Restart the apache2 $ sudo systemctl restart apache2
DB::select("SELECT db1.employees.name AS employee_name, db2.companies.name as company_name FROM db1.employees employees JOIN db2.companies companies ON companies.code = employees.company_code WHERE companies.country = 'Bangladesh' "); Note: Both database users and passwords have to be the same.
Make sure all files are owned by the Apache group and user. In Ubuntu it is the www-data group and user. - chown -R www-data:www-data /path/to/webserver/www Next enabled all members of the www-data group to read and write files. - chmod -R g+rw /path/to/webserver/www