command to install php5.4 in ubuntu 18.04
sudo apt update
sudo apt install php7.4
sudo apt install php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl -y$ sudo add-apt-repository ppa:ondrej/phpsudo apt update
sudo apt install php php-cli php-fpm php-json php-pdo php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath
$ sudo update-alternatives --config php
or
$ sudo a2enmod php7.1(version)
Also in PHP:
- cache clear in cpde php laravel
- PHP debug console print
- cache laravel docs
- ERROR: Module mpm_event is enabled - cannot proceed due to conflicts. It needs to be disabled first! Considering conflict mpm_worker for mpm_prefork: ERROR: Could not enable dependency mpm_prefork for php7.2, aborting
- Woocommerce custom Flat Rate charges (by ID) Function
- count length string php
- fetch today data in php
- encode and decode data in php
- Call to a member function diffForHumans() on string in
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 126976 bytes) in
- convert uppercase in php
- datetime::timeformat php
- create table seeder laravel
- How to check beautify json result using php
- PHP Numbers
- How to handle max time of execution
- display_errors php.ini
- filer validation in laravel
- blob image to base64 php
- /laravel-2020-07-27.log" could not be opened
- AWS HTTP error: Error creating resource: [message] fopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
- composer install in laravel project
- SET CURRENT DATE TIME IN PHP'
- codeigniter insert get id