🚤 Quick questions thread

#1

For all of your quick questions. Here are some helpful resources based upon feedback from others:

Basic administration

Advanced administration

Development resources

pinned #2
#3

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

#4

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.

image

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.

image

#5

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

#6

Forbidden

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

#7

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!

#8

[root@server tmp]# cpcmd config_get apache.evasive + cpcmd config_get apache.evasive-whitelist
Array
(
[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

###########################################################################

MODULE_MARKER

User apache
Group apache

[root@server tmp]#

#9
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.

#10

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
Internet.

#11

thanks it works now…

#12

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?

#13

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)
    image
  • 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.