<![CDATA[ Some simple questions - My Forums]]> https://forums.modx.com/thread/?thread=28880 <![CDATA[Re: Some simple questions]]> https://forums.modx.com/thread/28880/some-simple-questions?page=2#dis-post-155514 Quote from: scarfy96 at Sep 18, 2009, 12:11 AM

Thanks.

Posted full sequential steps I followed in a new thread so that it may help others.

All working. Help was much appreciated.

I’m glad you got it working. Thanks for contributing the steps you took. I’m sure that will be really helpful for others. smiley]]>
BobRay Sep 17, 2009, 07:39 PM https://forums.modx.com/thread/28880/some-simple-questions?page=2#dis-post-155514
<![CDATA[Re: Some simple questions]]> https://forums.modx.com/thread/28880/some-simple-questions?page=2#dis-post-155513
Posted full sequential steps I followed in a new thread so that it may help others.

All working. Help was much appreciated.]]>
scarfy96 Sep 17, 2009, 07:11 PM https://forums.modx.com/thread/28880/some-simple-questions?page=2#dis-post-155513
<![CDATA[Re: Some simple questions]]> https://forums.modx.com/thread/28880/some-simple-questions?page=2#dis-post-155512
If it worked fine when you installed with the core in the httpdocs dir, it should work when you move the core and alter the config.core.php files as BobRay suggested, without taking any other action (you don’t need to install again at that point).]]>
opengeek Sep 16, 2009, 11:13 PM https://forums.modx.com/thread/28880/some-simple-questions?page=2#dis-post-155512
<![CDATA[Re: Some simple questions]]> https://forums.modx.com/thread/28880/some-simple-questions?page=2#dis-post-155511 install.config.2009-09-17T10:44:22

has amongst other things errors like this:
[2009-09-17 10:44:23] (ERROR @ /setup/index.php) Error executing PHP script /usr/local/modxrevolution/packages/core/modContext/515674d74fb65d3459617987b6ea7f0f.resolve.core.resolver
[2009-09-17 10:44:23] (ERROR @ /setup/index.php) Could not resolve vehicle: Array

[2009-09-17 10:44:23] (ERROR @ /setup/index.php) Error executing PHP script /usr/local/modxrevolution/packages/core/modContext/1642954be5370caa3c12fffb831fbccd.resolve.core.resolver
[2009-09-17 10:44:23] (ERROR @ /setup/index.php) Could not resolve vehicle: Array

[2009-09-17 10:44:23] (ERROR @ /setup/index.php) Could not install files from /usr/local/modxrevolution/packages/core/xPDOFileVehicle/5624a8113caf59ad3c91e78915591c38/ to /var/www/vhosts/treadly.com/httpdocs/connectors/
[2009-09-17 10:44:23] (ERROR @ /setup/index.php) Could not install files from /usr/local/modxrevolution/packages/core/xPDOFileVehicle/16f23e2fbd0b1a072f6ed04a1974b6dc/ to /var/www/vhosts/treadly.com/httpdocs/connectors/
[2009-09-17 10:44:23] (ERROR @ /setup/index.php) Could not install files from /usr/local/modxrevolution/packages/core/xPDOFileVehicle/31fdde596a6791c130fd4800f4c7ec57/ to /var/www/vhosts/treadly.com/httpdocs/connectors/
[2009-09-17 10:44:23] (ERROR @ /setup/index.php) Could not install files from /usr/local/modxrevolution/packages/core/xPDOFileVehicle/3291dae6c3f6eb27bfd04bc954eae910/ to /var/www/vhosts/treadly.com/httpdocs/connectors/
[2009-09-17 10:44:23] (ERROR @ /setup/index.php) Could not install files from /usr/local/modxrevolution/packages/core/xPDOFileVehicle/08dd348faed6e3e61ce14b95f2de256d/ to /var/www/vhosts/treadly.com/httpdocs/connectors/
[2009-09-17 10:44:23] (ERROR @ /setup/index.php) Could not install files from /usr/local/modxrevolution/packages/core/xPDOFileVehicle/9c8d71af7aedf418d3ac1c94e5357399/ to /var/www/vhosts/treadly.com/httpdocs/connectors/
[2009-09-17 10:44:23] (ERROR @ /setup/index.php) Could not install files from /usr/local/modxrevolution/packages/core/xPDOFileVehicle/e3ffd172ae2744b88f5ababbfd6c5fbc/ to /var/www/vhosts/treadly.com/httpdocs/connectors/
[2009-09-17 10:44:23] (ERROR @ /setup/index.php) Could not install files from /usr/local/modxrevolution/packages/core/xPDOFileVehicle/2ae49a4fba5fe49063ad176058039b79/ to /var/www/vhosts/treadly.com/httpdocs/connectors/
[2009-09-17 10:44:23] (ERROR @ /setup/index.php) Could not install files from /usr/local/modxrevolution/packages/core/xPDOFileVehicle/9a444ef7f0ad7ea8d0eb36b67654edfa/ to /var/www/vhosts/treadly.com/httpdocs/connectors/
[2009-09-17 10:44:23] (ERROR @ /setup/index.php) Could not install files from /usr/local/modxrevolution/packages/core/xPDOFileVehicle/5cd650ebaf46bd0e8b27a44e79bf6b18/ to /var/www/vhosts/treadly.com/httpdocs/connectors/

What would cause this?

The connectors directory is 777 - should that be recursive? ie should all directories within connectors also be 777? I don’t recall doing this (recursive 777) on my original install that worked with the core in the httpdocs directory.

That version of php worked fine when I installed the first time and ended up with the core in the httpdocs area. I went through to manager and could do stuff, no problems. Build Date May 1 2009 10:13:14 so it isn’t that old.]]>
scarfy96 Sep 16, 2009, 08:43 PM https://forums.modx.com/thread/28880/some-simple-questions?page=2#dis-post-155511
<![CDATA[Re: Some simple questions]]> https://forums.modx.com/thread/28880/some-simple-questions?page=2#dis-post-155510 php v 5.2.0-8 Seriously? I would suggest using a recent release of PHP 5.2. 5.2.0 almost certainly will contain bugs that will cause problems. Otherwise, I’m not sure what to tell you; sounds like you did everything correctly. Are there PHP errors being logged to your Apache error_log or any in the core/cache/logs/error.log file?]]> opengeek Sep 16, 2009, 08:29 PM https://forums.modx.com/thread/28880/some-simple-questions?page=2#dis-post-155510 <![CDATA[Re: Some simple questions]]> https://forums.modx.com/thread/28880/some-simple-questions?page=2#dis-post-155509
Started fresh and uploaded:
manager
core
setup
connectors
the few files to the root directory

moved core to /usr/local/modxrevolution

Set all write permissions as per doco and setup the config file in the core/cache directory

Edited all config.core.php files

Edited my local httpd.include file to allow /usr/local/modxrevolution in my open_basedir restriction

Ran the setup and all went smoothly.

All green ticks.

Database setup correctly (I assume - it has 54 tables in it)

Completes setup and get the option to go to the manager.

Manager reports in a big red box:

503 Error
Site temporarily unavailable.

Everything else on the domain is still working. Other php files on the domain still work correctly.

Tried on another computer that has never been on the domain and it also gets the 503 error - so it can’t be a cookie or cache issue.

php v 5.2.0-8
linux
apache 2.0
mysql 5.0.32
safe mode off
memory_limit 120M
max_execution_time 120

Suggestions?


]]>
scarfy96 Sep 16, 2009, 08:12 PM https://forums.modx.com/thread/28880/some-simple-questions?page=2#dis-post-155509
<![CDATA[Re: Some simple questions]]> https://forums.modx.com/thread/28880/some-simple-questions#dis-post-155508
Here’s what I think should work (assuming a clean start with an empty DB, an empty core/cache dir, and cleared browser cache/cookies):

1. Copy the files (including /setup to the root except for the /core directory.
2. Copy the core files to wherever you want them
3. edit all the config.core.php files
4. run setup

Here’s what I think I did.

1. Do an install with /core in the usual place.
2. After logging in once, but before doing any work in the Manager (leaving /setup in place), move the /core dir.
3. Edit all the config.core.php files.
4. Delete all files in the core/cache dir. except for index.php.
5. Clear browser cache/cookies
6. rerun setup.

I’m afraid I can’t answer your question 1. I’ve never used anything but the SVN version. I would think with the advanced install you’d do the build, then setup, then move the core, then edit the config.core.php files, clear cache, maybe rerun setup.

Hope this helps.
]]>
BobRay Sep 16, 2009, 02:19 AM https://forums.modx.com/thread/28880/some-simple-questions#dis-post-155508
<![CDATA[Re: Some simple questions]]> https://forums.modx.com/thread/28880/some-simple-questions#dis-post-155507
Do I install as per normal THEN move the core files then edit these config files (but don’t you delete the entire setup directory?)

or do I upload the other files and directories but the core ones to the new location out of the web root and then edit these files. In which case there is no connectors directory because earlier they said to use the advanced install file which has no connectors directory - it builds it.

Sorry but half instructions just create a raft of new questions.

For a fresh install.
1) Which install package do I use - the normal or advanced?
2) Which directories do I upload where?
3) Which config files do I edit before install?
4) Do I move anything after install - if so what?
5) If I do move files in 4) then which files then need editing?

Sorry to be a pain but each combination I have tried results in a different error. The only way I can get it to work is having the core directory in the httpdocs directory which sort of defeats the purpose of having one install to drive multiple domains which is the objective.]]>
scarfy96 Sep 16, 2009, 01:56 AM https://forums.modx.com/thread/28880/some-simple-questions#dis-post-155507
<![CDATA[Re: Some simple questions]]> https://forums.modx.com/thread/28880/some-simple-questions#dis-post-155506
/config.core.php
/manager/config.core.php
/connectors/config.core.php
/setup/includes/config.core.php

I think that will do it. smiley

]]>
BobRay Sep 16, 2009, 01:11 AM https://forums.modx.com/thread/28880/some-simple-questions#dis-post-155506
<![CDATA[Re: Some simple questions]]> https://forums.modx.com/thread/28880/some-simple-questions#dis-post-155505 Quote from: OpenGeek at Sep 11, 2009, 05:00 AM

There will be separate installation instructions for installing the core/ directory of MODx outside of the webroot. We do this on many Revolution sites, so you could have something like this:

/var/www/vhosts/mydomain1.com.au/httpdocs/
/var/www/vhosts/mydomain2.com.au/httpdocs/
/var/www/vhosts/mydomain3.com.au/httpdocs/
/usr/local/revolution/

Where the /usr/local/revolution/ folder is the core/ directory in the "advanced" package. Just move the core/ to this location outside the webroot, then there are several other steps (and decisions) required to then install in each virtual host directory.

OK I have tried this and failed dismally.

First time I tried it I uploaded the advanced files and directories and moved the core to
/usr/local/modxrevolution/

I got an error saying I had to edit the config.core.php to show the path to the core. I edited it:
define(’MODX_CORE_PATH’, ’/usr/local/modxrevolution/’);

I then got an error saying to install it needed a working core.

I deleted everything, reuploaded everything and installed with the core in httpdocs.

Everything worked.

I then moved the core to:
/usr/local/modxrevolution/

and edited the config.core.php file and now it is erroring

Warning: include_once(/var/www/vhosts/treadly.com/httpdocs/core/model/modx/modx.class.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/vhosts/treadly.com/httpdocs/manager/index.php on line 50

Why is it still looking there?

I have edited the config.core.php in both the httpdocs directory and the manager directory.

I am sorry, there is no doco and I can’t find anything on the forums as to how to install the core outside the root.

It just says "upload and point at the setup directory"

Well if I do that it puts the core in the httpdocs directory.

I have checked off all the server requirements and have all in accordance to the server requirements in the doco.

What am I doing wrong? What do I upload where and what do I edit to install the core outside the web server?

Thanks.]]>
scarfy96 Sep 16, 2009, 12:44 AM https://forums.modx.com/thread/28880/some-simple-questions#dis-post-155505