/var/www/html/vapor/ root@localhost:[branch [master]]-> ./vapor.php -bash: ./vapor.php: Permission denied /var/www/html/vapor/ root@localhost:[branch [master]]-> ls -la total 36 drwxr-xr-x. 2 root root 4096 Dec 13 16:00 . drwxr-xr-x. 11 apache apache 4096 Dec 13 16:00 .. -rw-r--r--. 1 root root 25030 Oct 30 16:03 vapor.php /var/www/html/vapor/ root@localhost:[branch [master]]-> chmod 777 vapor.php /var/www/html/vapor/ root@localhost:[branch [master]]-> ./vapor.php ./vapor.php: line 1: ?php: No such file or directory ./vapor.php: line 2: /bin: is a directory ./vapor.php: line 3: vapor.php: command not found ./vapor.php: line 4: vapor.php: command not found ./vapor.php: line 5: vapor.php: command not found ./vapor.php: line 6: vapor.php: command not found ./vapor.php: line 7: vapor.php: command not found ./vapor.php: line 7: you: command not found ./vapor.php: line 8: vapor.php: command not found ./vapor.php: line 9: syntax error near unexpected token `(' ./vapor.php: line 9: ` * Foundation; either version 2 of the License, or (at your option) any later'
This question has been answered by dwillis210. See the first response.
It turns out that a snippet I wrote depended on a library that did not make it to Cloud during the import process and this was causing the 500 error.Can you share what library this was and where it was located in your environment? Just would like to know more about it.
Quote from: dwillis210 at Dec 18, 2012, 03:50 PMIt turns out that a snippet I wrote depended on a library that did not make it to Cloud during the import process and this was causing the 500 error.Can you share what library this was and where it was located in your environment? Just would like to know more about it.
$path = $modx->getOption('assets_path', $scriptProperties, MODX_ASSETS_PATH); require_once $path . 'templates/ttuv3/phpFlickr-3.1/app.php';
$modx->regClientCSS(MODX_ASSETS_URL."templates/ttuv3/css/flickrousel.css");
include(MODX_ASSETS_URL."templates/ttuv3/phpFlickr-3.1/phpFlickr.php");
The "path" settings and constants represent absolute physical file paths on the computer. The "url" settings and constants represent the path used by the web server (i.e. based on the document root) for the corresponding "path" setting/constant.That makes perfect sense now that you've said it. lol