# [ /home/bit010/WorkingRam/www/html/ ] # if u20 setup php8 sudo apt install software-properties-common -y sudo add-apt-repository ppa:ondrej/php sudo apt update # sudo apt install php8.0 sudo apt install php8.0-cli php8.0-common php8.0-imap php8.0-redis php8.0-snmp php8.0-xml php8.0-gd sudo apt install apache2 sudo service apache2 restart sudo cp /etc/apache2/envvars /etc/apache2/envvars.org sudo sh -c "echo '# modify' >> /etc/apache2/envvars" sudo sh -c "echo 'export APACHE_RUN_USER=bit010' >> /etc/apache2/envvars" sudo sh -c "echo 'export APACHE_RUN_GROUP=bit010' >> /etc/apache2/envvars" cat /etc/apache2/envvars | tail -n 3 mkdir /home/bit010/WorkingRam/www cp -rfd /var/www /home/bit010/WorkingRam/ sudo mv /var/www/ /var/www.org sudo ln -s /home/bit010/WorkingRam/www /var/www echo "<?php phpinfo(); ?>" > /home/bit010/WorkingRam/www/html/phptest.php
sudo sh -c "echo '' >> /etc/apache2/apache2.conf" sudo sh -c "echo '# { # modify' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' <Directory /var/www>' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' Options FollowSymLinks' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' AllowOverride None' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' Require all granted' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' </Directory>' >> /etc/apache2/apache2.conf" sudo sh -c "echo '' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' <Directory /var/www/html/dir>' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' Options Indexes FollowSymLinks' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' AllowOverride None' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' Require all granted' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' </Directory>' >> /etc/apache2/apache2.conf" sudo sh -c "echo '# }' >> /etc/apache2/apache2.conf" cat /etc/apache2/apache2.conf | tail -n 20
wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/bionic/gitlab-ce_13.7.9-ce.0_amd64.deb/download.deb sudo apt-get install ./gitlab-ce_13.7.9-ce.0_amd64.deb gitlab-ctl stop sudo sh -c "echo \"external_url 'http://127.0.0.1:8088'\" >> /etc/gitlab/gitlab.rb" sudo cat /etc/gitlab/gitlab.rb | tail -n 3 sudo gitlab-ctl reconfigure gitlab-ctl start
gitlab-ctl stop sudo sh -c "echo '' >> /etc/gitlab/gitlab.rb" sudo sh -c "echo '# { # modify' >> /etc/gitlab/gitlab.rb" sudo sh -c "echo ' git_data_dirs({' >> /etc/gitlab/gitlab.rb" sudo sh -c "echo ' "default" => {' >> /etc/gitlab/gitlab.rb" sudo sh -c "echo ' "path" => "/home/bit010/WorkingRam/git-data"' >> /etc/gitlab/gitlab.rb" sudo sh -c "echo ' }' >> /etc/gitlab/gitlab.rb" sudo sh -c "echo ' })' >> /etc/gitlab/gitlab.rb" sudo sh -c "echo '# }' >> /etc/gitlab/gitlab.rb" sudo cat /etc/gitlab/gitlab.rb | tail -n 10 mkdir -p /home/bit010/WorkingRam/git-data sudo rsync -av /var/opt/gitlab/git-data/repositories /home/bit010/WorkingRam/git-data gitlab-ctl repositories gitlab-ctl start
sudo apt-get install vsftpd sudo sh -c "echo 'local_enable=YES' >> /etc/vsftpd.conf" sudo sh -c "echo 'write_enable=YES' >> /etc/vsftpd.conf" sudo sh -c "echo '#chroot_local_user=YES' >> /etc/vsftpd.conf" sudo sh -c "echo 'allow_writeable_chroot=YES' >> /etc/vsftpd.conf" sudo sh -c "echo 'chroot_list_enable=YES' >> /etc/vsftpd.conf" sudo sh -c "echo 'chroot_list_file=/etc/vsftpd.chroot_list' >> /etc/vsftpd.conf" sudo sh -c "echo 'local_root=/home/bit010/WorkingRam' >> /etc/vsftpd.conf" sudo sh -c "echo 'bit010' >> /etc/vsftpd.chroot_list" sudo systemctl restart vsftpd # IE:: ftp://192.168.31.82/
# ---------.---------.---------.---------.---------.---------.---------.---------.---------.--------- # [ HTTP ] # [ /home/bit010/WorkingRam/www/html/ ] # if u20 setup php8 sudo apt install software-properties-common -y sudo add-apt-repository ppa:ondrej/php sudo apt update # sudo apt install php8.0 sudo apt install php8.0-cli php8.0-common php8.0-imap php8.0-redis php8.0-snmp php8.0-xml php8.0-gd sudo apt install apache2 sudo service apache2 restart sudo cp /etc/apache2/envvars /etc/apache2/envvars.org sudo sh -c "echo '# modify' >> /etc/apache2/envvars" sudo sh -c "echo 'export APACHE_RUN_USER=bit010' >> /etc/apache2/envvars" sudo sh -c "echo 'export APACHE_RUN_GROUP=bit010' >> /etc/apache2/envvars" cat /etc/apache2/envvars | tail -n 3 mkdir /home/bit010/WorkingRam/www cp -rfd /var/www /home/bit010/WorkingRam/ sudo mv /var/www/ /var/www.org sudo ln -s /home/bit010/WorkingRam/www /var/www echo "<?php phpinfo(); ?>" > /home/bit010/WorkingRam/www/html/phptest.php # [ HTTP : DIR ] sudo sh -c "echo '' >> /etc/apache2/apache2.conf" sudo sh -c "echo '# { # modify' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' <Directory /var/www>' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' Options FollowSymLinks' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' AllowOverride None' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' Require all granted' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' </Directory>' >> /etc/apache2/apache2.conf" sudo sh -c "echo '' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' <Directory /var/www/html/dir>' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' Options Indexes FollowSymLinks' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' AllowOverride None' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' Require all granted' >> /etc/apache2/apache2.conf" sudo sh -c "echo ' </Directory>' >> /etc/apache2/apache2.conf" sudo sh -c "echo '# }' >> /etc/apache2/apache2.conf" cat /etc/apache2/apache2.conf | tail -n 20 # ---------.---------.---------.---------.---------.---------.---------.---------.---------.--------- # [ GITLAB ] wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/bionic/gitlab-ce_13.7.9-ce.0_amd64.deb/download.deb sudo apt-get install ./gitlab-ce_13.7.9-ce.0_amd64.deb sudo sh -c "echo \"external_url 'http://127.0.0.1:8088'\" >> /etc/gitlab/gitlab.rb" sudo cat /etc/gitlab/gitlab.rb | tail -n 3 sudo gitlab-ctl reconfigure # [ GITLAB : DATA] gitlab-ctl stop sudo sh -c "echo '' >> /etc/gitlab/gitlab.rb" sudo sh -c "echo '# { # modify' >> /etc/gitlab/gitlab.rb" sudo sh -c "echo ' git_data_dirs({' >> /etc/gitlab/gitlab.rb" sudo sh -c "echo ' "default" => {' >> /etc/gitlab/gitlab.rb" sudo sh -c "echo ' "path" => "/home/bit010/WorkingRam/git-data"' >> /etc/gitlab/gitlab.rb" sudo sh -c "echo ' }' >> /etc/gitlab/gitlab.rb" sudo sh -c "echo ' })' >> /etc/gitlab/gitlab.rb" sudo sh -c "echo '# }' >> /etc/gitlab/gitlab.rb" sudo cat /etc/gitlab/gitlab.rb | tail -n 10 mkdir -p /home/bit010/WorkingRam/git-data sudo rsync -av /var/opt/gitlab/git-data/repositories /home/bit010/WorkingRam/git-data gitlab-ctl repositories gitlab-ctl start # ---------.---------.---------.---------.---------.---------.---------.---------.---------.--------- # [ FTP ] sudo apt-get install vsftpd sudo sh -c "echo 'local_enable=YES' >> /etc/vsftpd.conf" sudo sh -c "echo 'write_enable=YES' >> /etc/vsftpd.conf" sudo sh -c "echo '#chroot_local_user=YES' >> /etc/vsftpd.conf" sudo sh -c "echo 'allow_writeable_chroot=YES' >> /etc/vsftpd.conf" sudo sh -c "echo 'chroot_list_enable=YES' >> /etc/vsftpd.conf" sudo sh -c "echo 'chroot_list_file=/etc/vsftpd.chroot_list' >> /etc/vsftpd.conf" sudo sh -c "echo 'local_root=/home/bit010/WorkingRam' >> /etc/vsftpd.conf" sudo sh -c "echo 'bit010' >> /etc/vsftpd.chroot_list" sudo systemctl restart vsftpd # IE:: ftp://192.168.31.82/