WebFaction
Community site: login faq

I'm using the API to create multiple subdomains. Each subdomain must run it's OWN copy of a PHP application.

I had though that creating an application then adding that to the website would accomplish that? Can someone please confirm?

If that is NOT the case, how can I get all files to each subdomain?

asked 25 May '16, 14:53

edalzell
137
accept rate: 0%


You would need to create a separate PHP app for each site, copy the files to each app, and assign each app to the website set up for each subdomain.

permanent link

answered 25 May '16, 15:14

maryh
1.3k7
accept rate: 35%

Thanks @maryh, that doesn't sound great. Maybe I'll just see how to copy a zip file to a site via the API and then unzip it.

(25 May '16, 16:04) edalzell

Where does the website live? i.e. how can I copy files to it?

Or will I have to: 1) create an application 2) copy the files into it 3) use that application for a subdomain website

(25 May '16, 16:08) edalzell

You'll need to create an application, copy the files into it, and use that application for the subdomain's website. When you create an application, a directory is created in /home/youraccount/webapps, so you would upload your files into /home/youraccount/webapps/<name_of_application>.

(25 May '16, 16:15) maryh

Thanks @maryh

(25 May '16, 16:58) edalzell
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×264
×76
×58

question asked: 25 May '16, 14:53

question was seen: 1,433 times

last updated: 25 May '16, 16:58

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM