Help fixing apache error

Status
This thread has been locked.

RazorStatic

Well-Known Member
Premium
Feedback score
4
Posts
223
Reactions
57
Resources
0
Hello fellow friends and members of MCM! I am in need of help to fix a apache error on my Centos 6.8 VPS Server. I installed apache via "sudo yum install httpd" then did "sudo service httpd start" and it didn't show any errors but when i try to connect to it on my browser it doesnt let me connect to it. If you know how to fix it add me on skype please :) angel.perez284.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

to_er

Feedback score
21
Posts
159
Reactions
93
Resources
0
Post the output of
Code:
service httpd status
Seems more of a firewall misconfiguration though.
 

Latouth

Troubled on Linux? Ask me!
Supreme
Feedback score
18
Posts
1,213
Reactions
504
Resources
0
If you still need this done,
add me on skype 'latouth'
 

rippr

Software Engineer
Premium
Feedback score
4
Posts
303
Reactions
117
Resources
0
Hello fellow friends and members of MCM! I am in need of help to fix a apache error on my Centos 6.8 VPS Server. I installed apache via "sudo yum install httpd" then did "sudo service httpd start" and it didn't show any errors but when i try to connect to it on my browser it doesnt let me connect to it. If you know how to fix it add me on skype please :) angel.perez284.
I noticed you used CentOS; this is a common problem. CentOS by default disables connections to port 80.

Copy-paste the following file: https://ghostbin.com/paste/rf9vo

Name it test or whatever. Then run: iptables-restore < test

Then run: /sbin/service iptables save

Should be fixed. If that doesn't fix it, tell me.
 

RazorStatic

Well-Known Member
Premium
Feedback score
4
Posts
223
Reactions
57
Resources
0
I noticed you used CentOS; this is a common problem. CentOS by default disables connections to port 80.

Copy-paste the following file: https://ghostbin.com/paste/rf9vo

Name it test or whatever. Then run: iptables-restore < test

Then run: /sbin/service iptables save

Should be fixed. If that doesn't fix it, tell me.
Where do I copy this file too?
 

rippr

Software Engineer
Premium
Feedback score
4
Posts
303
Reactions
117
Resources
0

rippr

Software Engineer
Premium
Feedback score
4
Posts
303
Reactions
117
Resources
0

rippr

Software Engineer
Premium
Feedback score
4
Posts
303
Reactions
117
Resources
0
test.(txt, conf..)
Just C/P the code and make a file named test or w.e. .txt if u want, it doesn't matter. Just follow what I said above.
 

RazorStatic

Well-Known Member
Premium
Feedback score
4
Posts
223
Reactions
57
Resources
0
Just C/P the code and make a file named test or w.e. .txt if u want, it doesn't matter. Just follow what I said above.

[root@customer ~]# iptables-restore < test
-bash: test: No such file or directory
[root@customer ~]# ls
anaconda-ks.cfg install.log.syslog multicraft.tar.gz
install.log multicraft test.txt
[root@customer ~]# iptables-restore < test.txt
'ptables-restore v1.4.7: iptables-restore: unable to initialize table 'filter

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.[DOUBLEPOST=1479344469][/DOUBLEPOST]
Just C/P the code and make a file named test or w.e. .txt if u want, it doesn't matter. Just follow what I said above.
got a skype i can add you on?
 

rippr

Software Engineer
Premium
Feedback score
4
Posts
303
Reactions
117
Resources
0
[root@customer ~]# iptables-restore < test
-bash: test: No such file or directory
[root@customer ~]# ls
anaconda-ks.cfg install.log.syslog multicraft.tar.gz
install.log multicraft test.txt
[root@customer ~]# iptables-restore < test.txt
'ptables-restore v1.4.7: iptables-restore: unable to initialize table 'filter

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.[DOUBLEPOST=1479344469][/DOUBLEPOST]
got a skype i can add you on?
[email protected]
 

to_er

Feedback score
21
Posts
159
Reactions
93
Resources
0
Just open the port. Just run :
sudo iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT

And then,
sudo service iptables save
 

rippr

Software Engineer
Premium
Feedback score
4
Posts
303
Reactions
117
Resources
0
Just open the port. Just run :
sudo iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT

And then,
sudo service iptables save
Yeah, I tried to get access to his server to help him out but he feels I'm going to rm -rf / lol
 
Status
This thread has been locked.
Top