When I click on "php" in the linksSQL Admin area..... nothing comes up.. I get a forbidden error. Do I need to set some permission differently..?
Mar 17, 2002, 11:49 AM
Administrator (9387 posts)
Mar 17, 2002, 11:49 AM
Post #2 of 19
Views: 10260
Hi,
Typically you can't run php scripts that are inside the cgi-bin. You need to move page.php to a separate directory outside of the cgi-bin, and then goto Setup->Paths and URL's and enter in the URL to where you moved the program.
Cheers,
Alex
--
Gossamer Threads Inc.
Typically you can't run php scripts that are inside the cgi-bin. You need to move page.php to a separate directory outside of the cgi-bin, and then goto Setup->Paths and URL's and enter in the URL to where you moved the program.
Cheers,
Alex
--
Gossamer Threads Inc.
Mar 19, 2002, 3:39 PM
User (144 posts)
Mar 19, 2002, 3:39 PM
Post #3 of 19
Views: 10175
I work whit the spanish version
I have make the changes and now work but my php Homepage display this error:
We don't seem to have a category by the name 'pages/page.php'.
And the search function doesn't work, only work when return an search error whitout results, with results I get an PHP.exe error on windows an by Apache an 500 error.
-----------------------
Nomada
I have make the changes and now work but my php Homepage display this error:
We don't seem to have a category by the name 'pages/page.php'.
And the search function doesn't work, only work when return an search error whitout results, with results I get an PHP.exe error on windows an by Apache an 500 error.

-----------------------
Nomada
Mar 22, 2002, 6:01 PM
Staff / Moderator (4101 posts)
Mar 22, 2002, 6:01 PM
Post #4 of 19
Views: 10241
Mar 23, 2002, 5:14 AM
User (144 posts)
Mar 23, 2002, 5:14 AM
Post #6 of 19
Views: 10128
Hi Adrian:
I am making tests in my 'localhost'.
I know that this is a bug because I have installed the program and I have not modified the initial setup, only the changes that Alex explains above.
Your you can explain to me the changes that I need to make so that it works?
Thanks!
-----------------------
Nomada
I am making tests in my 'localhost'.
I know that this is a bug because I have installed the program and I have not modified the initial setup, only the changes that Alex explains above.
Your you can explain to me the changes that I need to make so that it works?
Thanks!
-----------------------
Nomada
Mar 23, 2002, 1:16 PM
Staff / Moderator (4101 posts)
Mar 23, 2002, 1:16 PM
Post #7 of 19
Views: 10167
What exactly are the errors you're getting? If you're getting a 500 error, then it's due to the webserver trying to run it as a CGI. If it's another error, what's the error? You can easily fix the 500 error by moving the page.php out of the cgi-bin directory, say to the webroot, and then updating the URL to page.php in Setup => Paths and URLs => db_php_url.
Adrian
Adrian
Mar 23, 2002, 1:30 PM
User (144 posts)
Mar 23, 2002, 1:30 PM
Post #8 of 19
Views: 10234
I have make these steps:
1. Change the page.php to other directory out of /cgi-bin
2. Change the URL to db_php_url
The template home.html works fine, I can see the homepage Ok, but I get only the error:
We don't seem to have a category by the name 'pages/page.php'.
at the area where the <%category%> should be shown...
At the browser bar I see: http://localhost/pages/page.php
Which are the problem?
-----------------------
Nomada
1. Change the page.php to other directory out of /cgi-bin
2. Change the URL to db_php_url
The template home.html works fine, I can see the homepage Ok, but I get only the error:
We don't seem to have a category by the name 'pages/page.php'.
at the area where the <%category%> should be shown...
At the browser bar I see: http://localhost/pages/page.php
Which are the problem?
-----------------------
Nomada
Mar 23, 2002, 2:12 PM
Staff / Moderator (4101 posts)
Mar 23, 2002, 2:12 PM
Post #9 of 19
Views: 10123
I think you should take a look at this post: http://www.gossamer-threads.com/...orum.cgi?post=170681.
It sounds like you're trying to create a static directory using the PHP frontend (which only works dynamically).
Adrian
It sounds like you're trying to create a static directory using the PHP frontend (which only works dynamically).
Adrian
Mar 23, 2002, 5:56 PM
User (144 posts)
Mar 23, 2002, 5:56 PM
Post #10 of 19
Views: 10116
Hi brewt:
I not build the static directory with default_php templates.
I have follow the 2 steps and not work.
I work perfectly with PHP4 on my system and the rest of menulinks of LinkSQL works fine (HOME • ADD A LINK • MODIFY A LINK • NEW LINKS • COOL LINKS • TOP RATED...) But I can't search neither explore the categories...
I work with spanish version and php frontend is not translated... May be a problem?
Help me please.
-----------------------
Nomada
I not build the static directory with default_php templates.
I have follow the 2 steps and not work.
I work perfectly with PHP4 on my system and the rest of menulinks of LinkSQL works fine (HOME • ADD A LINK • MODIFY A LINK • NEW LINKS • COOL LINKS • TOP RATED...) But I can't search neither explore the categories...
I work with spanish version and php frontend is not translated... May be a problem?
Help me please.
-----------------------
Nomada
Apr 3, 2002, 11:56 PM
Staff / Moderator (4101 posts)
Apr 3, 2002, 11:56 PM
Post #13 of 19
Views: 10019
Apr 7, 2002, 7:39 AM
User (144 posts)
Apr 7, 2002, 7:39 AM
Post #14 of 19
Views: 9963
Hi Adrian:
I have said:
And the problem are detailed:
I have follow the 2 steps and not work.
I work perfectly with PHP4 on my system and the rest of menulinks of LinkSQL works fine (HOME • ADD A LINK • MODIFY A LINK • NEW LINKS • COOL LINKS • TOP RATED...) But I can't search neither explore the categories...
I work with spanish version and php frontend is not translated... May be a problem?
Need you more information?
Thank you again!
-----------------------
Nomada
I have said:
Quote:
I am making tests in my 'localhost'.And the problem are detailed:
Quote:
I not build the static directory with default_php templates. I have follow the 2 steps and not work.
I work perfectly with PHP4 on my system and the rest of menulinks of LinkSQL works fine (HOME • ADD A LINK • MODIFY A LINK • NEW LINKS • COOL LINKS • TOP RATED...) But I can't search neither explore the categories...
I work with spanish version and php frontend is not translated... May be a problem?
Need you more information?
Thank you again!
-----------------------
Nomada
Apr 7, 2002, 12:23 PM
Staff / Moderator (4101 posts)
Apr 7, 2002, 12:23 PM
Post #15 of 19
Views: 9948
Hmm... looking at the code, it seems it's something to do with the path_info_to_page() function in Page.php. What webserver are you using? It seems to be setting the variable PATH_INFO to be the path of the file instead of what's being passed in after the CGI. What that piece of code was meant to do was to be like the CGI version of LinksSQL where you could go:
http://www.myhost.com/cgi-bin/page.cgi/SomeCategoryName/anothersubcat
It seems it doesn't work too well on Win32 with that webserver (I'm assuming it's IIS or something). A temporary solution would be to edit admin/Links/PHP/Page.php line 41 from:
path_info_to_page();
}
elseif (!$cat_id) {
generate_home_page();
}
else {
generate_category_page();
}to:
# path_info_to_page();
# }
if (!$cat_id) {
generate_home_page();
}
else {
generate_category_page();
}
Adrian
http://www.myhost.com/cgi-bin/page.cgi/SomeCategoryName/anothersubcat
It seems it doesn't work too well on Win32 with that webserver (I'm assuming it's IIS or something). A temporary solution would be to edit admin/Links/PHP/Page.php line 41 from:
Code:
if (isset($HTTP_SERVER_VARS['PATH_INFO'])) { path_info_to_page();
}
elseif (!$cat_id) {
generate_home_page();
}
else {
generate_category_page();
}
Code:
# if (isset($HTTP_SERVER_VARS['PATH_INFO'])) { # path_info_to_page();
# }
if (!$cat_id) {
generate_home_page();
}
else {
generate_category_page();
}
Adrian
Nov 27, 2002, 3:51 AM
Novice (26 posts)
Nov 27, 2002, 3:51 AM
Post #17 of 19
Views: 9311
Hiya,
I just get the same error here.
I got a dedicated server running on Linux.
I moved the page.php out of the cgi-bin into the webserver root and modified URL in the setup section.
First I got a 500 Internal Server Error message. Then I chomodded the file to 777 and now I only get "No suche template: TemplateName".
In that path that Adrian mentionend I couldn't find that file pointed out so I couldn't alter it.
Any suggestions?
wsjb78
----------------------------------------------
The third principle of sentient life is the capacity for self-sacrifice, the conscious ability to override evolution and self- preservation for a cause, a friend, a loved one.
ICQ: 171751720
I just get the same error here.
I got a dedicated server running on Linux.
I moved the page.php out of the cgi-bin into the webserver root and modified URL in the setup section.
First I got a 500 Internal Server Error message. Then I chomodded the file to 777 and now I only get "No suche template: TemplateName".
In that path that Adrian mentionend I couldn't find that file pointed out so I couldn't alter it.
Any suggestions?
wsjb78
----------------------------------------------
The third principle of sentient life is the capacity for self-sacrifice, the conscious ability to override evolution and self- preservation for a cause, a friend, a loved one.
ICQ: 171751720
Nov 28, 2002, 1:19 AM
Novice (26 posts)
Nov 28, 2002, 1:19 AM
Post #19 of 19
Views: 9216
Ok, I just wrote a message to the support.
I mainly wanna use the static option of Links SQL but some sites require to have it run on PHP.
wsjb78
----------------------------------------------
The third principle of sentient life is the capacity for self-sacrifice, the conscious ability to override evolution and self- preservation for a cause, a friend, a loved one.
ICQ: 171751720
I mainly wanna use the static option of Links SQL but some sites require to have it run on PHP.
wsjb78
----------------------------------------------
The third principle of sentient life is the capacity for self-sacrifice, the conscious ability to override evolution and self- preservation for a cause, a friend, a loved one.
ICQ: 171751720