Bug Report Template
Description
Website not found
Steps to Reproduce
Please provide detailed steps to reproduce the bug. Include any necessary code snippets, commands, or configuration files.
- I setup empty Rocky Linux 10 and then installed ApisCP.
- I add a website and install WordPress. I get an email telling WP successfully installed
- SSL certificates installed
- when going to the domain I get “You don’t have permission to access this resource.”
- when look at logs I can see that Apache is trying to serve the request from /var/www/html not /home/virtual/domain/var/www/html
- running htrebuild on command line fixes this
- same thing happens on next added website
- If I select Fortify MIN it says Unknown domain `/var/www/html’
Expected Behavior
Correct website should be shown
Actual Behavior
Describe what actually happened when the bug occurred.
Environment
revision: bb602a315c055118d828ba0521daf02eb07d3277
6.12.0-124.13.1.el10_1.x86_64
Additional relevant information (e.g., PHP version, database, etc.):
Additional Information
Provide any additional information about the bug, such as error messages, logs, screenshots, or any other relevant details.
Works fine for me. You may want to try installing from CLI to determine what’s going on. Omitted variable ('') is an optional folder within a subdomain (or domain) to locate WordPress.
# cpcmd -d futz.net wordpress:install wp-test.futz.net '' '[ssl:1]'
INFO : removed placeholder file
DEBUG : SSL challenge attempt: http (wp-test.futz.net)
DEBUG : HTTP: setting `-RskHm_HlBSbfStoNK-hgZLf2XM1bE84A0UZNTWIsCQ.DVDeikClqzXW-4XD4q37CjHLYknQMaYo1jger9hcYhg' in `/tmp/acme/.well-known/acme-challenge/-RskHm_HlBSbfStoNK-hgZLf2XM1bE84A0UZNTWIsCQ'
DEBUG : SUCCESS! SSL challenge response: wp-test.futz.net (http) - VALID
INFO : reloading web server in 2 minutes, stay tuned!
INFO : reminder: only 5 duplicate certificates and 50 unique certificates may be issued per week per account
INFO : created database `futz_wptestfutznet-1'
INFO : added database backup task for `futz_wptestfutznet-1'
INFO : autogenerated password `X'
INFO : setting admin user to `msaladna'
INFO : WordPress installed - confirmation email with login info sent to msaladna@apisnetworks.com
----------------------------------------
MESSAGE SUMMARY
Reporter level: SUCCESS
INFO: removed placeholder file
INFO: reloading web server in 2 minutes, stay tuned!
INFO: reminder: only 5 duplicate certificates and 50 unique certificates may be issued per week per account
INFO: created database `futz_wptestfutznet-1'
INFO: added database backup task for `futz_wptestfutznet-1'
INFO: autogenerated password `X'
INFO: setting admin user to `msaladna'
INFO: WordPress installed - confirmation email with login info sent to msaladna@apisnetworks.com
----------------------------------------
1
We can verify SSL certificate has been installed and services pending restart with at -l followed by at -c <ID> for each item, e.g.:
# at -c 2714
#!/bin/sh
# atrun uid=0 gid=0
# mail root 0
umask 22
__APNSCP_ATD_ID=apachecfg; export __APNSCP_ATD_ID
PWD=/usr/local/apnscp/bin; export PWD
SHLVL=1; export SHLVL
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin; export PATH
cd /usr/local/apnscp/bin || {
echo 'Execution directory inaccessible' >&2
exit 1
}
${SHELL:-/bin/sh} << 'marcinDELIMITER67473be1'
/etc/systemd/user/httpd.init buildconfig && /usr/bin/systemctl reload httpd
marcinDELIMITER67473be1
And - https://wp-test.futz.net comes up OK after the 2 minute timer has elapsed.
I tested to install the Wordpress again via CLI and it worked, but then I removed it and installed again from web interface still works.
So I installed a completly new Site with a new domain. Installing WP from CLI or web interface netiher works.
When I added the new Site with a new domain without adding any Apps and I open the domain with a browser it shows the content of /var/www/html not the content of /home/virtual/domain/var/www/html
Next I tried to add a new Site from CLI and started getting a lot of erros.
I runned: “AddDomain -c siteinfo,domain=domain -c siteinfo,admin_user=user -c siteinfo,email=email -c auth,passwd=1”
Running with correct domain, user and email values.
I was asked for a password and to repeat, then the errors started. I have the full list of errors, I’d rather not upload it here.
First error is:
ERROR : Auth_Info_User::initializeUser(): domain: cannot access /etc/passwd
0. Error_Reporter::add_error(“domain: cannot access /etc/passwd”, )
Next:
ERROR : Opcenter\Service\Validators\Common\Enabled::Opcenter\Service\Validators\Common{closure}(): failed to commit service configuration for `siteinfo’: Util_Process::formatDataCallProc(): rsync: rsync: [Receiver] getcwd(): No such file or directory (2)
rsync error: errors selecting input/output files, dirs (code 3) at util1.c(1122) [Receiver=3.4.1]
If needed I can get somebody ssh access if it makes it easier to find what the problem is.
The server is a dedicated serverf from Hetzner, should not have any restrictions.
atd service was installed but inactive on the server resulting in htrebuild not running at its expected time.
Give it a go now.