GKGopal Kildoliyainglk.hashnode.dev·Oct 16, 2021 · 1 min readSwitch between Multiple PHP Version on UbuntuSwitch PHP command line sudo update-alternatives --set php /usr/bin/php7.4 sudo update-alternatives --set phar /usr/bin/phar7.4 sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.4 sudo update-alternatives --set phpize /usr/bin/phpize7.4 su...00
GKGopal Kildoliyainglk.hashnode.dev·May 13, 2021 · 1 min readMySQL - Create user, database and set permissionsLogin in MySQL mysql -u root -p Create the database: CREATE DATABASE mydbname; Create a new user (only with local access) and grant privileges to this user on the new database. If your stack ships MySQL v8.x: mysql> create user 'USER_NAME'@'localho...00
GKGopal Kildoliyainglk.hashnode.dev·May 13, 2021 · 1 min readVirtualHost examples in ApacheIf you are setting new website and using apache web server, you can use following example for creating Virtual hosts. Running several name-based web sites on a single IP address. # Ensure that Apache listens on port 80 Listen 80 <VirtualHost *:80> ...00