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

can't build or email , permisions denied??

Quote Reply
can't build or email , permisions denied??
I am having difficulty installing on a Unix server

The script runs and the admin page is ok until after adding several categories and links I try to build my pages

I can add categories and links but come to a screaming halt from then on

also I can't email to links subscribers

I am using the templates option and these are in the default admin directory I have uploaded all files several times and set the permissions as per instructions but when I try to build - message is that I don't have access, this also aoccurs when I try the home link?

PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/home/ebookz/cgi-bin/links/admin";
$db_dir_url = "http://ebookz.port5.com/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://ebookz.port5.com/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/ebookz/cgi-bin/links/pages";
$build_root_url = "http://ebookz.port5.com/cgi-bin/links/pages";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/New";
$build_new_url = "$build_root_url/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_root_url/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";
--------------------------------------------------------------

# PATH of sendmail. # SMTP Server
$db_mail_path = '/usr/lib/sendmail'; $db_smtp_server = '';

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'gateway@telpacific.com.au';

---------------------------------------------------------

# Log all outgoing messages? Put the full path to a logfile and make sure it
# exists and is writeable (chmod 666 -rw-rw-rw-). This logfile can get pretty
# big!
$db_mailer_log = '/home/ebookz/cgi-bin/list/admin/';
---------------------------------------------------------------------

# Use Templates: instead of editing site_html.pl, you can edit regular html pages
# encoded with special <%links_tags%>. It's not as flexible as site_html.pl, but it
# may be easier.
$build_use_templates = 1;

# Site Title, the default title to use. You should really spend some time customizing
# the directory though!
$build_site_title = 'Mass Mailing List';



I would greatly appreciate any assistance and yes! I am a novice willing to learn

thanks, Steve

Last edited by:

gateway: Jan 23, 2002, 11:50 PM
Quote Reply
Re: [gateway] assistance with Links 2.0 Unix In reply to
What error messages are you getting when building?

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] assistance with Links 2.0 Unix In reply to
You are not authorized to view this page You might not have permission to view this directory or page using the credentials you supplied.I have virtually chmod 777 all cgi's in desperation
Quote Reply
Re: [gateway] assistance with Links 2.0 Unix In reply to
Could I have a look (PM me)???

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] assistance with Links 2.0 Unix In reply to
this is the error I have chmod 777 to all cgi' pl's in desperation You are not authorized to view this page You might not have permission to view this directory or page using the credentials you supplied.
Quote Reply
Re: [gateway] assistance with Links 2.0 Unix In reply to
That really doesn't help much. Ok, if you don't want to give me your admin URL, then what does the bottom of links.cfg look like?

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] assistance with Links 2.0 Unix In reply to
pls do I don't have admin protected as yet

thanks,

Steve
Quote Reply
Re: [AndyNewby] assistance with Links 2.0 Unix In reply to
sorry I misunderstood PM??

URL http://ebookz.port5.com/cgi-bin/links/admin/admin.cgi
Quote Reply
Re: [gateway] assistance with Links 2.0 Unix In reply to
Ok. This may sound stupid, but is nph-build.cgi CHMODed to 755?

Andy

EDIT: Ooohh..this is my 2000th post Smile

Last edited by:

AndyNewby: Jan 24, 2002, 12:10 AM
Quote Reply
Re: [AndyNewby] assistance with Links 2.0 Unix In reply to
no,

I it is currently 777
-rwxrwxrwx 1 web-data 65533 11924 Jan 20 09:05 Mailer.pm
-rwxrwxrwx 1 web-data 65533 4526 Jan 20 09:06 Template.pm
-rwxrwxrwx 1 web-data 65533 5887 Jan 20 09:03 admin.cgi
-rwxrwxrwx 1 web-data 65533 71023 Jan 20 09:04 admin_html.pl
drwxrwxrwx 2 web-data 65533 4096 Jan 20 08:59 backup
-rwxrwxrwx 1 web-data 65533 3119 Jan 20 09:04 category.def
drwxrwxrwx 4 web-data 65533 4096 Jan 20 09:00 data
-rwxrwxrwx 1 web-data 65533 37893 Jan 20 09:04 db.pl
-rwxrwxrwx 1 web-data 65533 23352 Jan 20 09:04 db_utils.pl
-rwxrwxrwx 1 web-data 65533 9787 Jan 21 11:07 links.cfg
-rwxrwxrwx 1 web-data 65533 4670 Jan 20 09:05 links.def
-rwxrwxrwx 1 web-data 65533 0 Jan 20 11:00 links.log
-rwxrwxrwx 1 web-data 65533 47766 Jan 20 09:05 nph-build.cgi
-rwxrwxrwx 1 web-data 65533 7489 Jan 20 09:05 nph-email.cgi
-rwxrwxrwx 1 web-data 65533 7809 Jan 20 09:05 nph-verify.cgi
-rwxrwxrwx 1 web-data 65533 37115 Jan 20 09:06 site_html.pl
-rwxrwxrwx 1 web-data 65533 16355 Jan 20 09:06 site_html_templates.pl
drwxrwxrwx 2 web-data 65533 4096 Jan 20 08:59 templates

Last edited by:

gateway: Jan 24, 2002, 12:32 AM
Quote Reply
Re: [AndyNewby] assistance with Links 2.0 Unix In reply to
thanks Andy,I appreciate your assistance

-rwxrwxrwx 1 web-data 65533 11924 Jan 20 09:05 Mailer.pm
-rwxrwxrwx 1 web-data 65533 4526 Jan 20 09:06 Template.pm
-rwxrwxrwx 1 web-data 65533 5887 Jan 20 09:03 admin.cgi
-rwxrwxrwx 1 web-data 65533 71023 Jan 20 09:04 admin_html.pl
drwxrwxrwx 2 web-data 65533 4096 Jan 20 08:59 backup
-rwxrwxrwx 1 web-data 65533 3119 Jan 20 09:04 category.def
drwxrwxrwx 4 web-data 65533 4096 Jan 20 09:00 data
-rwxrwxrwx 1 web-data 65533 37893 Jan 20 09:04 db.pl
-rwxrwxrwx 1 web-data 65533 23352 Jan 20 09:04 db_utils.pl
-rwxrwxrwx 1 web-data 65533 9787 Jan 21 11:07 links.cfg
-rwxrwxrwx 1 web-data 65533 4670 Jan 20 09:05 links.def
-rwxrwxrwx 1 web-data 65533 0 Jan 20 11:00 links.log
-rwxrwxrwx 1 web-data 65533 47766 Jan 20 09:05 nph-build.cgi
-rwxrwxrwx 1 web-data 65533 7489 Jan 20 09:05 nph-email.cgi
-rwxrwxrwx 1 web-data 65533 7809 Jan 20 09:05 nph-verify.cgi
-rwxrwxrwx 1 web-data 65533 37115 Jan 20 09:06 site_html.pl
-rwxrwxrwx 1 web-data 65533 16355 Jan 20 09:06 site_html_templates.pl
drwxrwxrwx 2 web-data 65533 4096 Jan 20 08:59 templates



-rwxr-xr-x 1 web-data 65533 6088 Jan 20 10:11 add.cgi
drwxrwxrwx 5 web-data 65533 4096 Jan 21 12:53 admin
-rwxr-xr-x 1 web-data 65533 4879 Jan 20 10:11 jump.cgi
-rwxr-xr-x 1 web-data 65533 6894 Jan 20 10:11 modify.cgi
drwxrwxrwx 2 web-data 65533 4096 Jan 20 10:46 pages
-rwxr-xr-x 1 web-data 65533 4218 Jan 20 10:11 rate.cgi
-rwxr-xr-x 1 web-data 65533 11672 Jan 20 10:11 search.cgi
-rwxr-xr-x 1 web-data 65533 4813 Jan 20 10:12 subscribe.cgi


-rw-rw-rw- 1 web-data 65533 2709 Jan 20 08:56 add.html
-rw-rw-rw- 1 web-data 65533 3254 Jan 20 08:56 add_error.html
-rw-rw-rw- 1 web-data 65533 1999 Jan 20 08:56 add_success.html
-rw-rw-rw- 1 web-data 65533 2689 Jan 20 08:57 category.html
-rw-rw-rw- 1 web-data 65533 1892 Jan 20 08:57 cool.html
-rw-rw-rw- 1 web-data 65533 2035 Jan 20 08:57 detailed.html
-rw-rw-rw- 1 web-data 65533 421 Jan 20 08:57 email-add.txt
-rw-rw-rw- 1 web-data 65533 221 Jan 20 08:57 email-del.txt
-rw-rw-rw- 1 web-data 65533 444 Jan 20 08:57 email-mod.txt
-rw-rw-rw- 1 web-data 65533 2466 Jan 20 08:57 email.html
-rw-rw-rw- 1 web-data 65533 420 Jan 20 08:57 email_error.html
-rw-rw-rw- 1 web-data 65533 2123 Jan 20 08:57 home.html
-rw-rw-rw- 1 web-data 65533 476 Jan 21 11:28 link.html
-rw-rw-rw- 1 web-data 65533 2922 Jan 20 08:58 modify.html
-rw-rw-rw- 1 web-data 65533 3277 Jan 20 08:58 modify_error.html
-rw-rw-rw- 1 web-data 65533 1995 Jan 20 08:58 modify_success.html
-rw-rw-rw- 1 web-data 65533 1833 Jan 20 08:58 new.html
-rw-rw-rw- 1 web-data 65533 2171 Jan 20 08:58 rate.html
-rw-rw-rw- 1 web-data 65533 1870 Jan 20 08:58 rate_error.html
-rw-rw-rw- 1 web-data 65533 1686 Jan 20 08:58 rate_success.html
-rw-rw-rw- 1 web-data 65533 2407 Jan 20 08:59 rate_top.html
-rw-rw-rw- 1 web-data 65533 1984 Jan 20 08:59 search.html
-rw-rw-rw- 1 web-data 65533 2311 Jan 20 08:59 search_error.html
-rw-rw-rw- 1 web-data 65533 2656 Jan 20 08:59 search_results.html



-rw-rw-rw- 1 web-data 65533 227 Jan 21 19:53 categories.db
-rw-rw-rw- 1 web-data 65533 1 Jan 21 19:53 categoryid.txt
-rw-rw-rw- 1 web-data 65533 0 Jan 20 09:00 email.db
drwxrwxrwx 2 web-data 65533 4096 Jan 20 09:00 hits
-rw-rw-rw- 1 web-data 65533 305 Jan 21 20:13 links.db
-rw-rw-rw- 1 web-data 65533 1 Jan 21 20:13 linksid.txt
-rw-rw-rw- 1 web-data 65533 0 Jan 20 09:00 modified.db
drwxrwxrwx 2 web-data 65533 4096 Jan 20 09:00 rates
-rw-rw-rw- 1 web-data 65533 0 Jan 20 09:00 url.db
-rw-rw-rw- 1 web-data 65533 0 Jan 20 09:00 validate.db
Quote Reply
Re: [gateway] can't build or email , permisions denied?? In reply to
Firstly, .cgi files should be set to 755. Some servers won't let you have anything set to 777. Second, it isn't a very good idea to build your pages inside your cgi-bin... Move your /pages directory outside of your cgi-bin and you should be fine.

--Philip
Links 2.0 moderator

Last edited by:

King Junko II: Jan 24, 2002, 1:14 AM
Quote Reply
Re: [King Junko II] can't build or email , permisions denied?? In reply to
Thank you Phillip, I'll move pages folder and chmod cgi's 755

does this apply to .pl too?

does the script build pages from the templates that are located in the admin directory?

regards,

Steve

Last edited by:

gateway: Jan 24, 2002, 1:16 AM
Quote Reply
Re: [gateway] can't build or email , permisions denied?? In reply to
Quote:
does this apply to .pl too?

They need setting to 666 (although some servers will let you get away with 644)

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] can't build or email , permisions denied?? In reply to
>>They need setting to 666 (although some servers will let you get away with 644) <<

Both cgi/pl need to be 755, _unless_ they are "required" or "used" when they can be left as they are.

Last edited by:

RedRum: Jan 24, 2002, 3:29 AM
Quote Reply
Re: [RedRum] can't build or email , permisions denied?? In reply to
#### edit ###

Last edited by:

AndyNewby: Jan 24, 2002, 4:44 AM
Quote Reply
Re: [AndyNewby] can't build or email , permisions denied?? In reply to
Dude, he was clarifying the fact that cgi/pl files both need to be 755 unless they are imported files.... in which case (all the .pl files in Links) do not need to be touched as 666 or 644 is often the default mode setting when files are uploaded. He did NOT say all files must be 755 regardless. Check your bifocals old man ;-)

--Philip
Links 2.0 moderator
Quote Reply
Re: [King Junko II] can't build or email , permisions denied?? In reply to
Quote:
Check your bifocals old man ;-)


I'm far from old Wink Did I touch a nerve there Philip Tongue

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] can't build or email , permisions denied?? In reply to
No, but you seemed to not realize your agrument was both incorrect and moot. Yeah... definately time to see an optometrist pal.Tongue

--Philip
Links 2.0 moderator

Last edited by:

King Junko II: Jan 24, 2002, 4:31 AM
Quote Reply
Re: [AndyNewby] can't build or email , permisions denied?? In reply to
I was adding to what you'd already said, not disagreeing.

I don't appreciate the way you spoke to me and I'm sure Drew doesn't either.

I would have locked the thread but I won't incase gateway needs further assistance.

Last edited by:

RedRum: Jan 24, 2002, 11:49 AM
Quote Reply
Re: [RedRum] can't build or email , permisions denied?? In reply to
Sorry, just misread it Wink

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [AndyNewby] can't build or email , permisions denied?? In reply to
Guys, I have moved my pages folder out of cgi-bin and have reset all permissions as per instructions i.e.all pl & cgi to chmod 755 , 777 on hits,ratings and "pages" directories.

666 on all data directory files and templates.

Do I take it that the new pages are "Built" from templates as cats/links are added and that the templates can be modified entirely?

I can now access "home" from admin page, but still can't build or email, validate or verify?

"build" gives me 403 error

"validate" gives me "no records to validate"

error message for verifying is 403

here is the admin:

-rwxr-xr-x 1 web-data 65533 11924 Jan 20 09:05 Mailer.pm
-rwxr-xr-x 1 web-data 65533 4526 Jan 20 09:06 Template.pm
-rwxr-xr-x 1 web-data 65533 5887 Jan 20 09:03 admin.cgi
-rwxr-xr-x 1 web-data 65533 71023 Jan 20 09:04 admin_html.pl
drwxrwxrwx 2 web-data 65533 4096 Jan 20 08:59 backup
-rwxr-xr-x 1 web-data 65533 3119 Jan 20 09:04 category.def
drwxrwxrwx 4 web-data 65533 4096 Jan 20 09:00 data
-rwxr-xr-x 1 web-data 65533 37893 Jan 20 09:04 db.pl
-rwxr-xr-x 1 web-data 65533 23352 Jan 20 09:04 db_utils.pl
-rwxr-xr-x 1 web-data 65533 9759 Jan 24 09:24 links.cfg
-rwxr-xr-x 1 web-data 65533 4670 Jan 20 09:05 links.def
-rw-rw-rw- 1 web-data 65533 0 Jan 20 11:00 links.log
-rwxr-xr-x 1 web-data 65533 47766 Jan 20 09:05 nph-build.cgi
-rwxr-xr-x 1 web-data 65533 7489 Jan 20 09:05 nph-email.cgi
-rwxr-xr-x 1 web-data 65533 7809 Jan 20 09:05 nph-verify.cgi
-rwxr-xr-x 1 web-data 65533 37115 Jan 20 09:06 site_html.pl
-rwxr-xr-x 1 web-data 65533 16355 Jan 20 09:06 site_html_templates.pl
drwxrwxrwx 2 web-data 65533 4096 Jan 20 08:59 templates


"Pages" are now in my root directory

"links" dir which holds my user cgi and "admin" dir is off my cgi-bin



How did you know I was an old man with bi-focals?

Last edited by:

gateway: Jan 24, 2002, 12:19 PM
Quote Reply
Re: [gateway] can't build or email , permisions denied?? In reply to
Quote:
How did you know I was an old man with bi-focals?

errm... that comment about bifocals was intended for Andy.

Sounds like none of the nph-* scripts are working (although the error is usually associated with "premature end of script headers" and what not). It's a long shot, but perhaps trying one of the nph patches from the resource center will fix this.

Could you PM with some FTP info so I could have a go at fixing this?

--Philip
Links 2.0 moderator