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
4
votes
5 answers

cPanel with PHP selector shows WordPress Error "PHP installation appears to be missing the MySQL extension which is required by WordPress"

After an upgrade of MySQL to use MariaDB 10, multiple sites on my CloudLinux cPanel server are just white screens with Error: Your PHP installation appears to be missing the MySQL extension which is required by WordPress I can choose the PHP…
codewithfeeling
  • 6,236
  • 6
  • 41
  • 53
4
votes
2 answers

Laravel 5.0 - Shared Hosting - Artisan not working as it should

I actually wanted to follow up on this question, but I guess It's better to start a new question. I installed a fresh copy of my own laravel(5.0), and I tried running php artisan route:list, which works. Now I have downloaded the compressed…
4
votes
2 answers

Host Primary Domain from a subfolder

I am having a problem making a sub directory act as the public_html for my main domain, and getting a solution that works with that domains sub directories too. Background My hosting allows me to host multiple sites, which are all working great. I…
Adam Harte
  • 10,369
  • 7
  • 52
  • 85
4
votes
2 answers

Piping email to program with cPanel and Laravel

I've followed this tutorial on how to pipe email with Laravel and Cpanel but I can't setup forwared in cPanel. I tried to use every option available : public_html/artisan --env=local email-parse /usr/bin/php -q /var/public_html/artisan --env=local…
SuperManSL
  • 1,306
  • 2
  • 12
  • 17
4
votes
3 answers

disk space is full by `vda` files, how to clear them?

So I have a VPS and it has whm / cpanel installed. For some reason its giving an error when ever I login to cpanel or visit a site on my server which says the disk space is full. When i check the desk space in WHM it says /dev/vda3 is 100% full. I…
Jamie Warren
  • 123
  • 1
  • 9
4
votes
0 answers

How to give a random delay on Cron Jobs commands

I have tried a couple of suggestions but always failed. I want to get a php file runned almost every minute, for this I am using the command: * * * * * wget http://link.php How can I give that command a random delay? For example, 1st…
Berque Cemilian
  • 189
  • 1
  • 2
  • 11
4
votes
2 answers

How to access list of email accounts with cPanel API?

cPanel is a web server management application that we have installed on our servers. It has a XML/JSON-based PHP API that we want to use to access data such as a list of all email accounts. This system is huge, I could'nt find an answer to this…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
4
votes
1 answer

Cpanel API Access denied

I'm using XML api 2 $xmlapi = new xmlapi('MY IP Address'); $xmlapi->password_auth("root",'My Cpanel password'); $xmlapi->set_output("json"); $xmlapi->set_debug(1); print $xmlapi->api2_query($account, "Email", "listpopswithdisk" ); But it's giving…
user3884077
  • 41
  • 1
  • 3
4
votes
3 answers

Automatic MySQL Database backup and email through cPanel cron

Can anybody help how to setup a automatic backup of mysql database and then emailing it to me daily? Thank You.
Shishant
  • 9,256
  • 15
  • 58
  • 79
4
votes
1 answer

If an email sent from php mail() function returns, where is it located in linux?

I have a page which sends and email to a specific user@domain.com via php mail() function. But, the destination domain domain.com was not properly configured on DNS and none emails were received. Is there any way to grab all those unsent…
fzmaster
  • 388
  • 2
  • 5
4
votes
1 answer

No instance returned Zend Framework 2?

I have developed one project and successfully works on my local machine.on live site i create one folder dev in public_html and move same project from local machine,but its gives me following error.…
Chirag Shah
  • 1,463
  • 2
  • 18
  • 40
4
votes
2 answers

Running /scripts/pkgacct using system(), exec() or backticks

I have a small perl script which runs the /scripts/pkgacct command in cPanel using system(). The code looks like so; print "\n/scripts/pkgacct --skiphomedir --nocompress $acc_name /my_backup\n\n"; system("/scripts/pkgacct --skiphomedir --nocompress…
rahuL
  • 3,330
  • 11
  • 54
  • 79
4
votes
2 answers

Using cPanel LiveAPI PHP Class on Siteground shared hosting account

I was wondering if anyone has implemented a PHP application level access to cPanel on a shared hosting provider ( in my case - Siteground). I've been looking into the documentation on the LiveAPI PHP website and it mentions that it involves managing…
Prathamesh Datar
  • 375
  • 1
  • 4
  • 20
4
votes
1 answer

How To Deploy Web Application To cPanel with .war file?

I have made my web application and I would like to put it in internet. I have heard that a user can deploy a web application in cPanel by using .war file. I have been searching about this, any kind of tutorial or any information on how to do it. But…
Amir
  • 1,031
  • 2
  • 19
  • 42
4
votes
3 answers

HttpURLConnection.getResponseCode() freezes execution/doesn't time out

I'm writing an Android app that connects to a cPanel server (Apache 2.2.22) page which is password protected. When the authentication credentials are correct, I have no problem connecting. However, when the credentials are incorrect, my Android…
William Carter
  • 1,287
  • 12
  • 19