All about a VPS
#1

Hello
I ask for information about VPS and recommendations.
I bought a VPS and I actually run a SA-MP server, Apache and MySQL, but the way that it runs actually I think that have a lot of security risks and also the versions are outdated. My OS is CentOS 5(What OS recommend me?) and I got a lot of problems trying to install the last updates of Phpmyadmin, so I'm using the version 2.11.11.3. All these are running as root user (there are problems about this?). My server connects to the database using root user and a password with all privileges and I don't remember but I changed some things to 'allow for all' in apache because it wasn't working. I have a forum and I'm not sure about the permissions. These are only applicable for what?, eg. if I have a folder with 7777(four 7 really I don't remember?) anyone can modify, put things and delete that folder? Because in the installation it says me that I must put folders with 7777 permissions to work the forum. I'm using Simple Machines forum
And I also ask for help for a book/tutorial about all these things I really want learn a lot about this and no only follow steps. I don't have any problem yet, but if someday anyone wants "hack" my site (probably never :P) I'm sure that I don't have the enough security.
Sorry if my english is bad.
Thank you guys!
Reply
#2

Hello,

I personally found Ubuntu 12.04 good for my business to run SAMP on however some plugins do work better on Centos 6. Also Ubuntu doesn't work with apache meaning it would just be a server. being on Centos 5 shouldn't make much of a differance as the code in the plugins will be the same or on a similar base code.

To set file permissions in linux use the chmod +x 777 FOLDER/FILENAME

Depending on how much your paying for the vps it actually might work out cheaper to RENT a server from a host as web hosting is relatively cheap ($3 a month) and hosting can be found from $0.07 to $0.20 a slot. Bonus with this method is that you don't have to worry about security risks be cause with apache i know theres alot of things you can exploit without using things like MOD security on apache.

Kind Regards

Jack
Reply
#3

Quote:
Originally Posted by SimplyFragHosting
Посмотреть сообщение
Hello,

Also Ubuntu doesn't work with apache meaning it would just be a server.
Yes, it does...

Are you sure you should be running a hosting company if you think Apache doesn't work with Ubuntu?
Reply
#4

Quote:
Originally Posted by supernerd2000
Посмотреть сообщение
Yes, it does...

Are you sure you should be running a hosting company if you think Apache doesn't work with Ubuntu?
You have a point. LOL.
Reply
#5

Anything ran under root = bad. The root user should only be used for updating system settings, never to run any kind of services. Likewise, a 777 folder is nearly always a bad thing. There are certain directories that need to be writable by the outside world such as the "uploads" directory of a forum, but little else.

Quote:
Originally Posted by supernerd2000
Посмотреть сообщение
Yes, it does...

Are you sure you should be running a hosting company if you think Apache doesn't work with Ubuntu?
May have meant cPanel, which only works on CentOS, but as far as I know Apache works on any modern Linux distro. That said, I'd rather prefer Lighttpd or nginx over the bulky, memory hogging Apache for a small to medium-large server any day.
Reply
#6

Yes it has .
Reply
#7

It sounds interesting! I actually use normal Apache, so how can I switch to Lighttpd?
Anyway I'll search for information
And how about create a new normal user with superuser privileges,? Isn't the same that use root? Because I saw a tutorial about that and says:

Quote:

Now, we have a new user account with regular account privileges. However, we may sometimes need to do administrative tasks.

To avoid having to log out of our normal user and log back in as the root account, we can set up what is known as "super user" or root privileges for our normal account. This will allow our normal user to run commands with administrative privileges by putting the word sudo before each command.

To add these privileges to our new user, we need to add the new user to the "wheel" group. By default, on CentOS 7, users who belong to the "wheel" group are allowed to use the sudo command

As it says using this account I must type sudo before any command that I want sent
So how about this?
Reply
#8

My preferred setup for personal setups and setups for others is CentOS 6 for the OS, Nginx for the webserver, PHP-fpm for PHP, and MySQL server for databases.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)