Linux command



//delete virtualmin process
#top
#kill -9 pid


//laravel permission
chown -R solfinder:solfinder public_html
cd public_html 
chmod -R ug+rwx storage bootstrap/cache
chmod -R 775 storage/

chown -R solfinder .
chmod -R ug+rwx storage bootstrap/cache

kalau error upload https
php artisan livewire:publish --assets

php artisan cache:clear 
chmod -R 775 storage/
composer dump-autoload
chown -R officeninja:officeninja .
chmod -R ug+rwx storage bootstrap/cache


chown -R fastnserious .
chown -R www-data .
chown -R admin .


a2ensite laravel_project.conf
a2dissite laravel_project.conf
a2ensite report.conf


running background
nohup php artisan serve --host=0.0.0.0 --port=8081 &

kill process
ps -ef | grep "billpayment"

kill 90212


#enable site nginx
ln -s /etc/nginx/sites-available/site /etc/nginx/sites-enabled/ 
#disable site nginx

nginx assing folder permission
#chown -R www-data .
#chown -R sys:sys.lppsa.gov.my .




install extension php
apt-get install php8.2 php8.2-fpm php8.2-ldap php8.2-sqlite3 php8.2-bcmath php8.2-bz2 php8.2-cli php8.2-common php8.2-curl php8.2-dev php8.2-gd php8.2-igbinary php8.2-imagick php8.2-imap php8.2-intl php8.2-mbstring php8.2-memcached php8.2-msgpack php8.2-mysql php8.2-opcache php8.2-pgsql php8.2-readline php8.2-redis php8.2-ssh2 php8.2-soap php8.2-tidy php8.2-xml php8.2-xmlrpc php8.2-zip -y

ln -s /etc/nginx/sites-available/travellist /etc/nginx/sites-enabled/

change php
#sudo update-alternatives --config php

#getent group sudo: Retrieves information about the sudo group.\

######add user to group
#usermod -aG root adunit


####### give group access read write execute
#chmod -R g+rwx /var/lib/docker
or
#chmod -R g+rwx .

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *