cPanel is a Linux-based web hosting control panel that provides graphical interface and automation tools to simplify website and server management for website owners and web hosting providers. It offers a range of features such as email and file management, backup and restoration, security, and domain management. Only PROGRAMMING related questions are on-topic. General configuration questions are off-topic.
Questions tagged [cpanel]
5342 questions
5
votes
1 answer
Using Perl modules vs. using system() calls
Quite recently, I wrote a few scripts in Perl for a cPanel plugin in which, though most of the code was in Perl, there was quite a lot of system() commands as well which I used to execute shell commands directly.
I am pretty sure that there are Perl…

rahuL
- 3,330
- 11
- 54
- 79
5
votes
3 answers
Cpanel does not run my cron jobs
I have cron jobs in cPanel that are scheduled every night. Yesterday, I noticed that these cron jobs haven't run since 2 days ago. I checked the cron log in /var/log/cron, and it shows me errors when trying to access the file.
Errors:
Nov 6…

Alan
- 75
- 1
- 2
- 12
5
votes
1 answer
Error on cron job, but working fine on shell
I am configuring Cron to backup my sql automatically. However I think that Cron has some issues and it's not working well.
This is the command I am running:
mysqldump --opt -Q -uhereisthename…

Pikk
- 2,343
- 6
- 25
- 41
5
votes
2 answers
Create emails accounts using PHP
I am in the process of trying to create emails using PHP.
This is my code so far it is very basic until I can get a working script. This is the closest I have got but it says it has added the email although in cpanel the email doesn't exist so it…

Andrew
- 359
- 2
- 6
- 20
5
votes
1 answer
Deploy django on CPanel
I have finished the development of my application and I'm ready to deploy. I'm renting a host with CPanel. The current setup does not contain modules neither for python nor django. What do you believe it is better to do. Could I install python and…

SWE
- 485
- 1
- 4
- 19
5
votes
5 answers
Cannot install Ruby on CentOS
I just cannot install Ruby on my CentOS (which is also hosting a cPanel).
sudo yum install ruby ruby-devel ruby-irb ruby-rdoc ruby-ri
audit_log_user_command(): Connection refused
Loaded plugins: fastestmirror
Loading mirror speeds from cached…
James
5
votes
6 answers
Create cpanel database through php script
Im trying to automate the installation of some custom software using cpanel/whm and postwwwacct php script.This requires files to be copied to the users public_html folder then edit the config and set eh file permissions. So far so good, no issues.…

Jason Bourne
- 212
- 1
- 2
- 14
5
votes
2 answers
How Do I execute a .sh script using cpanel cron job
Im very new to command line so please forgive my ignorance. I can succesfully execute my script using putty by navigating to the relevant direcotry and typing
bash app_auth.sh
I'm now trying to set this scipt to run using cPanel cron job. I have…

Luke Bream
- 855
- 2
- 10
- 15
4
votes
1 answer
Sphinx on server with Cpanel?
Had a quick question about Sphinx Search installation. Do I need to install it differently for a server with cpanel on it? Or would the normal linux installation instructions for Sphinx work just fine? I ask because I dont have a test server with…

John
- 9,840
- 26
- 91
- 137
4
votes
4 answers
CodeIgniter Cron Job on Shared Hosting?
I am trying to learn how to do my first cron job using CodeIgniter. In the past, it seemed the only way to do this with CI was to use the wget command instead of php.
The CodeIgniter User Guide, however, says that now you can do this from the…

Joe W
- 998
- 6
- 16
- 36
4
votes
0 answers
NextJs 13 503 Service Unavailable
i have static app with nextJs 13 without any api data or database in my local machine it work normal ,but in production server with cpanel i have 503 error with this log
node:events:491
throw er; // Unhandled 'error' event
^
Error: read…

Boutamente abdessamad
- 523
- 2
- 10
- 30
4
votes
0 answers
I am not able to connect with mongodb atlas using mongoose.connect
I am trying to build a website for my college hence I chose mongodb as my database using NodeJS . It worked great in my local machine and on the Heroku. But now I am deploying it on the cPanel there is one issue that I am not able to connect to…

Shriyash
- 41
- 4
4
votes
0 answers
503 Service Unavailable after deploy NextJS app
so, after trying a few times, it is clear that I am doing something wrong but I do not realize what. My steps are:
rm -rf .next/ && npm run build
upload .next, package.json,next.config.js and server.js to cPanel file manager
create node JS app from…

jonu29
- 389
- 1
- 11
4
votes
5 answers
How can I access a password protected directory when htaccess redirects to 404?
I have a wordpress install with the following htaccess:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_URI} !^/secure-area/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond…

ptim
- 14,902
- 10
- 83
- 103
4
votes
0 answers
How do I deploy NextJS to shared hosting cPanel while retaining static generation benefits?
So I first built a NextJS app on my local PC, I then uploaded the project to cPanel. I created a NodeJS selector for the project and configured the settings as per the cPanel instructions and all seemed good. When I call npm start on the command…

liam webb
- 41
- 3