Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LAMP
- sudo yum install httpd
- sudo service httpd start
- sudo yum install net-tools
- Ver IP externo do server
- ifconfig eth0 | grep inet
- SYI mariadb-server mariadb, yyy
- sudo service mariadb start
- sudo /usr/bin/mysql_secure_instalation
- SYI php php-mysql
- sudo chkconfig httpd on
- sudo chkconfig mariadb on
- Testando...
- sudo nano /var/www/html/test.php <php phpinfo();>
- sudo service httpd restart
- PHPMYADMIN
- Ver situacao do httpd
- systemctl status/start/stop httpd(nao ligo nem nada, so info)
- yum install httpd -y
- Trampa nos repositorio
- yum install epel-release
- Ver versao do php
- yum install php56w php56w-opcache
- yum search phpmyadmin
- yum install phpmyadmin -y
- Mecher na seguranca e enable phpmyadmin
- vi /etc/httpd/conf.d/phpMyAdmin.conf
- Pra dar acesso publico:
- Trampa na tab <RequireAny>. Nessa tab, fica os ip que podem acessa.
- Comentar inuteis e add "Require all granted"line
- A tab <IfModule !mod_authz.c> conten alguns comandos "Allow from", comentalos# e add "Require all granted"line.
- Fazer isso em todos os blocos do file.
- ---------
- systemctl start httpd - pra starta o daemon
- Precisa te uma senha no mariaDB, p ele usa
- mysql
- use anyTable;
- update user set password=PASSWORD("pass") where User='root';
- flush privileges;
- Now you can asses this shit as http://publicaddr/phpmyadmin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement