Dear WebFaction Community, I have been following the steps outlined by Klynton J and John S in a ticket i submitted a while ago. Here's what i have done so far:
Here are my questions.
Now a submit on this form yields: Not Found The requested URL /cgi-bin/dem/vs/dem.cgi was not found on this server. Thanks in advance. You folks are the best. Love and peace, Joe asked 09 Mar '11, 13:23 jdor |
You should reply to us directly in the ticket. We can not look at the account or give you exact instructions in the community forum, but will try to best answer your questions in a general way. If you want specific instruction please contact us with a support ticket. (1) With a "symbolic link to Static/PHP/CGI" app, http://docs.webfaction.com/user-guide/websites.html#installing-applications-not-listed-in-the-control-panel (2) Use the absolute filepath, /home/user/webapps/appname/foo.cgi answered 09 Mar '11, 16:35 johns |
In regards to your first question, (1):
Right. The "Symbolic Link to Static/CGI/PHP" application type is distinct from the "Static/CGI/PHP" application type. "Symbolic Link to Static/CGI/PHP" application types are located under the "Symbolic Link" category. In regards to your second question, (2):
Sure. There are at least two ways. Utilizing mod_rewrite in a .htaccess file is a good option because it works in URL-space (rather than file-space). You'd be looking at something like this in your application's root .htaccess file ($HOME/webapps/staticcgiphp/.htaccess):
The exact syntax will depend on your particular application, and RewriteBase might also be needed depending on the application and any URL subpath mounting in the website record mounting this application. Another solution is to find out exactly which file the current application is trying to access (and failing). Then, just creating a symbolic link on the system to make this URL work might solve the problem:
answered 09 Mar '11, 23:25 ryans ♦♦ Hi Ryan. Thanks for the reply. I have been playing around with the RewriteRule for a while with no luck. I'll take this over to a ticket and then bring the answer back in a sanitized manner. Thanks again. Love and peace, - Joe
(10 Mar '11, 16:20)
jdor
|
Thanks for the reply, John. For (1) I tried doing what you said:
user-guide/websites.html#installing-applications-not-listed... says:
In the control panel, I tried to edit the app named static_cgi_php, putting /home/user/webapps/static_cgi_php/mydname/www/htdocs into the extra_info field, but the control panel wouldn't let me. The App doc says:
Is there some other way of symbolic-linking? For (2), when you say:
I am guessing you mean that I have to go into all of my php/html files and edit each of the forms to point to the correct absolute path. If that's what you mean, is there any other high level (.htaccess or httpd.conf or symbolic-link or something-else) method to map all "/cgi-bin/x/y/z" URLs to the file path webapps/static_cgi_php/mydname/www/cgi-bin/x/y/z ? Thanks again. Love and peace, Joe answered 09 Mar '11, 21:55 jdor |
First, BIG THANKS to Aaron H., John S. and Ryan S. for their help. As I mentioned in my reply to Ryan S., I took this to a Ticket and I am bringing the answer I got from Aaron H. back here in a "sanitized manner". Here are the steps to fix the problem. A. Leave the static_cgi_php app intact - as is. B. Add a new app: Name: subd_htdocs App type: Symbolic link to static/cgi/php app Extra info: /home/acct/webapps/static_cgi_php/mydname/www/htdocs C. Add another new app: Name: subd_cgi App type: Symbolic link to static/cgi/php app Extra info: /home/acct/webapps/static_cgi_php/mydname/www/cgi_bin notice it is cgi [underscore] bin NOT cgi [dash] bin Arron H said ctl panel wont allow cgi-bin in Extra infoI followed these steps and tested things and a URL of http://subd.acct.webfactional.com/ sent me to /home/acct/webapps/static_cgi_php/mydname/www/htdocs/index.htm and all the cgi items that I tested worked fine as well. BIG THANKS again, to Aaron H, John S. and Ryan S.. Love and peace, Joe answered 15 Mar '11, 13:01 jdor |