Let us create a directory
sudo mkdir -p /var/www/html/ostechnix1.lan/public_html....<directory name>
directories are owned by root user. We need to change the ownership to the regular user.
sudo chown -R $USER:$USER /var/www/html
set read permissions to the Apache root directory i.e /var/www/html/
sudo chmod -R 755 /var/www/html/
to open file
sudo nano <filename with full path>
to generate key for GITHUB-to add your system to bitbucket
$ ssh-keygen
to collect software
sudo apt-get install <software_name>
eg
sudo apt-get install nodejs
sudo apt-update
To set up a framework(eg. laravel, ubuntu)
$sudo apt-get install npm
$sudo apt install composer
curl -sS https://getcomposer.org/installer | sudo php — –install-dir=/usr/local/bin –filename=composer
sudo apt install curl
$npm install// to install from packages folder in a project--based on package.json
$composer install// to install into a project vendor folder--based on composer.json
$sudo apt-get install nodejs
To convert eml to jpeg (munpack)
munpack ForwardedMessage7.eml
-----------------------------------------------------
check php version
---------------------------------------------------
sudo php -v
sudo composer
sudo mysql -V
------------------------------------------------
while removing windows from computer
------------------------------------------
after deleting the partition
sudo update-grub
------------------------------------------------------
Install PHP
-----------------------------------------------------
sudo apt update
sudo apt -y install php7.4
sudo
apt install php php-cli php-fpm php-json php-common php-mysql php-zip
php-gd php-mbstring php-curl php-xml php-pear php-bcmath
sudo apt-get install -y php7.3-{cli,fpm,json,common,bcmath,bz2,intl,gd,mbstring,zip,curl,xml,pear}
-------------------------------------------------
TEST
sudo nano /var/www/html/info.php
WRITE
<?php
phpinfo();
?>
http://your_server_ip/info.php
-------------------------------------
delete php
------------------------
sudo apt-get purge php7.*
$ sudo apt-get autoclean
$ sudo apt-get autoremove
FIND AND KILL THE RUNNING PROCESS
ps aux | grep -i apt
sudo kill <process_id>
No comments:
Post a Comment