Questions tagged [cpanel]

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.

References:

5342 questions
5
votes
0 answers

I am cloning git hub repository to Cpanel git version control i am getting term 15 error

I am cloning git hub repository to Cpanel git version control i am getiing the error below, Error: “/usr/local/cpanel/3rdparty/bin/git” ended prematurely because it received the “TERM” (15) signal: i have added my ssh key to git hub deploy keys,…
Ahmad Saad
  • 771
  • 6
  • 17
5
votes
5 answers

How can I deploy Next js app on cpanel hosting

I am trying to deploy next js app on cPanel. I have installed node and npm on it. How can I deploy the next js app on this set up? I am getting the following error while trying to build the app on cpanel terminal: Unhandled rejection TypeError:…
5
votes
2 answers

How can I restrict access to our website through .htaccess in cpanel?

I am working on a website in which I want to restrict the access to it by entering some username and password in it like if I/or any outside users open the website, it should ask for Username and Password. The current code which I am using in…
john
  • 11,311
  • 40
  • 131
  • 251
5
votes
2 answers

Symfony project on CPanel account

For a bit of history - this is the first time I attempted to setup a test symfony project, just to have a play with it. The symfony project was setup in the following location: ~/symfony_projects/myproject/ Now, with cpanel, the httpd.conf is…
xil3
  • 16,305
  • 8
  • 63
  • 97
5
votes
2 answers

PHP create file in same directory as script

$content = "some text here"; $fp = fopen("myText.txt","w"); fwrite($fp,$content); fclose($fp); The above code creates a file in the folder where the PHP script is present. However when the script is called by Cpanel Cron then file is created in…
Greatchap
  • 382
  • 8
  • 21
5
votes
7 answers

Laravel Cpanel error :SQLSTATE[HY000] [1045] Access denied for user 'homeimpr_clranke'@'localhost' (using password: YES)

My env file as follow: DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=admin_clrank DB_USERNAME=admin_clranke DB_PASSWORD=admin@123 i am getting the error and i have checked the username and password that are same.My website is in…
ravneet
  • 471
  • 2
  • 5
  • 11
5
votes
3 answers

'Installation failed: Could not create directory.' I get this error everytime i try to download plugin in wp 4.8

I am getting error accessing my admin panel. The error is due to plugin. I fixed the issue by renaming the plugin folder from cpanel and changed it back. Since then,i couldn't download any plugins and get the error Installation failed: Could not…
Logic Tenacity
  • 85
  • 1
  • 1
  • 6
5
votes
1 answer

Using Alias in Apache ONLY if local directory not present?

We're running a reseller web host, and aliasing a particular directory for ALL the sites within. This is all happening through WHM/Cpanel, which could possibly complicate my question. We want all hosts to run their "/concrete" directory through a…
Andrew E.
  • 51
  • 2
5
votes
4 answers

Change change mode of all files and folders in CPanel at once?

I have a deluxe hosting with GoDaddy and have uploaded WordPress websites in it. However, nowadays someone is hacking into my website (even after changing the cpanel and ftp passwords) and uploading files which include a zip file, and after they…
Sreedev VJ
  • 51
  • 1
  • 1
  • 5
5
votes
1 answer

Telegram bot webhook with self signed certificate is not working

I'm trying to set up a telegram bot the way documented here - https://core.telegram.org/bots/api#setwebhook. I've tried nearly everything to use my own self-signed certificate but no success yet in making telegram call the URL I pass it even when…
azerafati
  • 18,215
  • 7
  • 67
  • 72
5
votes
2 answers

Google Analytics /Cpanel getting spam hostnames

Over the last few weeks I have seen a lot of 00:00:00 sessions come from spamming servers. I want a way to not only block them in Analytics but also in cPanel if possible. If anyone knows the best way to remove all spamming hostnames please share.
RussellHarrower
  • 6,470
  • 21
  • 102
  • 204
5
votes
1 answer

How to change the mailserver information displayed in cPanel

When I setup a new cPanel account for a client (through WHM), I also setup a Mandrill account for clients to use as their mailserver. Is it possible to change the mailserver information that is displayed in the "Configure Email Client" section of…
Travis Pflanz
  • 104
  • 2
  • 15
5
votes
1 answer

Difference between cpanel port numbers 2082 and 2083

Can anyone explain about the difference between two port numbers of cpanel 2082 and 2083 ? Simply I mean 2083 is hyper text transfer protocol secure and other is not ?
Tom
  • 500
  • 3
  • 5
  • 16
5
votes
2 answers

DNS propagation - why is a subdomain only accessible minutes after it's creation (own nameservers)

we have a question about the behavior of DNS propagation for subdomains. Here's the scenario we are trying to achieve: User1 registers at our site "company.com". A subdomain "user1.company.com" is automatically created, not as add-on domain of…
Gulnor
  • 53
  • 1
  • 4
5
votes
0 answers

pointing cPanel to heroku

I want to point my custom domain to heroku. My provider uses cPanel. I have followed the instructions here. https://devcenter.heroku.com/articles/custom-domains And added this to my DNS Zone Editor www.my-site.com. 14400 IN CNAME …
rav
  • 743
  • 6
  • 14