Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted
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

Posted

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

Posted
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

  • 2 weeks later...
Posted

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?

Posted
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

Posted
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 ;)

Posted
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

Posted
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

  • 1 month later...
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...