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
2 answers

starting a next server on cpanel throwing 503 service unavailable

I'm attempting to deploy a NextJS app on my shared hosting server using the cPanel Setup Node.JS App section, but when I start the build - despite getting ready on http://localhost:3000 - the site throws a 503 error. I've uploaded the build folder…
GROVER.
  • 4,071
  • 2
  • 19
  • 66
4
votes
5 answers

RangeError: WebAssembly.instantiate(): Out of memory: wasm memory

I am getting this error while starting my node js app in my cpanel. RangeError: WebAssembly.instantiate(): Out of memory: wasm memory at internal/deps/cjs-module-lexer/dist/lexer.js:1:33573 but while i am developing in localhost, everything works…
Aman Chaudhary
  • 802
  • 3
  • 10
  • 27
4
votes
6 answers

How to change public folder to public_html in laravel 8?

I wanna deploy my application on shared hosting on Cpanel where the primary document root has public_html but Laravel project public
Abdullah Al Mamun
  • 310
  • 2
  • 4
  • 14
4
votes
2 answers

Using custom php.ini in a specific folder

I've got full control of my Apache / WHM / CPanel server. I have a default PHP.ini file set up for everything and that is just fun for the production server. On the same server, I have a staging/testing server - and on it I want display_errors to…
Shackrock
  • 4,601
  • 10
  • 48
  • 74
4
votes
1 answer

Error while installing mysqlclient in django project on cPanel

I've been trying to solve this problem for a couple of days. I am trying to put my Django project in a venv on cPanel and install mysqlclient. So after setting up my Python (version = 3.7.8) on Cpanel, I installed Django version 3.1.7 and…
codingnoob
  • 41
  • 1
  • 2
4
votes
3 answers

Magento 2.4.2 - Installing a Fresh Install into a Subdirectory - Does not Work?

It appears that it is not currently possible to install the latest Magento Community Edition within a subdirectory (or there are steps required, which are not in the Documentation that I can find?) with a fresh install. I have tested this 3-4 times…
4
votes
3 answers

Unable to guess the MIME type as no guessers are available. How do I install php_fileinfo extension in cPanel?

I'm trying to upload an image with validation: 'image|mimes:jpeg,png,jpg,gif,svg|max:2048' Works fine on local. But fails on cPanel. The cPanel version is 90.0.6 I've tried a couple things inside cPanel. But I couldn't figure out how do I enable the…
Leutecia
  • 95
  • 1
  • 4
  • 9
4
votes
1 answer

?all -all and ~all in DNS (spf) configuration

I tried to configure/authenticate my domain DNS with email marketing services. To authenticate SPF I need to add some code. I want to use various services and in the TXT instructions they provide, at the end, some use -all, others ~all, and some…
IXN
  • 173
  • 1
  • 7
4
votes
2 answers

cPanel Node.js app cannot connect to MongoDB Atlas cluster but works on Heroku

I created a website with Node.js that is using a MongoDB Atlas cluster as its database. So far I hosted and tested everything on Heroku where I didn't have any problems whatsoever. 2 days ago I finally decided to buy the domain that I want and pay…
blackcatalive
  • 123
  • 2
  • 10
4
votes
4 answers

How to retrieve the Deleted files in Cpanel...?

I need to retrieve the deleted files in Cpanel.,Is any possible to retrieve that means.,pls guide me as soon as possible.,Because i lost my site now.... Thanks in Advance
John Peter
  • 2,870
  • 3
  • 27
  • 46
4
votes
1 answer

CPanel Cron Job settings for working days

I am new to cron jobs, and I wanted to create a cron job which will not run on weekends, like Monday to Friday once in a day at 9:00AM. I am not sure about the format. Any suggestion or help please. thanks
kakaajee
  • 227
  • 1
  • 9
  • 20
4
votes
4 answers

storage:link not working on hosting cPanel

I've created a storage link with php artisan storage:link and it's working totally fine on localhost, However, when I deploy my project on a shared hosting, it does not render any images. This is my hosting directory structure: - home2/username : …
Saud
  • 859
  • 1
  • 9
  • 23
4
votes
5 answers

Files reappearing on server even after getting deleted

I am deleting files (wordpress theme files )of my website to the server using cPanel, but still the files are reappearing. The files have a 000 permissions set. It is strange that files have proper permissions ( i.e. 777) when they are on my local…
johngreen
  • 2,676
  • 5
  • 32
  • 47
4
votes
1 answer

Creating Emails via PHP with WHM/Cpanel

I am using WHM/Cpanel to manage my sites. I am on a VPS server on Hostgator. I want to create email accounts dynamically via PHP. Does anyone know what I might need in order to do this ? Any good resources ?? Books or code they can share for me to…
numerical25
  • 10,524
  • 36
  • 130
  • 209
4
votes
0 answers

Backup MySQL database to google drive automatically

I have an application in laravel and I want to take a backup of a MySQL database and upload it to my Google Drive automatically. Can you please guide me how can I do that without Third party API.
a.ak
  • 659
  • 2
  • 12
  • 26