🚤 Quick questions thread

For all of your quick questions. Here are some helpful resources from the docs site, docs.apiscp.com:

Basic administration

Advanced administration

Development resources

For more experienced admins that need to jog their memory, notes.apiscp.com is a collaborative repo of advanced topics. :tada:

How to backup sites + db? I dont find on the panel…thanks

Database backup tasks are configured via Databases > MySQL Backups (or PostgreSQL Backups). Each database includes 2 backup tasks by default. You can snapshot and export these databases via Databases > MySQL (or PostgreSQL) Manager > List Users and Databases.


To backup a site, the easiest option is to copy /home/virtual/siteNN/info + shadow. info/ is the account metadata and shadow/ is its data layer. If you’re logged in as the site owner and want to take a quick snapshot of the filesystem (or a directory), then Files > File Manager > Download Directory is what you want.


Thanks. Looking for automated way like i can shedule backup…Please add on next major release thanks. Great panel…


You don’t have permission to access /phpMyAdmin/ on this server.

A few different things to look for:

  • grep -A5 MODULE_MARKER /etc/httpd/conf/httpd.conf - look for a LoadModule phpX_module line. Earlier releases of Apache obliterated on upgrade. Other sites that depend upon PHP would also fail
  • Does /tmp/dos-IP-ADDRESS exist? Where IP-ADDRESS is your IP address of course. You might’ve hit brute-force that temporarily disallows connections
    • cpcmd config_get apache.evasive + cpcmd config_get apache.evasive-whitelist would be relevant
  • Server on a private network? See NAT.md
  • Did it work before?

Need a bit more information!

[root@server tmp]# cpcmd config_get apache.evasive + cpcmd config_get apache.evasive-whitelist
[hash-table-size] => 3097
[page-count] => 10
[site-count] => 300
[page-interval] => 2
[site-interval] => 4
[blocking-period] => 10
[root@server tmp]# grep -A5 MODULE_MARKER /etc/httpd/conf/httpd.conf

between httpd package upgrades. You must leave this “MODULE_MARKER” marker

Only modules loaded with a “LoadModule” directive are carried over.

Make all module configuration changes to httpd-custom.conf



User apache
Group apache

[root@server tmp]#

rm -f /usr/bin/php
upcp -sb php/install

Will download and rebuild PHP as well as update Apache configuration. rpm -qi httpd - what version does it list and when did things last work? Sounds like an Apache upgrade, but the last one was from February 25 and by all accounts it should carry over the LoadModule directive to load PHP.

You have new mail in /root/Mail
[root@server ~]# rpm -qi httpd
Name : httpd
Version : 2.4.38
Release : 2.5.apnscp
Architecture: x86_64
Install Date: Tue 26 Feb 2019 09:59:27 PM PST
Group : System Environment/Daemons
Size : 4645839
License : Apache License, Version 2.0
Signature : RSA/SHA1, Tue 26 Feb 2019 03:10:59 AM PST, Key ID 3f9dd9ce321f362d
Source RPM : httpd-2.4.38-2.5.apnscp.src.rpm
Build Date : Tue 26 Feb 2019 03:09:50 AM PST
Build Host : dolly.apisnetworks.com
Relocations : (not relocatable)
Vendor : Apache Software Foundation
URL : http://httpd.apache.org/
Summary : Apache HTTP Server
Description :
Apache is a powerful, full-featured, efficient, and freely-available
Web server. Apache is also the most popular Web server on the

thanks it works now…

you have fix for this problem…

i tried to upload a joomla site came from(litespeed webserver)…

checked the folder permission on joomla dashboards shows all folder “Unwritable”… Not compatible php handler? how to switch on cgi?

Remove AddHandler/SetHandler/Action usage in .htaccess. apnscp doesn’t use CGI/FCGI implementations of PHP but instead it’s matched to the server.

When importing, you may need to:

  • Change paths in configuration.php
  • Update database credentials
  • Import database dump (Databases > MySQL Manager allows this on creation)
  • Detect app under Web > Web Apps. Once detected, apply Fortification to allow write-access

Joomla! and Magento are the only web apps that don’t support automatic updates so be mindful of that going forward.

@msaladna I’m trying to use MXroute as relay, using user@domain:password, give me error message:
Reporter level: ERROR
ERROR: password is not present in credentials

ERROR: password is not present in credentials
cpcmd scope:set mail.smart-host 'mx-route-host-name.com' 'smtpname' 'smtppassword'

via SMTP.md

Make sure to quote the credential array to avoid it being parsed by bash.

Scopes are coming soon to the frontend,


Great, it works now. Thank you

@msaladna Any way I can install ApisCP on OpenVZ 7?

No. It’s intended for bare metal or full virtualization as it works holistically, tuning all aspects of the server

Question about pricing. Is that $20 per month per physical server? Or per VM. Could get pricey very fast if per VM.

Pro licensing, which has no limit on the number of domains or accounts is $20 per month per VM. I target 250 accounts, each of which has ~3 domains on average. At that point your per domain unit cost is $0.02 per domain per month or less. If you were to go with a Startup license that has a domain cap of 50, then your per domain cost is $0.08 per domain month.

As a rule of thumb I recommend building out 250-300 accounts on a 16-24 GB VM. You’ve enough slack to handle surges and distribute your risk across multiple servers. Node failures happen. :pensive:

The magic comes once you price out third-party licenses that are core features of ApisCP.

  • Softaculous ($1.50/month) already built into ApisCP’s Web App module, which launched Update Assurance yesterday. UA performs stepwise content-length and HTTP status checks during updates, rolling back if aberrations are noted.
  • CloudLinux ($14/month) already built into ApisCP. All accounts are jailed to synthetic roots, a feature of ApisCP since its birth in 2002. Resource enforcement, just like in CloudLinux, is powered by cgroups - a native kernel feature.
  • Immunify360 ($45/month) Malware scrubs, DDoS prevention are managed through Rampart in ApisCP. A mod_security hook filters file uploads and sends an alert to block offending IPs.
  • MailChannels ($69/month) - or any smart-host. If you have enough servers and enough diversity in mail, ApisCP can communicate over an rspamd cluster that provides excellent spam mitigation. Clustering is a turnkey feature in Bootstrapper. Set rspamd_redis_server as part of mail/rspamd.

$20 per month versus $1.50 + $14 + $45 + $69/n = $129 + BYOL ($???), $20/month is a steal for the features you get. All of these components are integrated with precision; there’s less noise and fewer remarkable events because everything is vetted by real world testing through my hosting business as well. :slight_smile: