Hello! I can't configure apache and phpmyadmin on VPS with CentOS 7 .

Installed as usual yum instal httpd phpmyadmin But when installing phpmyadmin there was not even an installer window with settings for which server, password, etc., it was just installed.

iptables:

 *filter -A INPUT -i lo -j ACCEPT -A INPUT -d 127.0.0.0/8 -j REJECT -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A OUTPUT -j ACCEPT -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT # SSH # -A INPUT -p tcp -m state --state NEW --dport 22 -j ACCEPT # dns server ports # -A INPUT -m state --state NEW -p udp --dport 53 -j ACCEPT -A INPUT -m state --state NEW -p tcp --dport 53 -j ACCEPT # game server # -A INPUT -p tcp -m state --state NEW --dport 7777 -j ACCEPT -A INPUT -p udp -m state --state NEW --dport 7777 -j ACCEPT # FTP # -A INPUT -p tcp -m state --state NEW --dport 21 -j ACCEPT -A INPUT -p udp -m state --state NEW --dport 21 -j ACCEPT # MYSQL # -A INPUT -s 37.59.233.93 -p tcp --dport 3306 -j ACCEPT -A INPUT -s 185.61.137.99 -p tcp --dport 3306 -j ACCEPT "iptables" 62L, 1749C 

Still does not work, I do not know what to do.

  • rules don't work? - Senior Pomidor
  • "Doesn't work anyway" - what doesn't work? You do not tell the doctor, "Doctor, it hurts me!"? Describe specifically - what is the problem? At what stage of performance of what action what error occurs? In general, the PMA configuration file is config.inc.php. There he is configured. If the file does not exist, then create it based on the file config.sample.inc.php. - MANK
  • At the stage when everything is successfully installed, all the necessary ports are open, services are running and nothing works. Namely, the transition to the IP or domain of the machine is just an error, the site is unavailable. - francoder
  • @francoder what error? 404? - Senior Pomidor
  • In general, this is because of iptables, disabling it all worked, iptables were hosted, I just don’t know if it helps us in DDoS attacks, or does the hoster have some other methods to reflect, and therefore did not touch iptables - francoder

0