Frequently Asked Questions

Support

Please raise any support questions via ticket for the quickest possible responce

How to install GhostX

Once you have purchased your license key the install comands will become visiable in the client area

How do install GhostX

One you have purchased your key the install comands will become visiable in the client area

Reset Admin User


Run in MySQL:
sql
Copy

USE `ghostx`;
REPLACE INTO `users`(`id`, `username`, `password`, `member_group_id`, `status`, `owner_id`, `date_registered`)
VALUES(1, 'admin', '$6$rounds=20000$ghostx$eQfRsD2gsIUhoY5RnnYN82qiB5VeZTcHICQrFxXpa98J2R1454b6lzVHVjiJ.NP0gi0X3K7NXVgxeR1VhVhg61', 1, 1, 0, UNIX_TIMESTAMP());

Change the password afterward

Migration

Migration

Restore your old database to ghostx_migrate:
bash
Copy

mysql ghostx_migrate < database.sql

Migrate via: http://yoursite.com:8080/accesscode/setup or run:
bash
Copy

/home/ghostx/bin/php/bin/php /home/ghostx/includes/cli/migrate.php

Restore a blank database:
bash
Copy

mysql ghostx < /home/ghostx/bin/install/database.sql

Load Balancer Offline

Run via SSH:
bash
Copy

/etc/init.d/ghostx stop
/etc/init.d/ghostx start

Follow error logs to resolve issues (e.g., MySQL, licenses, missing libraries).

MySQL Access Denied



Main Server: Update credentials in /home/ghostx/config/config.ini under [Encrypted], then restart the panel.

Load Balancers: Regenerate MySQL authentication via Management > Tools > Quick Tools > General or reinstall the load balancer.

Service Commands

service ghostx <start|stop|reload|restart>
Example: service ghostx start

Generate License

After a new installation, the license will be generated from the setup page. This can be accessed via: http://yoursite.com:8080/accesscode Each installation has a unique access code. If yours doesn’t work, follow the Access Code instructions below.

No Access Code

If you can’t access the admin interface:

Check /home/ghostx/bin/nginx/conf/codes/ for .conf files. Use one as your access code.

If no valid codes exist:

Copy template to admin.conf and edit:

Replace #CODE# with admin.

Replace #TYPE# with admin.

Delete #WHITELIST#.

Run in MySQL:
sql
Copy

USE `ghostx`;
INSERT INTO `access_codes`(`code`, `type`, `enabled`, `groups`)
VALUES ('admin', 0, 1, '[1]');

Reload the service: service ghostx reload.

Access via: http://yoursite.com:8080/admin.

Login Error: "You do not have access"
Use the No Access Code instructions to create a new admin access code.