HTACCESS Install on shared hosting problem
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 37
- Joined: Wed Apr 11, 2012 1:43 pm
HTACCESS Install on shared hosting problem
Hi
I installed Livecode Server successfully on MAMP in my test environment. I am now trying to get it going on the production Linux shared hosting service and as I cannot have access to the Apache config/setup - I need to use the .HTACCESS option. I installed everything according to the lessons/manuals and get an error /cgi-bin/livecode-server/test.lc was not found on this server when I want to run the test HTML/LC. File permissions are 755 where needed.
Anyone had this before or have a suggestion on what I could be doing wrong?
Thanks
Danny
I installed Livecode Server successfully on MAMP in my test environment. I am now trying to get it going on the production Linux shared hosting service and as I cannot have access to the Apache config/setup - I need to use the .HTACCESS option. I installed everything according to the lessons/manuals and get an error /cgi-bin/livecode-server/test.lc was not found on this server when I want to run the test HTML/LC. File permissions are 755 where needed.
Anyone had this before or have a suggestion on what I could be doing wrong?
Thanks
Danny
Re: HTACCESS Install on shared hosting problem
The exact error message you get is :
Put your lc test file at the root of your website (where index.htm file is to be found on your regular hosting service), in order to access it by just typing
If yes, then you have a path problem.Not Found
The requested URL /xxxx/xxxxxxxxxx.lc was not found on this server
Put your lc test file at the root of your website (where index.htm file is to be found on your regular hosting service), in order to access it by just typing
http//www.mydomain.com/test.lc
-
- VIP Livecode Opensource Backer
- Posts: 37
- Joined: Wed Apr 11, 2012 1:43 pm
Re: HTACCESS Install on shared hosting problem
Hi
Thanks for the feedback. I do have it in the same directory (public_html) as the normal index.html (which works fine). I tried moving the test.lc file up and down in the file structure and changed path names in HTACCESS and placing the test.lc file in that directory - still the same.
So I must be doing something wrong between cg-bin and .htaccess. The /cgi-bin/livecode-server part of the message is plugged in automatically by the system and the test.lc bit obviously from what I typed in the url www.mystite.xxx/test.lc which then gives me the message as above.
Still a problem for me
Danny
Thanks for the feedback. I do have it in the same directory (public_html) as the normal index.html (which works fine). I tried moving the test.lc file up and down in the file structure and changed path names in HTACCESS and placing the test.lc file in that directory - still the same.
So I must be doing something wrong between cg-bin and .htaccess. The /cgi-bin/livecode-server part of the message is plugged in automatically by the system and the test.lc bit obviously from what I typed in the url www.mystite.xxx/test.lc which then gives me the message as above.
Still a problem for me
Danny
-
- VIP Livecode Opensource Backer
- Posts: 37
- Joined: Wed Apr 11, 2012 1:43 pm
Re: HTACCESS Install on shared hosting problem
Hi
Thanks for the feedback. I do have it in the same directory (public_html) as the normal index.html (which works fine). I tried moving the test.lc file up and down in the file structure and changed path names in HTACCESS and placing the test.lc file in that directory - still the same.
So I must be doing something wrong between cg-bin and .htaccess. The /cgi-bin/livecode-server part of the message is plugged in automatically by the system and the test.lc bit obviously from what I typed in the url http://www.mystite.xxx/test.lc which then gives me the message as above.
Still a problem for me
Danny
Thanks for the feedback. I do have it in the same directory (public_html) as the normal index.html (which works fine). I tried moving the test.lc file up and down in the file structure and changed path names in HTACCESS and placing the test.lc file in that directory - still the same.
So I must be doing something wrong between cg-bin and .htaccess. The /cgi-bin/livecode-server part of the message is plugged in automatically by the system and the test.lc bit obviously from what I typed in the url http://www.mystite.xxx/test.lc which then gives me the message as above.
Still a problem for me
Danny
Re: HTACCESS Install on shared hosting problem
What is your htaccess file ? Here is one I use on a shared hosting site.
Code: Select all
Options ExecCGI FollowSymLinks
AddHandler livecode-script .lc .irev
DirectoryIndex index.irev index.lc index.html
Action livecode-script /cgi-bin/livecode-server
-
- VIP Livecode Opensource Backer
- Posts: 37
- Joined: Wed Apr 11, 2012 1:43 pm
Re: HTACCESS Install on shared hosting problem
Hi Bangkok
Thanks for your kind assistance- you have "DirectoryIndex index.irev index.lc index.html" which I did not have before so ...
I changed my HTACCESS file to be exactly like the one you sent and still get "The requested URL /cgi-bin/livecode-server/test.lc was not found on this server" - now I am starting to run out of ideas.
Regards
Danny
Thanks for your kind assistance- you have "DirectoryIndex index.irev index.lc index.html" which I did not have before so ...
I changed my HTACCESS file to be exactly like the one you sent and still get "The requested URL /cgi-bin/livecode-server/test.lc was not found on this server" - now I am starting to run out of ideas.
Regards
Danny
-
- VIP Livecode Opensource Backer
- Posts: 37
- Joined: Wed Apr 11, 2012 1:43 pm
Re: HTACCESS Install on shared hosting problem
Hi Bangkok
Thanks for your kind assistance- you have "DirectoryIndex index.irev index.lc index.html" which I did not have before so ...
I changed my HTACCESS file to be exactly like the one you sent and still get "The requested URL /cgi-bin/livecode-server/test.lc was not found on this server" - now I am starting to run out of ideas.
Regards
Danny
Thanks for your kind assistance- you have "DirectoryIndex index.irev index.lc index.html" which I did not have before so ...
I changed my HTACCESS file to be exactly like the one you sent and still get "The requested URL /cgi-bin/livecode-server/test.lc was not found on this server" - now I am starting to run out of ideas.
Regards
Danny
Re: HTACCESS Install on shared hosting problem
If it helps at all, my .htaccess (working) reads...
Very similar, but I need a + before ExecCGI and dont have the followsymlinks
One thought would be perhaps your provider maps the default /cgi-bin path to another folder, have you tried putting in the whole path from the root of the server into the action path in case the livecode-sever is simply not being found at all.
Code: Select all
Options -Indexes +ExecCGI
AddHandler livecode-script .lc
Action livecode-script /cgi-bin/livecode-server
One thought would be perhaps your provider maps the default /cgi-bin path to another folder, have you tried putting in the whole path from the root of the server into the action path in case the livecode-sever is simply not being found at all.
Re: HTACCESS Install on shared hosting problem
What shared host are you using? (if you don't mind my asking) Based on the error you get, it does appear that the .lc extension is being found, so its probably the livecode-server that is not being located. Makes me wonder what might be quirky about the setup on your shared host. You said that you placed everything in the proper locations, but just to confirm, the livecode-server and its support folders are in the root of your cgi-bin folder, and you said you confirmed the permissions of 755 on the livecode-server file itself.
If this is the case, it seems that it SHOULD work. MIght be time to contact support for the host and ask.
Hmm, the only other thing I can think to ask is.. did you create your own cgi-bin folder? If so, it won't be script aliased properly, you need to make sure you use the user script aliased folder in that should have already existed. (again, i'm sure this is not the case, but something to check)
If this is the case, it seems that it SHOULD work. MIght be time to contact support for the host and ask.
Hmm, the only other thing I can think to ask is.. did you create your own cgi-bin folder? If so, it won't be script aliased properly, you need to make sure you use the user script aliased folder in that should have already existed. (again, i'm sure this is not the case, but something to check)
-
- VIP Livecode Opensource Backer
- Posts: 37
- Joined: Wed Apr 11, 2012 1:43 pm
Re: HTACCESS Install on shared hosting problem
Thanks to both of you for your answers and suggestions - much appreciated. i think you may be right, livecode-server is installed in cgi-bin (in root) but the cgi-bin folder is probably not properly set-up and I will now get the hosting company (Hetzner) to look at that for me.
Thanks again
Danny
Thanks again
Danny
Re: HTACCESS Install on shared hosting problem
For test purpose, you could very well install Livecode server files... into your public_html directory.
That could be easier for you to make your tests, and to avoid the file path issue.
That could be easier for you to make your tests, and to avoid the file path issue.