Load External File from outside plugin

Asked by Bill Gosse

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

Language:
English Edit question
Status:
Answered
For:
PHPDevShell Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
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.

Revision history for this message
TitanKing (titan-phpdevshell) said :
#2

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

Revision history for this message
Greg (gregfr) said :
#3

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

Revision history for this message
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.

Revision history for this message
Bill Gosse (bill-gosse) said :
#5

Yes the files can be read by anyone

Revision history for this message
TitanKing (titan-phpdevshell) said :
#6

Give me some time to experiment with this.

Revision history for this message
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.