Username
Forgot password?
Welcome to our site!
Or Join with FTTF

Installing on Webfaction server

0

1109 views
Hi Dmitri,

I am trying to install lampcms on webfaction. The webfaction setup is sort of a hybrid. As such, I cannot install files one level above the web document root.

I made the following changes:

index.php

57: include '../../!inc.php'; //point up one more level 




!inc.php

102: define('LAMPCMS_PATH', '/home/account_name'); //point to account root instead of ___FILE___
103: $libDir = '/home/account_name/lib';




Lampcms creates the mongo db, then I get this err:

File not found: /home/account_name/lib/tplMain.php



Can you offer any suggestions?
 
Edited December 5, 2011 6:25 pm CST
corrected code
asked December 5, 2011 at 5:48 PM

 US

1 Answer

0
 
Usually this means that a path to your web root directory is no correct.. Since you made some changes and point to ../../!inc.php something else probably has to be changes. Usually the !inc.php is located in the project's root directory and the web root folder is the www directory of the project.

So it looks like the whole project is in your web root directory, right? Ok, so how do you access the pages then? Something like /www/index.php instead of index.php?

flag
answered December 5, 2011 at 7:11 PM
My dir structure looks like this. /home/account_name/lib /home/account_name/bin web root is under that at: /home/account_name/webapps/htdocs the webapps folder is managed by the system and cannot contain files.
flag
Dec 5 '11 at 19:33
I don't understand why it is looking for tplMain.php under /lib/ when the tar does not unpack this way.
flag
Dec 6 '11 at 5:27

Your answer

Join with account you already have

FTTF

Preview

Alert