Load External File from outside plugin

Asked by Bill Gosse on 2012-08-21

I'm trying to use the "Load External File from outside plugin" option for a menu. I've created a new empty folder, Terascala, in the PHPDS plugin. I used this new folder's name to set the Plugin Name/Folder field. I then set the URL/File Path Location/Linked Items field to the absolute path to my external file: /usr/local/terascala/home/index.php

When access the new menu item I get a file not found exception. What am I doing wrong?

Question information

English Edit question
PHPDevShell Edit question
No assignee Edit question
Last query:
Last reply:
Bill Gosse (bill-gosse) said : #1

One other point is that yes a I can successfully save the new menu with the file listed above so the Manage Menu facility can find the file in doubt.

TitanKing (titan-phpdevshell) said : #2

How does your persmission look on that file? Are you sure it is accessable to others?

Greg (gregfr) said : #3

The file seems to be outside your webserver root, which is likely to be disallowed by the webserver itself.

Bill Gosse (bill-gosse) said : #4

If Apache has access to the directory shouldn't it work. I certianly don't have to put all files under the webroot for other apps that I have. I can put those anywhere I want in the file system just as long as I've declared, in the httpd.conf the directory they reside in.

Bill Gosse (bill-gosse) said : #5

Yes the files can be read by anyone

TitanKing (titan-phpdevshell) said : #6

Give me some time to experiment with this.

Greg (gregfr) said : #7

Can you send us the full error display page for the "file not found" exception?

Can you help with this problem?

Provide an answer of your own, or ask Bill Gosse for more information if necessary.

To post a message you must log in.