Linux - Will be the death of me

A place For General Chit Chat Etc
User avatar
antus
Site Admin
Posts: 8237
Joined: Sat Feb 28, 2009 8:34 pm
cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Contact:

Re: Linux - Will be the death of me

Post by antus »

You can get a small self managed vps pretty cheap. This one (pcmhacking, and a couple of other sites) is about $110 per annum, and I just need to log in and execute "yum update" every so often to keep it patched and secure. Its Centos Linux (the free community build of Red Hat Enterprise Linux). You dont generally need much ram, cpu or storage, unless you have some special needs like hosting large files. I wound all the software settings down from default on this host to save ram and it copes with all the sites on it with room to spare. You can spin up a centos linux 7 environment for free. Just download the install iso and run it up at home in your choice of free VM, generally with bridged networking so it acts like just another machine on your lan. Changelog your own setup though as you'd need to start again on a vps if we went that way. The hosts usually spin their own minimal configuration as a starting point so you'd need to repeat the process on their base. But if your a windows guy just get a windows vps and stick with what you know.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
VK_3800
Posts: 526
Joined: Sun Jul 04, 2010 3:15 pm
cars: SS Torana
Location: NZ

Re: Linux - Will be the death of me

Post by VK_3800 »

I usually tune out whenever anyone mentions GoDaddy, not surprised at all that things won't run on their hosts.

As far as self managed VPS' go I'm generally pretty happy with Linode and prices are reasonable, if you're only wanting to try it out you can always go by the hour. Like Antus says something like CentOS is the go, add Webmin/Virtualmin if you want a nice control panel to manage it.
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: Linux - Will be the death of me

Post by Tazzi »

Definately had my fair share of ups and downs with Godaddy. But on a whole, support has always (eventually) helped out.

Self managed VPS is definitely a new one for me, so bit of a learning curve!
All I need is to be able to communicate with a php file, and running an executable which is about 800kb, so the sever isnt really going to be doing a whole lot!
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: Linux - Will be the death of me

Post by Tazzi »

Well.. just bought a few months for a SM VPS.

Selected centos 7. Time to start learning.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
VX L67 Getrag
Posts: 2877
Joined: Sun Aug 02, 2009 9:16 pm
Location: Bayside, Melbourne, Victoria
Contact:

Re: Linux - Will be the death of me

Post by VX L67 Getrag »

Hopefully someone gives you the extra guidance you need, then YOU return the favour!!!
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: Linux - Will be the death of me

Post by Tazzi »

Wow.. its a bit of fun and learning.. thats for sure!

Managed to get it to a point with apache, ftp, lamp ect all installed and working, along with an install of wordpress.
I think installed virtualmin... which seems to have buggered up the php part of it all. Couldnt figure it out, so have done a fresh reinstall of the OS (CentOS7) and giving it another whirl.

Something that drove me a little mad was permission access for the FTP user, was forever getting denied. Needed to change the group/owner before I could use easy file manager like filezilla.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: Linux - Will be the death of me

Post by Tazzi »

VX L67 Getrag wrote:Hopefully someone gives you the extra guidance you need, then YOU return the favour!!!
Um OK? Did someone fall out the crazy bed this morning :lol:
If I was an expert in linux, I would provide the help. My expertise is in programming and algorithms.. so shoot away if your struggling there... :thumbup:
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: Linux - Will be the death of me

Post by Tazzi »

The tutorials I have been following:

-Getting lamp setup: https://www.rosehosting.com/blog/how-to ... -centos-7/

-FTP setup: https://www.rosehosting.com/blog/how-to ... -centos-7/

-Update firewall settings: https://www.digitalocean.com/community/ ... n-centos-7

-Wordpress: https://www.rosehosting.com/blog/instal ... tos-7-vps/

Basically sums of the bare essentials that Iv needed so far.
Couple things not mentioned in there was installing VIM and wget (yum install VIM wget) for document editing in terminal.

*Edit
- To allow FTP user permission to read/write into www directory: chown -R FTPUSERNAME:apache /var/www/
- latest epel: yum install https://dl.fedoraproject.org/pub/epel/e ... noarch.rpm
- firewall update for ftp: firewall-cmd --permanent --add-port=21/tcp firewall-cmd --permanent --add-service=ftp
- Install gcc: yum -y install gcc gcc-c++

When updating "/etc/httpd/conf.d/options.conf", make sure to chuck in the host name, for me its just the actual server IP.
Last edited by Tazzi on Wed Jul 18, 2018 12:55 pm, edited 4 times in total.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: Linux - Will be the death of me

Post by Tazzi »

Next bugger up, accidentally buggered all the permission and ownership when trying to update for the FTP user to have permission to update files in www/html folders.

Tried fixing.. but can no longer connect via FTP with valid user. Tried uninstall/reinstall of the FTP server but no good. As its a bit beyond my understanding, time for fresh install of CentOS...
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
VK_3800
Posts: 526
Joined: Sun Jul 04, 2010 3:15 pm
cars: SS Torana
Location: NZ

Re: Linux - Will be the death of me

Post by VK_3800 »

If you're going to use Virtualmin, start with a fresh install of CentOS and just run their install script, it will basically do everything you want from there.
https://www.virtualmin.com/download.html

Once that's done, add any missing components and make all configuration changes via Webmin/Virtualmin and you should be good. Its pretty reliable these days and you only generally run into problems if you try to configure stuff manually.

Create a single domain/virtual site for whatever you're doing as if doing normal re-seller/shared hosting even if you only have the one, will keep things simple and do all the user creation and permissions for you. You then won't need any of those other tutorials, it will be all done.
Post Reply