Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Aug 04, 2014 10:25 pm 
Offline
Senior Newbie

Joined: Mon Aug 04, 2014 9:06 pm
Posts: 12
Does anyone have scripts that will create the appropriate apache config and restart the proper services? I'm used to my one click setup for domains and not the multi-step process required with my own server. I figured someone probably has a simple shell script that does all of this for you?


Top
   
PostPosted: Mon Aug 04, 2014 11:02 pm 
Offline
Linode Staff

Joined: Mon Jun 16, 2014 2:27 pm
Posts: 50
Location: Galloway, NJ
Hi there,

This probably isn't a thing, honestly. It would prove difficult to set something like this up -- especially where each site would have it's own configuration and someone else's configuration will likely not match what you want.

I guess the idea overall would be easy to do, but configuration-wise it wouldn't be feasible.

Thanks,

Dave.


Top
   
PostPosted: Mon Aug 04, 2014 11:03 pm 
Offline
Senior Newbie

Joined: Mon Aug 04, 2014 9:06 pm
Posts: 12
Yea, I guess most of my sites would have extremely similar configurations. I'm going to use what I found here:

https://coderwall.com/p/cqoplg


Top
   
PostPosted: Mon Aug 04, 2014 11:07 pm 
Offline
Linode Staff

Joined: Mon Jun 16, 2014 2:27 pm
Posts: 50
Location: Galloway, NJ
That'll probably work for a basic set up :) If you need any help throughout the process, we'll be here :)


Top
   
PostPosted: Tue Aug 05, 2014 7:05 am 
Offline
Junior Member

Joined: Tue Apr 01, 2014 12:45 pm
Posts: 29
Website: http://centminmod.com
Location: Brisbane, Australia
you can probably write a shell script to automate it if you want

I do that for Centmin Mod and adding Nginx vhosts http://centminmod.com/nginx_domain_dns_setup.html :)

_________________
* Centmin Mod Nginx menu based auto installer (Nginx, PHP-FPM, MariaDB MySQL) :: Centmin Mod LEMP Stack - What's New


Top
   
PostPosted: Thu Aug 14, 2014 3:50 pm 
Offline
Newbie

Joined: Sun Dec 08, 2013 6:44 pm
Posts: 3
Website: http://www.cloudsysadmins.com
Location: San Antonio, TX
Hey,

I was bored, so wrote a dead basic Debian/Ubuntu based script. Nothing amazing but will get the job done.

Download the file:

wget http://www.paulwoodman.co.uk/linode/vhost.sh

make it executable:

chmod +x vhost.sh

Then run the script:

./vhost.sh

Have fun!


Last edited by p.woodman on Thu Aug 14, 2014 4:37 pm, edited 2 times in total.

Top
   
PostPosted: Thu Aug 14, 2014 3:59 pm 
Offline
Senior Member

Joined: Mon Jul 05, 2010 5:13 pm
Posts: 392
For the record, pumping the results of curl into bash is a terrible plan. In the malicious case, the page could provide something you do not expect (even based on user agent). Even without a malicious actor, an interrupted connection can ruin your day. For instance, if the script says "rm -r /var/lib/coolscript/junk", and the connection dies, you can end up pumping "rm -r /var" into your shell.

- Les


Top
   
PostPosted: Thu Aug 14, 2014 4:27 pm 
Offline
Newbie

Joined: Sun Dec 08, 2013 6:44 pm
Posts: 3
Website: http://www.cloudsysadmins.com
Location: San Antonio, TX
akerl wrote:
For the record, pumping the results of curl into bash is a terrible plan. In the malicious case, the page could provide something you do not expect (even based on user agent). Even without a malicious actor, an interrupted connection can ruin your day. For instance, if the script says "rm -r /var/lib/coolscript/junk", and the connection dies, you can end up pumping "rm -r /var" into your shell.

- Les


Fair point.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
RSS

Powered by phpBB® Forum Software © phpBB Group