Raven1992 Posted June 19, 2014 Share Posted June 19, 2014 Hey MWG Raven here listen I got a problem i brought a nice vps classic from http://www.ovh.co.uk done the useal installed the os for it. started to install haproxy for a game that needs a bit more protecting everything ran fine it installed fine got the packages when i try and change the config of it to listen on my other vps that i got (not saying the ip or host for that) i get this message -bash: /etc/haproxy/haproxy.cfg: Permission denied I am logged in as root which technerly should give me full access. i am useing a program called putty for windows the CentOS is 6.5 any help would be good. I just want to get haproxy configured for my game before i release it to the public Quote Link to comment Share on other sites More sharing options...
wrux Posted June 20, 2014 Share Posted June 20, 2014 Permission denied typically means you need super user access. Just use sudo at the beginning of the command Quote Link to comment Share on other sites More sharing options...
Raven1992 Posted June 20, 2014 Author Share Posted June 20, 2014 Permission denied typically means you need super user access. Just use sudo at the beginning of the command i not useing ubuntu CentOS does not allow sudo in the command as it won't let me Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted June 20, 2014 Share Posted June 20, 2014 i not useing ubuntu CentOS does not allow sudo in the command as it won't let me Did you try su <command> Quote Link to comment Share on other sites More sharing options...
Raven1992 Posted June 20, 2014 Author Share Posted June 20, 2014 Did you try su <command> um i dunno if it let me cause it showing the su help page up instead Quote Link to comment Share on other sites More sharing options...
Dave Posted June 20, 2014 Share Posted June 20, 2014 What command are you running? Try chmod'ing /etc/haproxy/haproxy.cfg to 777 just to be certain. If you're trying to execute /etc/haproxy/haproxy.cfg you'll want to chmod +x it Quote Link to comment Share on other sites More sharing options...
Raven1992 Posted June 20, 2014 Author Share Posted June 20, 2014 What command are you running? Try chmod'ing /etc/haproxy/haproxy.cfg to 777 just to be certain. If you're trying to execute /etc/haproxy/haproxy.cfg you'll want to chmod +x it the rpm/etc/haproxy/haproxy.cfg command Quote Link to comment Share on other sites More sharing options...
Raven1992 Posted July 2, 2014 Author Share Posted July 2, 2014 oh btw the game i be releaseing is a habbo retro so anyone want to help me sort out commands to install haproxy now the time please Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted July 3, 2014 Share Posted July 3, 2014 What commands have you tried and what where the error messages that popped up? You can try: su vim /etc/haproxy/haproxy.cfg and see if that let's you in the file to edit it. Also, what would you need haproxy for? I know the big guys like SO and GitHub use it which can make sense but at this point in time do you think you may need it? Quote Link to comment Share on other sites More sharing options...
Raven1992 Posted July 3, 2014 Author Share Posted July 3, 2014 What commands have you tried and what where the error messages that popped up? You can try: su vim /etc/haproxy/haproxy.cfg and see if that let's you in the file to edit it. Also, what would you need haproxy for? I know the big guys like SO and GitHub use it which can make sense but at this point in time do you think you may need it? i tryed the su root /etc/haproxy/haproxy.cfg and got most lines saying command not found Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted July 3, 2014 Share Posted July 3, 2014 i tryed the su root /etc/haproxy/haproxy.cfg and got most lines saying command not found Are you logging in as root? If not then do: su vim /etc/haproxy/haproxy.cfg And see if that works. I'm not very good at shell myself ;) Quote Link to comment Share on other sites More sharing options...
Raven1992 Posted July 3, 2014 Author Share Posted July 3, 2014 Are you logging in as root? If not then do: su vim /etc/haproxy/haproxy.cfg And see if that works. I'm not very good at shell myself ;) su vim user does not exist and i am logged in root Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted July 3, 2014 Share Posted July 3, 2014 then just type in vim /etc/haproxy/haproxy.cfg Quote Link to comment Share on other sites More sharing options...
Raven1992 Posted July 3, 2014 Author Share Posted July 3, 2014 then just type in vim /etc/haproxy/haproxy.cfg and the reason y i need haproxy is so my habbo retro site does not come down by ddos attacks and vim /etc/haproxy/haproxy.cfg does work Quote Link to comment Share on other sites More sharing options...
HauntedDawg Posted July 3, 2014 Share Posted July 3, 2014 (edited) sudo /etc/haproxy/haproxy.cfg - will work, not sure why you used "su root /etc/haproxy/haproxy.cfg" -- edit -- After looking at haproxy setup, you might be on the wrong route: https://www.digitalocean.com/community/tutorials/how-to-use-haproxy-to-set-up-http-load-balancing-on-an-ubuntu-vps vi /etc/haproxy/haproxy.cfg - will allow you to edit it. Edited July 3, 2014 by HauntedDawg Quote Link to comment Share on other sites More sharing options...
Raven1992 Posted August 14, 2014 Author Share Posted August 14, 2014 thanks everyone for trying aprently the host i was with would let mme do it so i gone to digital ocean as recommended by sniko and i nearly done with my protection on there so thanks guys for the help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.