Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: WebFaction users
Destry wrote #297291:
Here’s a big question…
I just realized, after setting the whole works up and seeing a big mass of errors on the test view front-side, that I had created the “webapp” using
Static/CGI/PHP-7.0
. That likely explains some of the errors due to the fact it’s a Txp 4.5.7 install (not 4.6). Sigh!As far as I can tell, based on the dashboard functionality, the only way to fix that is to create a new webapp (having a different name, by necessity) and move the entire installation into the new webapp (subdomain) folder, correct the resulting paths in config.php, etc.
That is a shortcoming of the control panel they have but you can override it in the htaccess as described here. So adding this to your .htaccess
should solve your immediate problem:
<FilesMatch .php$>
SetHandler php54-cgi
</FilesMatch>
See also here for a description for deleting and recreating a web app similar to what you outlined but keeping the same directory.
So does that mean when Txp 4.6 comes out, everyone on WebFaction is going to have to do this awkward song and dance to upgrade to php 7?
In future, theoretically, you should be able to update to txp v4.6 while still on your php 5.x app, then adapt your htaccess accordingly to use php 7.
TXP Builders – finely-crafted code, design and txp
Offline
Re: WebFaction users
jakob wrote #297294:
That is a shortcoming of the control panel they have but you can override it in the htaccess as described here. So adding this to your
.htaccess
should solve your immediate problem:
Yes would be much better if the control panel made this easier and more intuitive. Who remembers what they put in an .htaccess file..
Offline
Re: WebFaction users
Jakob, you are a fountain of wisdom. Thank you. That cleared it up and the beautiful site appeared.
Noting that their next lowest version of PHP available is 5.6, I used this at bottom of the .htaccess
#PHP switching for WebFaction. Remove this when Txp is updated to 4.6
<FilesMatch .php$>
SetHandler php56-cgi
</FilesMatch>
On reflection, I think I went the right way by going high, because now when I do update to 4.6, I can simply remove this from htaccess and still be good… Until php 7.1. :{
Offline
Re: WebFaction users
Do websites have to be in the root of the /webapps directory?
Could you structure that directory like this, for example:
- webapps/
- group/
- domain1
- domain2
- domain3
- indie
- group/
So that multiple users can be given SFTP access to the /group directory only (and thus all domains in it), and not to the /indie directory at all? That’s what I’m trying to achieve, anyway.
Offline
Re: WebFaction users
Here’s the instructions for granting access permissions and here’s a further info on granting access to specific users which is less comfortable but I’ve used before to provide access to someone else to a separate directory. When the SFTP into the server, they arrive at the base, so you need to set up a symlink that takes them directly to their respective app.
What I’m not sure about is whether you can do group/domain1, domain2, domain3 all within one web app or whether those each have to be separate webapps.
TXP Builders – finely-crafted code, design and txp
Offline
Re: WebFaction users
It would work if I could assign multiple access paths for a given user (even if a bit tedious), but the UI doesn’t seem to allow that. Either a user has access to all webapps, or only one specific app. Seems a bit screwy.
Offline
Re: WebFaction users
Destry wrote #297388:
It would work if I could assign multiple access paths for a given user (even if a bit tedious), but the UI doesn’t seem to allow that. Either a user has access to all webapps, or only one specific app. Seems a bit screwy.
i have set up a couple of jailed users. it wasn’t dead simple… but it seems to work. How tio give a user SFTP access to their file space. They can’t create a db or have mysql access:
much like the old jailed solution SexyFileManger that we had on Textdrive
Last edited by bici (2016-01-15 06:41:27)
…. texted postive
Offline
Offline
Offline
Re: WebFaction users
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: WebFaction users
colak wrote #297482:
Would this affect txp users?
ie:
- users creation
- password resetting
- send comments
- zcr
- postmaster
“Switch to using our SMTP server – smtp.webfaction.com”
doesn’t this solve all the issues? or am I missing something?
It’s all about sending emails right? i only use smtp.webfaction.com as i tis.
…. texted postive
Offline
Re: WebFaction users
Hi bici, how did you do that? Is it just a matter of adding smtp.webfaction.com in the advance preferences? What about the ports they are talking about?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline