At one point cPanel user has password-protected the public_html folder using the cPanel Directory Privacy option. Then He removed it at one time, however, cPanel didn’t rebuild the cache files for some reason inside userdata folder: /var/cpanel/userdata/$USERNAME

so when the webserver was switched from LiteSpeed to Apache, files were password protected again:

I removed the password protection from cPanel > Directory Privacy for the public_html folder

but the directory is still protected:

Restarted Apache webserver with the command:
service httpd restart
After checking files in the userdata folder I noticed that they weren’t updated even after restarting apache:
ll /var/cpanel/userdata/$USERNAME
So I used the following sripts to regenerate userdata cache and rebuild apache conf files:
/scripts/updateuserdatacache
/scripts/rebuildhttpdconf
service httpd restart
The website was then made available again.

![WARNING: [pool user_USERNAME] server reached pm.max_children setting (25), consider raising it Screen Shot 2020 06 23 at 09.57.51 - WARNING: [pool user_USERNAME] server reached pm.max_children setting (25), consider raising it](https://i0.wp.com/administrator.pejcic.rs/wp-content/uploads/2026/09/Screen-Shot-2020-06-23-at-09.57.51.png?resize=344%2C194&ssl=1)

![node[175421]: pthread_create: Resource temporarily unavailable 2023 08 28 12 15 - node[175421]: pthread_create: Resource temporarily unavailable](https://i0.wp.com/administrator.pejcic.rs/wp-content/uploads/2023/08/2023-08-28_12-15.png?resize=344%2C194&ssl=1)