How to install php-curl in Ubuntu 16.04

 

how to check if curl is enabled or disabled

Create index.php
 echo 'Curl: ', function_exists('curl_version') ? 'Enabled' : 'Disabled';

Install Curl
In Ubuntu 16.04 default PHP version is 7.0, if you want to use different version then you need to install PHP package according to PHP version:

1.

    PHP 7 : sudo apt-get install php-curl
    PHP 5.6: sudo apt-get install php5.6-curl
    PHP 5.5: sudo apt-get install php5.5-curl

2.

sudo service apache2 restart

https://stackoverflow.com/questions/38800606/how-to-install-php-curl-in-ubuntu-16-04

https://stackoverflow.com/questions/13433946/how-to-check-if-curl-is-enabled-or-disabled

Enabling .htaccess file to rewrite path (not working)

1.

You have to go to /etc/apache2/apache2.conf.
You have to edit that one(you should have root permission).
Change directory text like this

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

2.

sudo a2enconf httpd

3.

Restart Apache2
sudo service apache2 restart

or

sudo service apache2 reload
Done!

Uninstall or Completely remove mysql from ubuntu Bionic Mint 19


Completely remove mysql from ubuntu steb by step :
  
 sudo apt-get remove --purge mysql*
 sudo apt-get purge mysql*
 sudo apt-get autoremove
 sudo apt-get autoclean
 sudo apt-get remove dbconfig-mysql
 sudo apt-get dist-upgrade
 sudo apt-get install mysql-server

mbstring is missing for phpmyadmin in ubuntu 16.04


If you want to use php 5.6 instead of php 7

1.

Install php 5.6 mbstring package:

sudo apt-get install php5.6-mbstring

2.

sudo phpenmod mcrypt
sudo phpenmod mbstring

3.

Restart apache:
sudo service apache2 restart

 Done! 

source : https://askubuntu.com/questions/772397/mbstring-is-missing-for-phpmyadmin-in-ubuntu-16-04

phpmyadmin “Not Found” after install on Apache, Ubuntu


phpmyadmin “Not Found” after install on Apache, Ubuntu

After installing phpmyadmin, it seems I should be able to access it at http://localhost/phpmyadmin but apache returns a Not Found error. Did this guide leave out a configuration step somewhere? I have already tried restarting the apache service. 


Run the following command in terminal:

sudo ln -s /usr/share/phpmyadmin /var/www/html/


#https://stackoverflow.com/questions/26891721/phpmyadmin-not-found-after-install-on-apache-ubuntu

Install PHP5 on Ubuntu 18.04

Install PHP5 on Ubuntu 18.04

You can install PHP5.6 from a PPA:

sudo add-apt-repository -y ppa:ondrej/php
sudo apt update
sudo apt install php5.6