Plesk 18.0.79.0 - Creating physical hosting fails with webstatmng: Unable to find the awstats template file

danami

Silver Pleskian
Username:

TITLE

Plesk 18.0.79.0 - Creating physical hosting fails with webstatmng: Unable to find the awstats template file

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Product version: Plesk Obsidian 18.0.79.0
OS version: AlmaLinux 9.8 x86_64
Build date: 2026/06/19 11:00
Revision: 0fb4c9296e9f22db51282689d0c229bd623e0ba0

PROBLEM DESCRIPTION

When I try to create a new blank website with hosting I get the error:

Code:
hosting update is failed: webstatmng: Unable to find the awstats template file /etc/awstats/awstats.model.conf
System error 2: No such file or directory

STEPS TO REPRODUCE

Click add domain -> Choose Blank website -> enter domain name -> click add domain.

ACTUAL RESULT

The website isn't created or visible under domains and you can't try again it because it says "This DNS record already exists."

EXPECTED RESULT

The hosting should be added to the panel.

ANY ADDITIONAL INFORMATION

(DID NOT ANSWER QUESTION)

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Here is the stack trace in the Plesk log:

Code:
[2026-06-29 04:42:36.986] 30507:6a425a2a26fc8 ERR [panel] Task failed: id=130, pid=30507, type=domain-create, error=PleskFatalException: hosting update is failed: webstatmng: Unable to find the awstats template file /etc/awstats/awstats.model.conf

System error 2: No such file or directory

file: /usr/local/psa/admin/plib/PHostingManager/Apache.php
line: 401
code: 0
trace: #0 /usr/local/psa/admin/plib/PHostingManager/Apache.php(205): PHostingManager_Apache->updatePHosting()
#1 /usr/local/psa/admin/plib/Transaction/Rollback.php(19): PHostingManager_Apache->transactionalUpdate(object of type Transaction_Rollback)
#2 /usr/local/psa/admin/plib/PHostingManager/Apache.php(147): Transaction_Rollback->commit(array)
#3 /usr/local/psa/admin/plib/DSWeb.php(232): PHostingManager_Apache->update()
#4 /usr/local/psa/admin/plib/Commands/CreateSubscription.php(317): DSWeb->update()
#5 /usr/local/psa/admin/plib/Transactional.php(205): Commands_CreateSubscription->applyHosting()
#6 /usr/local/psa/admin/plib/Transactional.php(135): Transactional->apply()
#7 /usr/local/psa/admin/plib/Commands/CreateSubscription.php(82): Transactional->execute()
#8 /usr/local/psa/admin/plib/CommonPanel/Domain/Task/Create.php(112): Commands_CreateSubscription->create()
#9 /usr/local/psa/admin/plib/CommonPanel/Domain/Task/Create.php(35): Plesk\CommonPanel\Domain\Task\Create->createSubscription(array, integer '1', boolean false)
#10 /usr/local/psa/admin/plib/Db/Table/Broker/LongTasks.php(178): Plesk\CommonPanel\Domain\Task\Create->run()
#11 /usr/local/psa/admin/plib/Db/Table/Broker/LongTasks.php(113): Db_Table_Broker_LongTasks->_syncStart(object of type Db_Table_Row_LongTask)
#12 /usr/local/psa/admin/plib/Task/Async/Executor.php(54): Db_Table_Broker_LongTasks->runTaskWithinExecutor(object of type Db_Table_Row_LongTask)
#13 /usr/local/psa/admin/plib/scripts/task-async-executor.php(6): Task_Async_Executor->execute()

[2026-06-29 04:42:36.991] 30507:6a425a2a26fc8 ERR [panel] hosting update is failed: webstatmng: Unable to find the awstats template file /etc/awstats/awstats.model.conf

System error 2: No such file or directory

[2026-06-29 04:42:37.002] 30507:6a425a2a26fc8 ERR [panel] Long task executor: id=130 completed with error: hosting update is failed: webstatmng: Unable to find the awstats template file /etc/awstats/awstats.model.conf
 
Hi, @danami . Thank you for the report. Could you please try to create the following symlink:

Code:
ln -s /etc/awstats/awstats.conf /etc/awstats/awstats.model.conf
 
@Sebahat.hadzhi Unfortunately that doesn't work as the file already exists:
Code:
ln -s /etc/awstats/awstats.conf /etc/awstats/awstats.model.conf
ln: failed to create symbolic link '/etc/awstats/awstats.model.conf': File exists

Information on the file:
Code:
# ls -la /etc/awstats/awstats.model.conf
-rw-r--r--. 1 root root 64692 Jun 24 03:44 /etc/awstats/awstats.model.conf
SELinux Label:
Code:
# ls -laZ /etc/awstats/awstats.model.conf
-rw-r--r--. 1 root root system_u:object_r:etc_t:s0 64692 Jun 24 03:44 /etc/awstats/awstats.model.conf
 
Back
Top