PostNuke: A Flexible Open Source Content Management System
home | forum | international support | contact us

Documentation Wiki

PostNuke Swiss Army Knife tool


The PostNuke Swiss Army Knife tool (commonly referred to as PSAK) to a small utility to solve a number of common issues with your PostNuke site. It can perform the following tasks:

  • Encode the database username and password in config.php
  • Enable or disable the 'intranet' option
  • Reset the default site theme to a known good one
  • Reset PN permissions to the shipped defaults
  • Display a phpinfo report

The utility can be downloaded from the downloads archive. Place the file in the PostNuke root (with index.php, admin.php, modules.php etc.) and then call from a browser e.g. http://www.example.com/psak.php.

It's important to remove the file after use since this tool bypasses much of the security built into PN in order to fix the problems it fixes.

Back to the Knowledge Base

CategoryKnowledgeBase
XML Revisions of $tag
Page history :: Last Editor [ markwest ] :: Owner [ markwest ] ::
Valid XHTML :: Valid CSS :: Powered by pnWikka 1.0 (A wiki fork from WikkaWiki)
 

5 Comments so far

(Latest comments )

ctimmer's Avatar

1. ctimmer wrote on Jul 05, 2006 at 06:52 PM

To avoid having to remove the psak.php file every time I use it I:

1. Add 1 line of code to psak.php (before any other PHP code):
cd ('../<pnroot>') ;

2. Create a password protected directory (eg. PSAKDir) at the same level as my PostNuke root directory and copy the modified psak.php file to it.

3. Use the following URL:
http://myhost/PSAKDir/psak.php

I haven't tested this with the latest version. PostNuke versions 750+ work with an absolute path so the psak.php could be placed just about anywhere in the HTML path after modify the PHP cd command.

Curt</pnroot>
ctimmer's Avatar

2. ctimmer wrote on Jul 07, 2006 at 11:31 PM

Sorry:
Quotecd ('../<pnroot>') ;</pnroot>

was supposed to be
chdir ('../<pnroot>') ;

Curt</pnroot>
mhalbrook's Avatar

3. mhalbrook wrote on Dec 10, 2006 at 12:26 AM

WHy do that, just change the name of the file to something obscure..

bhojoy007's Avatar

4. bhojoy007 wrote on Mar 04, 2007 at 02:40 PM

when i uploaded PSAK on the public_html . but still can't run the tool when i browse http://mydomain.com/psak.php

one thing when you upload the PSAK is it only psak.php file or include the PSAK folder

gpbarth's Avatar

5. gpbarth wrote on Mar 17, 2008 at 02:34 PM

Another thing that I just found out - when I uploaded the file and launched it, I got a 500 error (I''m on an iPower site), and I had to change the permissions on the psak.php file to 666 before it would work.

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to PostNuke