Documentation
Sysadmin notes
Common server problems, their causes and solutions, documented by the UrbeStack team.
/
WebsitesApache · PHP · ModSecurity
A domain shows
No site is configured for this address on this server.ApacheA domain that points to the server returns 404 with No site is configured for this address on this server. Apache has no site with that domain or alias, so add the name as an alias or a domain to fix it.A form or an admin page returns 403 ForbiddenModSecuritySaving a page or submitting a form returns 403 Forbidden because ModSecurity treats the request as an attack. One command shows which rule matched, and another disables it for the domain.A long request reaches its execution time limitPHPA long-running page, import, or export stops with Maximum execution time of 30 seconds exceeded. The request reached max_execution_time, which you can raise in the domain's PHP settings.A long request returns 504 Gateway Timeout after 60 secondsApacheOn AlmaLinux, a PHP request that runs longer than 60 seconds ends with 504 Gateway Timeout even when PHP is allowed more time. Apache stops waiting for PHP after 60 seconds, and one command raises that limit.A setting in .user.ini has no effectPHPA site's .user.ini file has no effect on memory_limit, upload size, or time limits. UrbeStack locks those values for the site, and you can change them in the domain's PHP settings.A site behind Cloudflare loops with too many redirectsApacheA site behind Cloudflare loops with ERR_TOO_MANY_REDIRECTS after UrbeStack forces HTTPS in Apache. Cloudflare's Flexible mode connects over HTTP and keeps getting redirected to HTTPS, so switch to Full (strict) to stop the loop.A site fails because a PHP extension is offPHPA site can fail with Class "Redis" not found when an extension it needs is off for its PHP version. One command lists the extensions, and another turns on the one the site needs.A site fails with Call to undefined function exec()PHPA site fails with Call to undefined function exec() or the same error for shell_exec, system, passthru, proc_open, or popen. UrbeStack disables those functions by default, and you can allow one in the domain's PHP settings.A site fails with Invalid command 'php_value'ApacheA site returns 500 Internal Server Error because its .htaccess contains a php_value or php_flag line. Apache does not recognize these directives here because PHP runs through PHP-FPM, so move the values to the domain's PHP settings.A site fails with Option FollowSymLinks not allowed hereApacheA site returns 500 Internal Server Error because its .htaccess contains Options +FollowSymLinks. UrbeStack prevents .htaccess from enabling that Apache option, and you can use SymLinksIfOwnerMatch in its place.A site reports open_basedir restriction in effectPHPA site fails to write a file under /tmp, and PHP logs open_basedir restriction in effect. You can fix the write by using the site's own temporary folder or changing a domain setting.A site returns 403 Forbidden after its home permissions changeApacheEvery page of a customer's sites returns 403 Forbidden after a chmod or chown on the customer's home. The change removes Apache's access to the folders, and one command restores it.A site returns 503 Service UnavailableApacheEvery PHP page on a site returns 503 Service Unavailable, and Apache logs a failed connection to the PHP-FPM socket. Starting the stopped PHP-FPM service for the site's PHP version fixes the error.A site runs out of memoryPHPA page fails with Allowed memory size of 268435456 bytes exhausted. You can raise the site's memory_limit only in the domain's PHP settings.Bounces from a website's mail never arrivePHPBounces from mail a website sends with PHP's mail() function never reach anyone. A mail account or forwarder can collect bounces at the noreply@ email address UrbeStack uses on the site's domain.Large uploads failPHPA file larger than 64 MB fails to upload, and PHP logs POST Content-Length of ... bytes exceeds the limit of 67108864 bytes with the request's size. The domain's upload_max_filesize and post_max_size both default to 64 MB, and raising both fixes the upload.The php command uses a different version from the sitePHPThe php command at the shell uses a different PHP version from the site, so Composer, a cron job, or a script can behave differently. Use the full path to the binary for the site's version.MailPostfix · Dovecot · Rspamd · Roundcube
A mail account is sending spamPostfixThe Postfix queue fills with messages from one mail account, and other servers start refusing mail from your server. Someone is sending with that mail account's password, and a few commands stop outgoing mail from the account, clear its queued messages and lock the sender out.A mail account stops sending after many messages in an hourRspamdWhen a mail account sends many messages, the mail client gets 451 4.7.1 Ratelimit "urbestack_account" exceeded. Rspamd enforces UrbeStack's hourly limits for mail accounts and domains, and you can raise them.A mail client cannot connect with its security settingsDovecotA mail client fails to connect or sign in when its port and encryption settings differ from what the server offers. Dovecot and Postfix accept mail logins only over TLS, so use one of the port and encryption pairs below.A mail client cannot log in to a mail accountDovecotA mail client keeps rejecting a mail account's password. Dovecot gives the same response for four causes, and a few commands can show you which one applies.A mail client hits the connection limitDovecotA mail client is refused when the mail account already has too many connections from the same IP address. You can check the open connections and raise the Dovecot limit.A mail client warns that the certificate is for another nameDovecotA mail client connecting to mail.example.com warns that the certificate is for another name, the server's hostname. Dovecot and Postfix use the domain's certificate only if it covers the requested name, so point the name at this server and issue the certificate again.DKIM fails after the key changedRspamdReceiving servers report that a domain's DKIM signature fails after its key is rotated. If the domain's DNS is hosted elsewhere, publish the missing record for the new key Rspamd uses.Gmail refuses mail because the sender is unauthenticatedRspamdGmail bounces a domain's mail with 550 5.7.26 when the mail passes neither SPF nor DKIM. Copy the missing records to the domain's external DNS host to fix authentication for mail UrbeStack signs with Rspamd.Large messages are refusedPostfixA large message is refused with 552 5.3.4 Message size exceeds fixed limit. Postfix accepts messages up to 50 MB by default, and you can raise the limit with one setting.Legitimate mail lands in the Junk folderRspamdMessages from senders you trust go to the Junk folder. Rspamd scores each incoming message, messages at or above the domain's Junk score go to Junk, and moving them out trains Rspamd.Mail bounces even though the mailbox has roomDovecotIncoming mail bounces with Not enough disk quota even though the mail account is under its own quota. The customer has reached their disk quota, and freeing space or raising that quota lets Dovecot write to the mailbox.Mail bounces with
loops back to myselfPostfixMail to a domain bounces with loops back to myself when its MX record points to this server but the server does not handle the domain's mail. To fix the Postfix bounce, set up mail for the domain on this server or point its MX record to the host that handles its mail.Mail for a domain on this server never reaches Google Workspace or Microsoft 365PostfixMail sent from your server to a domain it hosts stays on the server, even though the domain's MX records point to Google Workspace or Microsoft 365. Set the domain's mail routing to remote so Postfix sends the mail to the provider.Mail from a new sender arrives minutes lateRspamdA message from a sender your server has never seen arrives at least five minutes late after 451 4.7.1 Try again later. Rspamd held it for greylisting, and you can release the sender's held mail or turn off greylisting for a domain.Mail is refused because of the server's reverse DNSPostfixReceiving servers refuse or defer outgoing mail when your server's IP address has no reverse DNS or points to a different hostname. Set the PTR record at your hosting provider to the hostname Postfix uses.Mail is refused because the mailbox is fullDovecotIncoming mail is refused when a mail account reaches its quota. Dovecot checks the quota before the server accepts the message, and you can raise the quota or free space in the mailbox.Mail is refused with User unknown in virtual mailbox tablePostfixMail to an email address at a domain on this server is refused with User unknown in virtual mailbox table. Postfix has no mail account, forwarder or list for that email address, so add one or set a default email address for the domain.Messages copied into a mailbox do not appearDovecotMessages you copy into a mailbox as root do not appear in the mail client. Changing the ownership of the copied files lets Dovecot read them.Outgoing mail to other servers stays in the queuePostfixMail to other servers stays in the queue, deferred with Connection timed out or Connection refused on port 25. When your hosting provider blocks outgoing connections on that port, you can restore Postfix delivery by asking the provider to open it or by using a smarthost.Sending fails with Relay access deniedPostfixA mail client or device sending through your server gets 554 5.7.1 Relay access denied. Postfix relays mail to other domains only for senders who log in or send from trusted networks, so set the client to log in.The autoresponder does not answer every messageDovecotAn autoresponder replies once to a sender and then stays silent, or skips some messages entirely. Dovecot's Sieve vacation rule works this way by design and logs why it skipped each message.Webmail says Connection to storage server failed.RoundcubeWebmail shows Connection to storage server failed. at sign-in when Roundcube cannot reach Dovecot. Restart Dovecot to restore sign-in and check its journal to see why it stopped.DNS and certificatesBIND · Let's Encrypt
A certificate fails although the A record is rightLet's EncryptLet's Encrypt cannot validate a domain when its A record points to the server and its AAAA record points elsewhere. It connects over IPv6 first, so correcting or deleting the AAAA record fixes validation.A certificate is refused because of a CAA recordLet's EncryptLet's Encrypt refuses a certificate when the domain's CAA records allow only other certificate authorities. Adding a record that allows letsencrypt.org fixes the refusal.A certificate is refused because the domain does not point to the serverLet's EncryptUrbeStack refuses to ask Let's Encrypt for a certificate when the domain does not resolve to the server. It checks every name first, and correcting the DNS records fixes the refusal.A certificate request hits a rate limitLet's EncryptLet's Encrypt refuses new requests for a name after too many validation failures or too many certificates for the same names. The error says too many and gives a retry time, so fix the cause first and wait until that time.A DNS change does not show upBINDWhen you change a DNS record in UrbeStack, BIND serves the new value right away, while resolvers still return the old value. Resolvers cache answers for the record's TTL, one hour by default, and lowering the TTL before the next change makes it show up sooner.A domain does not resolve after moving to the server's nameserversBINDA domain stops resolving after you switch to the server's BIND nameservers, or the registrar refuses the nameserver names. Register glue records with the server's IP address at the registrar for the domain that contains the nameserver names.A secondary DNS server cannot transfer a zoneBINDA secondary DNS server cannot copy the server's zones, and BIND logs that it denied the transfer. Add the secondary's IP address to the UrbeStack setting that controls which IP addresses can transfer zones.A wildcard certificate fails when the domain's DNS is hosted elsewhereLet's EncryptA Let's Encrypt certificate request for *.example.com fails when the domain's DNS is hosted elsewhere. UrbeStack publishes the validation record only on its own DNS server, so using this server's nameservers fixes the problem.Changes made by hand in a DNS zone file disappearBINDA DNS record you add by hand to a BIND zone file works for a while, then disappears. UrbeStack writes each zone from its database, so use its commands to add records that stay.The server refuses queries for domains it does not hostBINDWhen you query the server with dig for a domain it does not host, it returns status: REFUSED. This is expected because UrbeStack configures BIND to answer only for its own zones.
DatabasesMariaDB
A database connection from another computer failsMariaDBA connection to MariaDB from another computer is refused or times out. UrbeStack keeps outside connections closed, so configure the listener, open the firewall port, and create a database user for the IP address you connect from.A database privilege granted by hand disappearsMariaDBPrivileges granted by hand to a MariaDB user created in UrbeStack disappear after the next change or rebuild. UrbeStack sets grants from its own records, so use its commands to grant privileges you want to keep.An import fails with
Server has gone awayMariaDBAn import loses its connection when a row exceeds MariaDB's default max_allowed_packet limit of 16 MB. The log reports the oversized packet, and raising the limit on both the server and the client fixes the import.An import fails with a SUPER or SET USER privilege errorMariaDBA MariaDB import stops with an access denied error that asks for the SUPER or SET USER privilege. The dump's views, triggers, or routines name a DEFINER from the old server, and removing those clauses fixes the import.An import fails with an unknown collationMariaDBAn import of a MySQL 8 dump stops with an unknown collation error for utf8mb4_0900_ai_ci. MariaDB 10.11 lacks that collation, and replacing it in the dump fixes the import.The database refuses connections with Too many connectionsMariaDBMariaDB refuses site and client connections with ERROR 1040 (08004): Too many connections when it reaches max_connections, which defaults to 151. To fix it, find what holds the connections and raise the limit if the server has enough memory.WordPress says Error establishing a database connectionMariaDBWordPress shows Error establishing a database connection on every page. MariaDB is down or the database user or password in wp-config.php differs from what MariaDB has, and two commands show which.FTP, SFTP and SSHProFTPD · OpenSSH
An FTP account gets
530 Login incorrect.ProFTPDAn FTP login is refused with 530 Login incorrect. ProFTPD uses name@domain for FTP account logins, so check the account and set a new password.An FTP client connects but the folder list times outProFTPDAn FTP client logs in, then times out while loading the folder list. UrbeStack opens the passive ports set for ProFTPD in ftp.passive_ports (49152 to 50151 unless changed) in its own firewall, and opening those ports in the firewall in front of the server fixes the timeout.An FTP client gets SSL/TLS required on the control channelProFTPDAn FTP login is refused with 550 SSL/TLS required on the control channel. UrbeStack requires encrypted ProFTPD connections by default, so set the client to explicit FTP over TLS.An SFTP upload ends with a partial fileOpenSSHAn SFTP upload stops with Failure and leaves a partial file. The customer has reached their disk quota, and freeing space or raising the limit lets OpenSSH complete the upload.An SFTP upload fails in the top folderOpenSSHAn SFTP upload to the top folder, /, fails with Permission denied. OpenSSH requires root to own that folder, so upload to /files, where the customer's files live.An SSH port change is undone after five minutesOpenSSHFive minutes after you change the SSH port in UrbeStack, OpenSSH returns to the old port and the new port closes. UrbeStack reverts the change to prevent a lockout unless you log in on the new port or confirm the change.SFTP disconnects right after loginOpenSSHA customer's SFTP session closes at login, and OpenSSH logs fatal: bad ownership or modes for chroot directory "/home/USER" [postauth]. The customer's top folder must belong to root, and one command restores that ownership.SSH answers This service allows sftp connections only.OpenSSHA customer's SSH login prints This service allows sftp connections only. and closes. OpenSSH gives the customer SFTP access only until an administrator enables shell access.The remote backup copy fails after the backup server was reinstalledOpenSSHThe remote backup copy fails after the backup server is reinstalled because its OpenSSH host key has changed. Forget the key UrbeStack recorded at the first successful test, then test again to record the new one.The remote backup copy fails with Permission denied (publickey)OpenSSHCopying backups to a remote server fails with Permission denied (publickey). Add UrbeStack's missing public key to the remote user's ~/.ssh/authorized_keys to fix the OpenSSH login.Firewall and bansfail2ban · nftables
An IP address is blocked after failed loginsfail2banConnections from one IP address time out while others connect. After fail2ban counts enough failed logins, UrbeStack bans the IP address in the firewall, and you can lift the ban with one command.Firewall rules you add by hand disappearnftablesA firewall rule you add with nft or iptables works for a while and then disappears. Rules you add through UrbeStack stay because it writes the entire nftables table from its own records.firewall-cmd says
FirewallD is not runningnftablesfirewall-cmd says FirewallD is not running, and ufw rules have no effect. UrbeStack manages the firewall with nftables and provides commands to open ports.Panel and serverUrbeStack · cron · Linux · Linux quota · XFS
A correct password is refused from one IP addressUrbeStackThe web interface and mail refuse logins from one IP address even with the correct password. UrbeStack flagged the IP address after too many failed logins, and you can lift the flag with one command.A job works at the shell but fails on schedulecronA command works at the shell but does nothing when cron runs it, and no email arrives. Use full paths to work around the short PATH and a log file to capture the output UrbeStack discards by default.A scheduled job runs at the wrong hourcronA job set for 03:00 runs hours earlier or later. Cron uses the server's time zone, often UTC on a VPS, so write the schedule in that time zone.A service stopped with systemctl starts again by itselfUrbeStackA daemon you stop with systemctl stop is running again a few minutes later. The UrbeStack monitor restarts daemons with no recorded stop, so use the panel's stop command to keep the daemon stopped.A site cannot save filesLinux quotaA site fails to save uploads or files, and PHP logs possibly out of free disk space while the server still has room. The customer has reached their Linux quota, and freeing space or raising the limit lets the site save files again.Changes to a configuration file are overwrittenUrbeStackAn edit to a configuration file disappears after the next change you make in the panel. Files that start with Managed by UrbeStack are rewritten, so use the location that preserves your changes for each daemon.Disk quotas are not enforced on AlmaLinuxXFSOn AlmaLinux, UrbeStack reports that disk quotas are not enforced. XFS enables quotas at mount time, so the root filesystem needs rootflags=uquota on the kernel command line and a reboot.Every site on an account shows
Bandwidth limit exceededUrbeStackEvery site on a customer's UrbeStack account returns 509 Bandwidth Limit Exceeded after the customer uses their package's bandwidth for the month. Raising the limit or moving the customer to another package brings the sites back at once.Locked out of the web interface after losing the second factorUrbeStackYou cannot sign in to the web interface after losing your second-factor device if you have no recovery code. Root can turn off the second factor for the UrbeStack account at the server's shell.Services fail with No space left on deviceLinuxMariaDB, mail, or the web interface fails, and its logs show No space left on device. The Linux server's disk is full, so find what filled it, often local backups, and free up space.The administrator's password is lostUrbeStackYou cannot sign in to the UrbeStack web interface because you lost the administrator password. Root can set a new password with one command at the server's shell.The web interface does not openUrbeStackThe UrbeStack web interface times out in your browser. Open its port, 8443 unless the installer used another, in the firewall in front of the server, such as your hosting provider's firewall.No matching notes
Try searching for the exact error message or a shorter excerpt. If you still can't find a note that fits, ask in the community or open a support ticket. Include the log lines.