Advertisement
Guest User

oi

a guest
Apr 9th, 2019
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. LAMP
  2. sudo yum install httpd
  3. sudo service httpd start
  4. sudo yum install net-tools
  5. Ver IP externo do server
  6. ifconfig eth0 | grep inet
  7. SYI mariadb-server mariadb, yyy
  8. sudo service mariadb start
  9. sudo /usr/bin/mysql_secure_instalation
  10. SYI php php-mysql
  11. sudo chkconfig httpd on
  12. sudo chkconfig mariadb on
  13. Testando...
  14. sudo nano /var/www/html/test.php <php phpinfo();>
  15. sudo service httpd restart
  16.  
  17. PHPMYADMIN
  18. Ver situacao do httpd
  19. systemctl status/start/stop httpd(nao ligo nem nada, so info)
  20. yum install httpd -y
  21.  
  22. Trampa nos repositorio
  23. yum install epel-release
  24.  
  25. Ver versao do php
  26. yum install php56w php56w-opcache
  27. yum search phpmyadmin
  28. yum install phpmyadmin -y
  29.  
  30. Mecher na seguranca e enable phpmyadmin
  31. vi /etc/httpd/conf.d/phpMyAdmin.conf
  32.  
  33. Pra dar acesso publico:
  34. Trampa na tab <RequireAny>. Nessa tab, fica os ip que podem acessa.
  35. Comentar inuteis e add "Require all granted"line
  36. A tab <IfModule !mod_authz.c> conten alguns comandos "Allow from", comentalos# e add "Require all granted"line.
  37. Fazer isso em todos os blocos do file.
  38.  
  39. ---------
  40. systemctl start httpd - pra starta o daemon
  41. Precisa te uma senha no mariaDB, p ele usa
  42. mysql
  43. use anyTable;
  44. update user set password=PASSWORD("pass") where User='root';
  45. flush privileges;
  46.  
  47. Now you can asses this shit as http://publicaddr/phpmyadmin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement