SmartFAQ is developed by The SmartFactory (, a division of InBox Solutions (

How do I change the password for a site?
When you install Xoops you choose a username and password that is used to create the database etc. The password is encrypted and placed into mainfile.php. If I want to change the password how do I generate a new encrypted password so that I can edit mainfile.php and replace it it? This is something I might want to do on a regular basis to increase site security.

If you are referring to the site's database password: You can change this at any time by editing mainfile.php, BUT you must also change (or add the new password) to the site's database access on the server to match this. Failure to match passwords will stop the site connecting and result in an error page.

Always return the mainfile.php back to chmod 0444 to maintain minimal access.

The comments are owned by the author. We aren't responsible for their content.

 New site password

The password contained in mainfile.php is encrypted by the XOOPS installation routine. What I am looking for is the method to encrypt a new password for storing in mainfile.php.



Who's Online

76 user(s) are online (1 user(s) are browsing XOOPS FAQ)

Members: 0

Guests: 76



Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Did you know ?

you can add a help link into the register page.

Random question

How do I safely remove the page within Xoops that says :"If the page does not automatically reload, please click here" ? I feel like it's buggy.