Skip to content

Instantly share code, notes, and snippets.

View csinghdev's full-sized avatar
👨‍💻

Chandresh csinghdev

👨‍💻
View GitHub Profile
#!/bin/bash
# Execute the commands below to install composer on ubuntu
# Update brew
brew update
# Install latest version of php
brew install php
# Start php service
@csinghdev
csinghdev / apache_virtualhost_example.conf
Created March 14, 2020 11:52
Apache virtual host conf file
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/example
ErrorLog ${APACHE_LOG_DIR}/example.com-error.log
CustomLog ${APACHE_LOG_DIR}/example.com-access.log combined
<Directory /var/www/example/>
@csinghdev
csinghdev / install_composer_on_ubuntu.sh
Created March 14, 2020 11:11
Installing composer on Ubuntu
#!/bin/bash
# Execute the commands below to install composer on ubuntu
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
chmod +x /usr/local/bin/composer