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
1
vote
1 answer

Cannot insert query results into SQL Query in phpMyAdmin

I am running the following query: SELECT * INTO consolidated FROM (SELECT qtyAvailable FROM Inventory UNION ALL SELECT revenue, location, qtySold FROM sales …
kat
  • 47
  • 1
  • 8
1
vote
2 answers

phpMyAdmin logging me as a new "cpses_****@localhost" user every time. How can I force it to be "myuser@localhost"

I have a VPS account running WHM/cPanel, so it's got phpMyAdmin installed by default. If I log in through WHM, I am "root@localhost" so thankfully that works. Back when I started working on a particular domain, I could get to phpMyAdmin through…
S. J.
  • 1,106
  • 1
  • 10
  • 23
1
vote
1 answer

Cron Job mysqldump to daily folder

I've created a cron job to dump a table from a database and it works fine: mysqldump -u username -ppassword dbname tablename > .../backups/matches.sql This saved the file (note the ... is just the prefix of the location). What I'd like to do is…
1
vote
1 answer

cPanel: Regenerate "maildirsize" after deleting emails

I have a server with several email accounts and limited space. I set up a cron job to delete emails that are older than 5 days, using this: find /home/domain/mail/ -type f -name "*vps.domain*" -mtime +5 -delete It works really well, but cPanel…
Nahuel
  • 3,555
  • 4
  • 21
  • 28
1
vote
3 answers

Managing Permissions on web server for image upload

I have web server which allows for image uploading. When the user uploads an image, it uploads onto the server but when try to access the file using the browser from other pages it is giving me: 403 forbidden What kind of permissions should the…
Om Komawar
  • 251
  • 3
  • 19
1
vote
0 answers

WHM API copy files from an account to another one

I have VPS server and I run a php website on it. I wrote a php script using WHM API to create new a cpanel account and I need to copy some files on a new account directory. I tried to put na ew account directory inside the main cpanel account (which…
1
vote
1 answer

CasperJS does not work in Cron when called from PHP script

As a test, I have the following PHP sript: The casperjs script is the following: var casper =…
E.S.
  • 511
  • 1
  • 4
  • 6
1
vote
1 answer

how to enable "Default Address" on cPanel, I can't see the icon there

I've purchased a new VPS from Bluehost and I got the server with CentOS installed and cPanel on it, on my other server, I had an icon under the "email" tab on cPanel called "Default Address", over there i could set up to pipe all unattended email…
AfikDeri
  • 2,069
  • 17
  • 19
1
vote
2 answers

How To Programmatically Create MySQL Databases on Shared Linux Hosting Plans

Is there a sort of reliable way to programmatically create MySQL databases and MySQL users on shared Linux hosting plans from a PHP page? For instance, accessing cpanel or phpmyadmin through an API or hook if I know my cpanel access information…
Volomike
  • 23,743
  • 21
  • 113
  • 209
1
vote
0 answers

iptable rules for port forwarding and blocking

I would like to know your professional opinions on the following rule for iptables. I know it is possible to move cPanel's port but it's not so easy for WHM and some other services etc. I needed something to route a new private port i.e. 1234 to the…
Prof
  • 2,898
  • 1
  • 21
  • 38
1
vote
2 answers

Read files in batch process cpanel php

I have created one process to read information from files and save into database, everything works fine in my desenv environment, but when I have put files in my php host (production environment) the process fail when read files. to execute my…
user1352652
  • 425
  • 1
  • 8
  • 21
1
vote
1 answer

Error after hosting to hostgator

i am trying to deploy my website on this link : http://face-architects.com but the problem i am facing is this. you can see in above link for my domain at the end of this report for WWW option. It is redirecting to somewhere here: …
user3581428
  • 173
  • 1
  • 1
  • 9
1
vote
1 answer

how to setup pdo_sqlite and pdo module to work in php configuration

every time when a page of my site is loaded by someone i got these error in my error log file PHP Warning: Module 'PDO' already loaded in Unknown on line 0 PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0 PHP Warning: PHP…
1
vote
1 answer

$ is not defined during a Magento installation through cPanel

I am trying to install Magento community edition 1.9.2.1 into cPanel through Godaddy. I have so far extracted the tar file into the file manager, moved all the items in the Magento folder into root, and given folders proper permissions to run. When…
Ali
  • 104
  • 1
  • 8
1
vote
1 answer

Deploying war file on Vesta CP

I am doing this for the first time. I have a VPS server with Vesta CP installed on it. I did the following - Created a new Web Domain. It automatically created entries in DNS I setup FTP user for myself. I am able to connect to ftp using…
zookastos
  • 917
  • 10
  • 37
1 2 3
99
100