Hello
Just ordered an unmanaged VPS for hosting 2 websites.
I'm really new a lot for linux and have few background.
I've been goggling and followed some tutorials from howtoforge.com but really was not able to setup everything the right way.
I will need to install:
- apache - php - mysql - phpmyadmin - mail server - free control panel - securing the whole thing as much as possible.
I understand that there is no one to go through the whole thing with me step by step, but if you know any good books or detailed tutorials that would awesome.
Thanks
Mohamed GadAllah

Dani AI

Generated

A few important updates and a short, practical route forward. The CentOS 6 line referenced in the thread reached end-of-life on November 30, 2020 and its active mirrors were archived; running an internet-facing VPS on an EOL distro means no more security patches and growing exposure to unpatched vulnerabilities. Migrating to a supported release is the safest choice. (blog.centos.org)

For a LAMP stack: Apache or Nginx, PHP and MariaDB/MySQL are standard choices. phpMyAdmin is not in the CentOS base repos but is provided via EPEL for the matching major release — enable the correct EPEL branch for the OS in use before trying to install it. If phpmyadmin cannot be found, confirm EPEL is enabled, remove any exclude= entries in yum.conf and refresh repo metadata before retrying. (docs.fedoraproject.org)

A concise hardening checklist that fills gaps in earlier replies from and : create a non-root sudo user and use SSH key auth, disable root password SSH logins, keep the system up to date, run a host firewall and fail2ban, enable SELinux (or AppArmor on Debian/Ubuntu), restrict phpMyAdmin to localhost or an admin-only subnet (or use an SSH tunnel), and use TLS everywhere. Running a production mailserver adds complexity (rDNS, SPF/DKIM/DMARC, IP reputation) — many opt for hosted SMTP providers for reliable deliverability. (virtualmin.com)

Control-panel options to simplify management include Virtualmin or ISPConfig (both support modern RHEL-compatible distros); VestaCP is lightweight but check current project activity before committing. For long-term stability, reinstall or migrate the VPS to a maintained distro such as Rocky Linux or AlmaLinux, or to an Ubuntu LTS, then build the stack or use a panel. If CentOS 6 must be kept short-term, follow the above hardening steps and plan migration immediately. (virtualmin.com)

Recommended Answers

All 9 Replies

basicly if you can get to a cli and type the commands each line is a seprate command

yum install httpd
yum install php
yum install mysql-server mysql
yum install phpmyadmin

each command will install something and you usally just have to say yes and it does the rest once everything is installed you have to start the services you do that with the following commands

service httpd start
service mysqld start

commented: thanks +0

yum install phpmyadmin

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base:
* extras:
* updates:
Setting up Install Process
No package phpmyadmin available.
Error: Nothing to do

Please advise

you dont have the repo run command

rpm -Uvh

then run

yum install phpmyadmin

sorry just noticed it got chopped off

rpm -Uvh 

you think centos is the way to go?

Hi brother no one has time to through the whole thing seting up VPS is actaully kinda dificult task you have to make sure you have got firewall and all that kind of stuff in place.
Drop me an email i will try n send you the instruction.

Ok, I'll drop you a one :)

i think centos is good because its a striped down version of linux for enterprise
i have two production servers running it and a test server

can you help me for setting up my vps as i can not found a clear tutorials for this issues and only ubuntu available and many reporting that centos is far better.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.