1. copy uchun
fayl turgan joydan: sudo mv file_name /var/www/
2. cd /var/www/
3. ls
4. ls -al
5.sudo chown -R azizbek:www-data iclub/
6.ls -al
7.sudo chmod -R 775 maktab/
8.ls -al
9.cd /etc/apache2/sites-available/
10.ls -al
12.sudo nano iclub.conf
13.ls -al
15.sudo a2ensite iclub.conf
16.sudo service apache2 restart
21.sudo nano /etc/hosts
laravel permission denied solve: chmod 777 -R maktab
phpmyadmin permission denied solve: sudo chown azizbek:azizbek config.inc.php
ServerName test.local
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/test/public
AllowOverride All
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
serverdagi bazadan backup olish
mysqldump -u [root_masalan] -p (baza_nomi) > db_backup.sql
serverdagi faylni localga yuklab olish
scp root@138.68.146.22:/fullpath-to-your-file ~/Downloads
ngrok http -host-header=local_site_name.com 80
Do'stlaringiz bilan baham: |