Questions tagged [cpanel]

cPanel stands out as a user-friendly Linux-based web hosting control panel designed to streamline website and server management for both website owners and hosting providers. Loaded with an array of useful features including email and file management, backup options, security controls, and domain management tools. Please note that only questions related to programming are welcome here – general configuration queries will be off-topic.

What is the best way to prevent caching of pages that are using a local JSON file in Next.js static generation?

After deploying my Next.js app as static on my cPanel traditional hosting, I encountered an issue. Some pages are consuming a local JSON file that I fetch using getStaticProps, with the "revalidate" option set. However, when I make edits to the JSON file ...

The file you have attempted to upload is too large and has exceeded the limit set by the upload_max_filesize

We recently switched our shared hosting from GoDaddy's Linux hosting to the new cPanel hosting. While trying to transfer my websites, I encountered an issue with uploading new media on Wordpress sites. Every time I attempt to upload new media, I rece ...

Error with Cross-Origin Resource Sharing (CORS) on my website

During the development of a website, I disabled web security in order to bypass CORS using the command chrome.exe --disable-web-security --user-data-dir=/path/to/foo However, after successfully completing the website and uploading it to my domain, I enco ...

Unable to construct with cPanel or SSH due to Laravel and Vue integration

Working on my cPanel server with ssh access, I downloaded new changes/files using Git and then executed npm run build. To my surprise, an error popped up. https://i.stack.imgur.com/JaUDG.png Any ideas on how to resolve this error? I double-checked the f ...

What could be causing Node Mailer to struggle with sending emails on a private host when it performs perfectly on localhost and render?

I am encountering an issue with sending emails to my clients using nodemailer. I am on a shared hosting with cpanel and it is not able to send emails, whereas it works fine on other hosts. Below is the function responsible for sending emails in my code: c ...

Guide for adding Oracle Client library to cPanel

I have created a Python application via cPanel and configured the database to connect with Oracle DB on AWS. The application runs perfectly on localhost, but when hosted, I encountered an error stating that the Oracle Client library is missing: Oracle Cli ...

I am attempting to upload my Next.js project, however,

When I uploaded my files to my domain and entered the domain in browsers, it only displayed the files. Now, I want to upload a Next.js project to Cpanel. Although I have created a Node.js server, I am unable to find any files for apps or server.js within ...

Error in CPanel: NextJS Static Export is failing to load due to missing JS chunks, CSS, and SVG files

Recently, I have discovered that when using VSCode Live server to host static files locally, everything seems to work perfectly. This led me to believe that the issue may lie in how CPanel deals with static files. Could it be causing the 404 not found erro ...

Discover the steps to redirect a www to a non-www Next.js app on a cPanel hosting account using an Apache

After successfully deploying my next.js app to cpanel as a standalone build, I encountered an issue where everything works properly when accessing my domain without the www prefix like this: example.com. However, if I try to access it with the www prefix l ...

Executing a Codeigniter PHP function within a controller using Cron Jobs on cPanel every hour

Is it possible to run a PHP function in the controller every hour using cPanel Cron Jobs? During testing, I have decided to execute this function every minute. An example implementation is shown below: class Mycontroller extends CI_Controller { pu ...

Encountering difficulties with uploading upcoming project on a cpanel hosting due to an issue with the npm package

While attempting to upload my next project on a cpanel, I encountered an error during the installation of npm packages. npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency treenpm ERR! ERR! Found: <a href="/cdn-cgi/l/email-protection" c ...

Leveraging PHP for transferring files from one cPanel account to another on the same server

Our server was recently upgraded to cPanel 78 and migrated from EA3 to EA4. With only two sites on the server, we were able to use PHP scripts for file manipulation prior to the upgrade. One specific functionality involved copying files between the two sit ...

Navigating dynamic URLs with various URI segments in cPanel

<a href="www.mysite.com/index.php?information/adminpanel/<?php echo $id;?>" name="approve" id="approve" ">Approve >></a> After redirecting to the specified URL, the correct ID is displayed in the address bar but unfortunately, ...

Setting up NGINX (Engintron) for Node.js on a particular port to switch from HTTPS to HTTP

I am completely new to web server configurations and have been struggling to find a working setup for weeks. Any advice or comments would be greatly appreciated! I currently have a CentOS machine with cPanel (EasyApache running on ports 8080 and 8443) and ...

The Cpanel encounter a PHP Fatal error due to an unknown function `json_decode()`

Despite having the php 5.6 version, I am still encountering this error. While running a codeigniter project through Cpanel, the following error occurred: PHP Fatal error: Call to undefined function json_decode() in/home/ntn/public_html/application/cont ...

Encountering 404 Errors while Attempting to Reach API Endpoint in an Express.js Application Hosted on cPanel

I have a Node.js application running on cPanel, and I'm facing 404 errors when trying to access an API endpoint within my app. Let me provide you with the setup details: Directory Structure: public_html/ server.mjs index.html node_modules ...

Guide to hosting an expressjs application on shared cpanel hosting platform

I'm encountering an issue while attempting to deploy my basic express application on shared hosting cpanel. Whenever I try to access my app, it displays Cannot GET /apps/api/. Check out the screenshot of my setup below:- https://i.stack.imgur.com/cWYWs.png ...

Discovering and Monitoring Viruses on a WordPress Website

My dedicated server is set up with WHM/cPanel CentOS Apache. One of the accounts on cPanel is hosting a WordPress site that has been infected with a virus. This virus is being used to send emails and inject affiliate links without authorization. Despite ...

Error: The host is experiencing an AttributeError because the 'Service' object does not have the attribute 'process' available

Looking to scrape a website using Python on a host without GUI. Unfortunately, the webpage I want to scrape ( ) does not allow scraping with the requests library, so I have to resort to using Selenium with a headless webdriver. (Apologies for any language ...

How does cPanel go about setting up user accounts?

Is there a way to programmatically create websites/accounts on a server without using cPanel, such as through node.js or PHP? How does cPanel handle this process? I understand that websites are typically generated by making changes to the Apache configura ...

The cPanel Node.js application is experiencing difficulties connecting to the MongoDB Atlas cluster, yet it functions without any issues on

Having developed a website using Node.js with MongoDB Atlas as the database, I encountered no issues while testing it on Heroku. However, after purchasing my domain and switching to proper hosting, I faced challenges. I attempted to set up my website by c ...

Setting up a Node.js WebSocket server on a shared cPanel hosting environment

Recently, I obtained a shared hosting plan with cPanel support for nodejs applications. Through the "Setup Node.js App" feature, I am able to define and set up a node.js app on my server. My goal is to create a websocket, and fortunately, they have opened ...

CPanel scheduled task (invalid command)

I'm attempting to schedule a cron job that runs a URL every 5 minutes with the following command: */5 * * * * curl http://ur-views.com/gramlater/queue_processor.php` However, I encountered an error while trying to execute it. Here's a screensho ...

What is causing the issue of my oversized images not showing up on GoDaddy?

I recently uploaded my website on GoDaddy and I am facing an issue where some of my small images (sizes: 872 × 546px) are displaying perfectly fine, but the large ones (banners with a size of 2700 × 900px) aren't showing up. Does anyone have ...

Error: The WebAssembly instantiation failed due to memory exhaustion in wasm allocation

Upon attempting to initiate my node js app in cpanel, I encountered the following error: RangeError: WebAssembly.instantiate(): Out of memory: wasm memory at internal/deps/cjs-module-lexer/dist/lexer.js:1:33573 Interestingly, when working on localhost, ev ...

Guide on launching a NodeJS Express API using PM2 on a cPanel shared hosting server

I have set up an API using Express configured to run on PM2 instead of the node process. Currently, I am using ventraIP shared hosting with cPanel. The cPanel provides options to set up a NodeJS app, configure directories, perform npm installs, and use us ...

Setting up a Cron Job in cPanel to Automate Task Scheduling in Laravel

Just like the title suggests, I followed the documentation to set up a cron job but it's not working. There are no updates in the laravel.log file either, which could have provided some insight. Here is how I configured my cron job: https://i.stack.i ...

Excessive CPU Usage Caused by MySQL

As a complete beginner in server administration, I must admit that I am quite puzzled by the high percentage of maximum CPU usage shown in my WHM daily process log (160%, equivalent to 1.6 fully utilized cores). /usr/sbin/mysqld --basedir/usr --datadir/va ...

I am encountering difficulties accessing the cPanel URL following deployment on Vercel

Running into some challenges while hosting my Next.js 13 application on cPanel led me to an alternative solution I discovered online. The workaround involved deploying the application on Vercel and adjusting the DNS records in cPanel to direct traffic to ...

Error: npm command is not recognized in the cPanel Terminal

When I attempt to write the following command: $ /usr/local/bin/node -v 14.17.3 I receive an error when using this command: $ node -v bash: node: command not found I tried the same approach with different commands, but it was unsuccessful: $ /usr/local/b ...

Scripting method to transfer multiple subdirectories using a cpanel.yml file (excluding the use of the wildcard)

I have been referring to the documentation found at My current issue is that when I try to copy my subfolders, it doesn't work properly unless I use a workaround. The only way I am able to achieve the desired outcome is by utilizing the following command ...