Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Unable to write index.html in the web pages dir

Quote Reply
Unable to write index.html in the web pages dir
I'm very hungry with this CGI.
All the night and the day about this stupid installation.
Verifying 10 times all the CHMOD
Launching 50 times the building pages and the staggered functions. Allways the same result, THE INDEX.HTML in my web pages folder is BLANK.
After repeat all this, i think i've understood what's wrong with this script.
In fact, when it build the category folder, it give it the CHMOD 511 !!!!????!!!
Yes, here is the result with the staggered function (step 2):

Pragma: no-cache Content-type: text/html

Building Pages

Step: Rebuilding Category Pages


Pages built on 6-May-2001 at 12:50:18
--------------------------------------------------------

Rebuilding Categories 0 -> 19.

** Building Category: clubs_europe ...
Building Category: clubs_europe
Subcategories: 1
Links: 1
Making Directory (511): '/www/studiojb/futsal/links2/pages/clubs_europe' ...Made. CHMOD (511) ...Done.
Directory: /www/studiojb/futsal/links2/pages/clubs_europe
Filename : /www/studiojb/futsal/links2/pages/clubs_europe/index.html

The last line is not true because the CGI can not write in this folder, then the index.html page in the clubs_europe folder doesn't exist !
Where can i find and change this ???
The result is that nothing in this folder is writing.
No sub-directory, no files, ...

I don't understand why the index.html in the upper folder (pages dir) is blank too, but perhaps its pb is connected with this one.

PLEASE HELP !!!!



Quote Reply
Re: Unable to write index.html in the web pages dir In reply to
Uh...511 is the same as 777. 511 is the UNIX code for 755. What more info? Click on the following search link:

511 Unix

OR click on the following link:

http://lookhard.hypermart.net/look-bin/Look/511.cgi

This script shows results of "printing 0777" (print 0777;).

So, that is not the problem.

What I would recommend at this point is the following:

1) Delete your links2/pages folders and files.
2) Then re-install Links 2.0.
3) Set the path/url variables correctly in the links.cfg file.
4) Then set the permissions again.

Sometimes re-installing the script does the trick.

Also, some web servers do not accept chmod 777. Try using 0766 in the links.cfg file and changing permissions of links2/pages to 766 and other folders as mentioned before in that folder to 766.

Also, PLEASE do not post duplicate Threads...just add replies to your original Threads if the issue has not been resolved!

Regards,

Eliot Lee
Quote Reply
Re: Unable to write index.html in the web pages dir In reply to
I bet you didn't search the forum first... I quickly searched it and loads of results came up. Here's a few of them.


Why 511?

http://www.gossamer-threads.com/perl/forum/showflat.pl?Cat=&Board=L2Unix&Number=126618&page=&view=&sb=&vc=1


Why are index pages blank?

http://www.gossamer-threads.com/perl/forum/showflat.pl?Cat=&Board=L2Unix&Number=18831&page=&view=&sb=&vc=1

http://www.gossamer-threads.com/perl/forum/showflat.pl?Cat=&Board=L2Unix&Number=89491&page=&view=&sb=&vc=1

http://www.gossamer-threads.com/perl/forum/showthreaded.pl?Cat=&Board=L2Unix&Number=92751&Search=true&Forum=L2Unix&Words=blank index&Match=And&Searchpage=0&Limit=700&Old=allposts

Glenn

Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
Quote Reply
Re: Unable to write index.html in the web pages di In reply to
Thanks for replying.
well, i ve made all your proposition, and completed this with the modif of the template.pl as suggested by Glennu. See the modification page :
http://gossamer-threads.com/scripts/resources/Detailed/877.html

Then it's working like it should be. HOURRA !!
Very happy to see something in the html pages.

Otherwise, i have an other pb, when i try to modify a link, with this message :

Error: Unable to Modify Link
There were problems modifying the record:

* Date (Invalid date format)

I'm looking for in the "search" and in the other boards area

Jerome


Quote Reply
Re: Unable to write index.html in the web pages di In reply to
Hello glennu and many thanks to give me the right direction to find the solution.

See the modification page :
http://gossamer-threads.com/scripts/resources/Detailed/877.html

Then it's working like it should be. HOURRA !!
Very happy to see something in the html pages.

Otherwise, i have an other pb, when i try to modify a link, with this message :

Error: Unable to Modify Link
There were problems modifying the record:

* Date (Invalid date format)

I'm looking for solutions in the "search area" and in the other boards.

Jerome

Quote Reply
Re: Unable to write index.html in the web pages di In reply to
1. Have you altered anything in links.def?

2. Post the date entry of the link you wish to modify. Remember the date must be in the format: 23-May-2001



Glenn

Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
Quote Reply
Re: Unable to write index.html in the web pages di In reply to
Thanks to reply Glenn,
nothing is altered in the links.def file
the date format is : 5-May-2001

What's wrong ?

Quote Reply
Re: Unable to write index.html in the web pages di In reply to
Check the modify.cgi script for $in{$db_cols[$db_modified]} = &get_date;.

Make sure that you have not inadvertantly deleted or hacked the $db_modified variable in the links.def file.

Also, if you are using Perl 5.006 in your web server, then you need to apply the date codes posted in this forum about a month ago...search for perl 5.006.

Regards,

Eliot Lee
Quote Reply
Re: Unable to write index.html in the web pages di In reply to
Hello Eliot, i've Check the modify.cgi script for :

$in{$db_cols[$db_modified]} = &get_date;.
and i'm sure that i have not inadvertantly deleted or hacked the $db_modified variable in the links.def file.

So, i've search the message about the perl 5.006 modification and i've found this:

http://www.gossamer-threads.com/perl/forum/showflat.pl?Cat=&Board=L2Unix&Number=123915&page=&view=&sb=&vc=1

in links.cfg It would look like:
$time = &Time::Local::timelocal(0,0,0, $day, $months{$mon}, $year1);

message from "designerx" and comment by you.

I've made this modification, still no change for the error message.
Always the same date error.
was there the good message board you talk about ?
if not, thanks to give me the good address.
if yes, the true is away …

Thanks for your response,
Best regards,
JB