This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------PHP versions---------------- | |
sudo apt show php | |
OR | |
sudo apt show php -a | |
//install default PHP version | |
sudo apt install php | |
First start by adding Ondřej Surý PPA to install different versions of PHP – PHP 5.6, PHP 7.0 and PHP 7.1 on Ubuntu system. | |
sudo apt install python-software-properties | |
sudo add-apt-repository ppa:ondrej/php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpkg-reconfigure tzdata |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1: create a file named "myservice.service" in /etc/systemd/system | |
Step 2: Copy the below code to the file. Replace the path/to/my/script with yours. | |
[Unit] | |
Description=My Service | |
After=network.target | |
# Mention the required service after which our myservice needs to start | |
After=mysql.service | |
Requires=mysql.service |