Moderated by: FocalMedia Team, Miles, Gerrit, Rian

FocalMedia.Net Forums » PowerSeek »  Installations, Help, Support, etc.

Page: 1 of 1

« Back to Topic Index Page 1 | Replies: 5

 Author  Topic: Changing permission settings of generated html.
  Tracy

New Member
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of Tracy  Posted on: May 13, 2008 - 11:21am
There's probably an easy way to do this but unfortunatetly I have to ask anyway. Currently when Powerseek generates html files it sets the permission to 777, in order for them to work on my host they need to be 755. I'm generating html files & then changing permissions on all the files in my ftp client, effective but time consuming.


Total Posts: 8 | Joined: May 10, 2008 - 11:29am | IP Logged

FocalMedia Team

Moderator
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of FocalMedia Team  Posted on: May 13, 2008 - 1:30pm
To change the permissions of the files being generated open a file called htbuild.pm with a Unix compatible text editor like TextPad. You can get TextPad at textpad.com

Near the top of the file you will see:
$default_permissions = 0777; ### PERMISSIONS THAT IS USED FOR TEMPORARY DATA FILES

Change it to look like:

$default_permissions = 0755; ### PERMISSIONS THAT IS USED FOR TEMPORARY DATA FILES

It says that it's only for temporary files but this permission mask is also used for generated HTML files.

Gerrit



Total Posts: 1453 | Joined: Jul 27, 2002 - 4:28am | IP Logged

  Tracy

New Member
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of Tracy  Posted on: May 13, 2008 - 9:38pm
The line has been changed & double checked, still generates html files with 777 permission. Why?


Total Posts: 8 | Joined: May 10, 2008 - 11:29am | IP Logged

Tracy

New Member
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of Tracy  Posted on: May 14, 2008 - 1:36pm
Hello Gerrit, I used a text editor located on my host which is Linux. The text appears changed to 755. What else can I try?

Tracy


Total Posts: 8 | Joined: May 10, 2008 - 11:29am | IP Logged

FocalMedia Team

Moderator
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of FocalMedia Team  Posted on: May 15, 2008 - 12:59am
Also open generate.cgi and do the same with htbuild.pm

Gerrit


Total Posts: 1453 | Joined: Jul 27, 2002 - 4:28am | IP Logged

  Tracy

New Member
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of Tracy  Posted on: May 15, 2008 - 11:34am
Thank you, much easier.

Tracy


Total Posts: 8 | Joined: May 10, 2008 - 11:29am | IP Logged


Lock Topic

 

Forum Legend

New Member

Reply to topic

More than 50 posts | Member

Reply to topic with quoted message

More than 100 posts | Full Member

Edit Message

More than 150 posts | Advanced Member

View profile

More than 200 posts | Advanced Member

Email member