Note

You are viewing the documentation for an older release of Interworx (7.14). To see documentation for the current generally available release of Interworx, click here: 8.2.

How to: Manage SiteWorx Accounts

The InterWorx Control Panel is divided into two main tools: NodeWorx and SiteWorx. NodeWorx is the server administrator and reseller interface, and SiteWorx is the website administrator interface.

When the server administrator or reseller wants to create a website, they create a SiteWorx Account. Each SiteWorx account is mapped to an IP and a unique unix user on the server. A SiteWorx account can be permitted to have multiple domains.

From the NodeWorx interface, the server administrator or reseller can also log directly into a SiteWorx account and bypass authentication.

SiteWorx accounts are accessed via https://domain.com:2443/siteworx. If DNS for the domain does not yet resolve to the server, the server’s IP address or hostname can be used in place of the domain to access the interface.

Note

Accessing the server over port 2443 automatically uses the SSL certificate for the internal InterWorx webserver. Because of this, using https://domain.com:2443/siteworx to access SiteWorx may result in a security warning in the browser, even if the domain has its own SSL certificate. Using the server IP or hostname in place of the domain will work around that warning.

To Add a SiteWorx Account

  1. Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)

  2. In NodeWorx, navigate to SiteWorx > Accounts

  3. Click +. This opens the SiteWorx Account Management form

  4. Update the required fields. These include:

    • Master Domain: The SiteWorx account master domain

      Note

      The domain name should be entered without the ‘www’ prefix. The ‘www’ prefix will be properly dealt with by the underlying system.

    • IP Address: The IP Address used by the domain

    • Database Server: The database server associated with the SiteWorx account

    • Unix User Name: The unix user that will own the SiteWorx account’s content. By default, this is automatically generated based on domain name. It can be manually selected, as well

    • Nickname: (Optional) The name that will appear in the list of SiteWorx accounts

    • E-mail Address: The e-mail address of the SiteWorx account owner. This is the SiteWorx login and point of contact for the account

    • Password: The password for the SiteWorx account owner

    • Requires Password Change: If selected, the SiteWorx account owner will be prompted to change their password upon first login

    • Language: The default language of the SiteWorx account

    • Billing Day: The day of each month that the billing cycle starts. This is also the day the bandwidth counter resets each month for the SiteWorx account

    • Additional IP Addresses: Additional IP addresses that may be assigned to domains under the SiteWorx account

    • PHP Version: The PHP version that domains under the SiteWorx account will use by default

    • Available PHP Versions: Selected PHP versions will be available for domains under the SiteWorx account

    • Package Features: If SiteWorx Packages have been created, they can be selected from the Package Template dropdown. This will auto-fill the Package Features and Package options for the account

      • If a package has not been created, the options will have to be manually set. However, checking the Create New Package box will create a new package from the manually selected options

      • For details about each SiteWorx Package Feature, see SiteWorx Package Overview

    • Access to Softaculous: Whether the account is able to use Softaculous as a package installer

      • If No is selected, the SiteWorx account will not have access to Softaculous

    SiteWorx management form
  5. Click Save

To Log Into a SiteWorx Account from NodeWorx

  1. Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)

  2. In NodeWorx, navigate to SiteWorx > Accounts

  3. Click the Door next to the SiteWorx Account to log into. This opens the SiteWorx account in a new window

To Edit a SiteWorx Account

  1. Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)

  2. In NodeWorx, navigate to SiteWorx > Accounts

  3. Click the Pencil next to the SiteWorx account. This opens the SiteWorx Accounts Management form

  4. Modify the desired values

  5. Click Save

To Suspend a SiteWorx Account

Note

InterWorx 7.14.0 added new options for suspending SiteWorx accounts, including disabling the user’s shell, killing active and scheduled processes, and disabling MySQL users.

What Happens When a SiteWorx Account is Suspended

Default Behavior

  • SiteWorx account access:

    • Because the SiteWorx account is marked “Inactive”, SiteWorx users are blocked from logging into the account

  • Domain access:

    • The DocumentRoot in all associated vhosts is changed to /usr/local/interworx/var/errors/disabled

      • When accessing all associated domains, the index file located under /usr/local/interworx/var/errors/disabled is served, instead of the domain’s index page

        • Information on customizing the index file for disabled domains can be found here

  • Email and FTP:

    • If allow_email_and_ftp_while_suspended is disabled in ~iworx/iworx.ini, when the SiteWorx account is suspended, _off is appended to the password hash of all email and FTP accounts for each domain in the account

      • This blocks access to users’ FTP and email accounts

      • allow_email_and_ftp_while_suspended is disabled by default in ~iworx/iworx.ini

    • Email messages will continue to be sent to email addresses associated with the suspended SiteWorx account. Users will just be unable to log into those email inboxes while the SiteWorx account is suspended

    • If Mailman is installed, all mailing lists for the account are suspended

Optional Settings

  • Disable Shell: Disables the shell account for the master SiteWorx user. If multiple SSH is enabled, shell access for all secondary SiteWorx users is also disabled

  • Disable MySQL Users: If the MySQL server is capable of account locking, all MySQL username/hostname combinations are locked

    • Account locking is possible on servers running MySQL 8, MariaDB 10.4 with minor versions greater than 7, and all MariaDB versions greater than 10.5.8

  • Disable Scheduled Processes: Disables at and cron for the user, and removes existing scheduled jobs for those services

    • Cron:

      • The user is added to /etc/cron.deny to ensure they cannot modify the current crontab

      • The user’s crontab is removed, so that no additional jobs will run

      • The crontab is backed up, and is restored when the account is unsuspended

    • At:

      • The user is added to /etc/at.deny to ensure they cannot modify or create any additional at jobs

      • The user’s at jobs are removed, so no additional jobs will run

      • The at jobs are backed up and, if the time they should have run has not already passed, are restored when the account is unsuspended

  • Kill Active Processes: Runs killall -9 -u {unix_user} to end all currently running processes for the user, including all SSH and FTP connections, systemd-timers, mail scripts, etc

    • Note: This option should be used with caution

Suspending a SiteWorx Account

  1. Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)

  2. In NodeWorx, navigate to SiteWorx > Accounts

  3. Select Suspend from the With Selected dropdown

  4. Click Go. This opens the Confirm Suspension form

  5. (Optional) Select or update the desired options:

    • Message: This message is displayed to users when they attempt to login to SiteWorx. It is also visible in NodeWorx

    • Disable Shell: Disables the shell account for the master SiteWorx user. If multiple SSH is enabled, shell access for all secondary SiteWorx users is also disabled

    • Disable MySQL Users: Locks all MySQL users in the account

    • Disable Scheduled Processes: Disables at and cron for the user, and removes existing scheduled jobs for those services

    • Kill Active Processes: Runs killall -9 -u {unix_user} to end all currently running processes for the user

  6. Click Suspend to confirm suspending the account

To Unsuspend a SiteWorx Account

Note

Access to the account will be granted after the next fively cron runs. As such, it may take up to five minutes for the account to be accessible.

If access is desired sooner, this step can be manually completed by running the cron at the CLI:

~iworx/cron/iworx.pex --fively

  1. Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)

  2. In NodeWorx, navigate to SiteWorx > Accounts

  3. Select Unsuspend from the With Selected dropdown

  4. Click Go. This opens the Confirm Enabling form

  5. Click Unsuspend to confirm re-enabling the account

To Delete a SiteWorx Account

Warning

Note: Deleting a SiteWorx account will delete all of the files and data associated with that account.

  1. Log into NodeWorx from the browser (https://ip.ad.dr.ess:2443/nodeworx)

  2. In NodeWorx, navigate to SiteWorx > Accounts

  3. Select the checkbox next to the account to be deleted

  4. Select Delete from the With Selected dropdown

  5. Click Go. This opens the Confirm Deletion form

  6. Select the Confirm Action checkbox

  7. Click Delete to confirm the deletion of the account