Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get update && sudo apt-get upgrade // update server (Y)
- sudo apt-get install nano // install text editor
- sudo apt-get install wget // install wget to download from internet
- ยด
- NODE.JS:
- sudo apt-get install nodejs //(Y)
- sudo apt-get install npm //(Y)
- node -v // test if its installed
- apt install nodejs-legacy // install it if its missing
- LAMP:
- sudo apt-get install apache2 // install apache2 (Y)
- sudo apache2ctl configtest //check if it works /syntax
- sudo nano /etc/apache2/apache2.conf // edit the file , add domain/IP at the very bottom ServerName 138.68.109.207 SAVE & EXIT
- sudo apache2ctl configtest //check again
- sudo systemctl restart apache2 // restart apache2
- sudo ufw app list //
- sudo ufw app info "Apache Full" // port open ?
- sudo ufw allow in "Apache Full" // updating the firewahll
- sudo apt-get install mysql-server // install mysql server (Y)
- sudo mysql_secure_installation // running cfg no, no, yes, yes, yes, yes
- sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql //install PHP (Y)
- sudo nano /etc/apache2/mods-enabled/dir.conf // prioritize the php > index.html // put index.php to front
- sudo systemctl restart apache2
- sudo systemctl status apache2 // status of it running = good STR // STRG + C
- apt-cache search php- | less // install PHP / Q to quit !
- sudo apt-get install php-cli //
- sudo nano /var/www/html/info.php // info page on html folder
- <?php
- phpinfo();
- sudo rm /var/www/html/info.php // rm=remove cp=copy
- phpmyadmin:
- sudo apt-get install phpmyadmin apache2-utils // (Y) space apache2 ENTER , YES
- sudo nano /etc/apache2/apache2.conf
- in the file at the bottom --> Include /etc/phpmyadmin/apache.conf
- sudo service apache2 restart // restart apache
- sudo nano /etc/phpmyadmin/apache.conf // create an access file
- <Directory /usr/share/phpmyadmin>
- Options FollowSymLinks
- DirectoryIndex index.php
- AllowOverride All <<<------------- add
- sudo nano /usr/share/phpmyadmin/.htaccess // create access file
- AuthType Basic
- AuthName "Restricted Files"
- AuthUserFile /etc/apache2/.phpmyadmin.htpasswd
- Require valid-user
- sudo htpasswd -c /etc/apache2/.phpmyadmin.htpasswd root
- sudo service apache2 restart
- LOGIN phpmyadmin
- create new DB
- import report.sql
- WinSCP ---> var/www/ <<---- put in the files from www/
- home ---> put in the ReportBotNew
- apt-get install unzip
- sudo chmod -R 777 /var/www/html
- sudo chmod -R 777 /home/reportnew
- npm instato update the lib or what ever
- mysql -u root -p
- use report;
- ALTER TABLE list AUTO_INCREMENT = 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement