How to install and configure LAMP - webserver

First of all I am new to Linux. I got a CentOS 6.0 64 Bit VPS and want to use it as a web server. I have searched on Google and SO and found many tutorials on LAMP setup, however all of them are different when it comes to configuration part. (for example for folder privileges one use chmod 750 and another one uses chmod 2750 and another uses something different but I cant get the difference)
I want to setup a reliable web server which is secure and light as possible.
Can you tell me where to start or suggest some good tutorials on LAMP configuration?

This tutorial is so good for starting with LAMP on CentOS.

Related

Is it possible to install server software while I just have a hosting

I'm new to web back-end and about to deploy a website(with both backend and frontend). As far as I know, If you own a server, you can install whatever software you want. But how about when you have a free hosting, is it possible for you to install softwares like Tomcat, Mysql,etc yourself.
Ps: as far as I know, hosting is a folder inside a server, so in my opinion, you'll depend on the server which contains the hosting. Still I get confused.
I highly appreciate you all for spending time read this post.
Hosting is just deploying your applications and then serve them to the internet. If you are using free hosting, I suppose that they must be managed service which mean you cannot do anything except the functions the hosting provider provide. In my opinion, it is better to get your own vps if you want to control your server fully. You can just install software you want in ubuntu or other supported os, and then serve your port to public. If you would like to try, you can use some cheap vps provider first like Contabo VPS.

Installer for Software? Paas?

currently I'm looking for an open source project that gives me the opportunity to install software easily. I prefer direct calls or access with a REST interface.
I thought that CloudFoundry would fits my needs but it is'nt so.
AppFog (https://www.appfog.com/product/) comes much closer to my goal. It allows me to install Drupal, Wordpress, PhpMyAdmin, NodeJS Apps and so on.
The conclusion is that I'm looking for an project that...
is open source.
gives that possibility to install, configure and
uninstall software
is extendable when a specific software not
available
is accessible with an interface like REST.
is "hostable" on my own linux server
I would be happy for all kind of hints and tips :)
Cheers Tobias
Docker is seems to be the next big thing in the PaaS world. There are dozens new projects that build on top of docker or supporting it. For example OpenShift and Apache Stratos support docker. So if you look at solutions based on docker you can find a solution for you needs.
Right now I'm using docker for hosting couple of Drupal websites with simple bash scripts to manage them. Nginx is used for web traffic routing
Docker is open source
Gives you ability to prepare and install apps
You can build what you need on top of it
It has REST interface
It is running on nearly all major Linux distros
Its relatively easy to learn and use
Has great community
Tobias,
Suggest you look at Apache Stratos:
100% open source
Easy to Get Up and Running
Highly extensible, flexible, expandable
Uses REST APIs
Runs on Linux (Ubuntu or SUSE)
Mature (version 4)
See:
Intro article -- "Why Apache Stratos is the Preferred Choice in the PaaS Space"
http://wso2.com/library/articles/2014/05/why-apache-stratos-is-the-preferred-choice-in-the-paas-space/
Apache Stratos Project site -- which notes that "Stratos PaaS is easy to get it up and running in quick time. A developer will be able to run and test PaaS framework on a single machine to try out."
http://stratos.apache.org/
Cheers,
Michael
OpenShift is what you looking for :
it is open source and free for 3 gears for ever.
gives that possibility to install, configure and uninstall software in openshift.redhat.com or in rhc client tools.
it is extendable when a specific software not available is accessible throw DIY(Do it yourself)
with an REST interface
is "hostable" on Fedora or CentOS .
It is really easy to setup throw Eclipse.

Deploying Meteor App to own server

I have a completed meteor project and is currently deployed on the meteor website. I would like to move it to my own website, which is currently hosted by GoDaddy.
How do I install Node and Mongo on my server (linux) and then run my meteor project? I received ssh access to my server, so I assume I can do this, but I'm just not sure how.
So how exactly do I proceed?
Additional Info:
I'm not exactly sure what of linux it is. On GoDaddy, it simply says linux.
When I ssh, it shows me:
-bash-3.2$:
Also, I having my website simply show the myapp.meteor.com webpage would work too. An explanation on how to do this would work.
Discover Meteor has a chapter on deployment which helps to answer this question. For ubuntu-based servers they recommend meteor-up. I haven't used it, but it's probably worth checking out. Previous versions of the book recommended meteoric.
I wrote my own set of bash scripts using a few ideas from meteoric, but I already had a lot of experience doing deployment scripting. Frankly there's nothing quite like figuring it all out yourself, but doing sysadmin tasks doesn't appeal to everyone and it can be hard to pick up in a hurry.

How to setup a website with CMS on Amazon WS

Hi I was looking for a place to host my bigger projects with a philosophy "pay for what you use". I found Amazon WS. I want to set up a site with CMS (Modx) on Amazon WS. I basically need to setup a database (mysql?) and a webserver. Can someone provide me with some info on that or point to a tutorial or something?
Well, AWS gives you EC2 (CPU) and EBS (Hard Disk). You will need to choose an OS, setup Apache/Nginx and mysql.
In their basic form, the installation procedure is fairly simple.
sudo apt-get install apache2
sudo apt-get install mysql
Look around the web for more complete tutorials for the OS you choose. These are for ubuntu.
As for Modx, their instructions are available.
Good luck.
Also, you can also use a PaaS solution to assist you with the setup. Such as:
https://bitnami.com/stack/modx/cloud/amazon
This will enable you to build a CMS on any Cloud provider: AWS, Azure, etc. and add a layer of support and management on top of it.
I have came across a tutorial available here: http://blog.jelastic.com/2013/06/25/deploy-modx-cms/
The tutorial seems to be more than comprehensive.
Seems you just need to pick up the needed instances, upload the application and configure the database.

Rails 3.0.0 and FASTCGI Deployment Question

I currently have hostingrails.com. But following their tutorial on deploying rails application with FASTCGI is not quite working... So currently I'm hosting one of my apps with them using Thin.
Currently, my host says FASTCGI and Rails3 is not supported is this true?
Besides running mongrel,thin or passenger. What other options do I have with my host? They are telling me to develop in 2.3.8 if I want to use fastcgi, but I'm trying to move away from 2.3.8 and to rails 3.0.0.
Anyone have a better shared host? Basically what I am looking for is a shared host allowing me to host multiple rails 3.0.0 applications. I'm not expecting alot of usage but I'm looking to build like a portfolio of applications that I've made and would like them hosted on.
And with hosting rails i'm spending $7/month. I'm looking for something in this ball park or maybe a few more dollars. Thanks for your help.
I would recommend dreamhost. it is hands down the best shared host I have tried over the years, and they do support rails.
Not rails 3 though. I got it working using this http://blog.joeygeiger.com/2010/05/17/i-beat-dreamhost-how-to-really-get-rails-3-bundler-and-dreamhost-working/
Finally, there are things that you just can't do on a shared host. Keep in mind you can get a pretty decent vps (like linode 512) for 20$/mo