Questions tagged [cpanel]

66 questions
42
votes
6 answers

How to get memory used(RAM used) using Linux command?

I am trying to retrieve memory used(RAM) in percentage using Linux commands. My cpanel shows Memory Used which I need to display on a particular webpage. From forums, I found out that correct memory can be found from the following: free…
codelogn
  • 523
  • 1
  • 4
  • 6
24
votes
2 answers

nmap doesn't appear to list all open ports

My rental Linux server doesn't respond to nmap the way I thought it would. When I run nmap it shows three open ports: 80, 443 and 8080. However, I know ports 2083, 22 and 2222 should all be open, as they're used for the web-based C-Panel, SSH and…
Peter David Carter
  • 502
  • 2
  • 7
  • 29
11
votes
2 answers

A filename has an asterisk for some reason - it won't be changed and content not executed

I use CentOS shared server environment with Bash. ll "$HOME"/public_html/cron_daily/ brings: ./ ../ -rwxr-xr-x 1 user group 181 Jul 11 11:32 wp_cli.sh* I don't know why the filename has an asterisk in the end. I don't recall adding it and when I…
Arcticooling
  • 1
  • 12
  • 44
  • 103
5
votes
3 answers

Install Git on CentOS 5.5

I have added EPEL repo and here goes... # yum install git-core Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.team-cymru.org * base: yum.singlehop.com * epel: mirrors.servercentral.net * extras:…
Marcelo Rodrigo
  • 221
  • 2
  • 7
4
votes
4 answers

Is it a correct way to clear the exim mail queue?

I use the following command to delete the exim mail queues exiqgrep -i | xargs exim -Mrm or # following commands seems to work faster compared to the above. exim -bpru | awk {'print $3'} | xargs exim -Mrm But the above commands do not work when…
Mani
  • 554
  • 6
  • 11
  • 26
3
votes
1 answer

SSH best practice with a privileged port

I am using cPanel on Centos 7.7 and I am a bit confused about this note in the documentation: We recommend that you use a privileged port of 1 - 1023 that another service does not currently use. Only the root user can bind to ports 1 - 1023.…
rolinger
  • 165
  • 9
3
votes
2 answers

Network is unreachable in CentOS 7 after disabling Network Manager for cPanel + restart

I have a server from OVH (SoYouStart technically), it's running Proxmox and the VM is running CentOS. I followed the instructions here and then here to disable the network manager, I installed cPanel and got it working fine. I added extra IP…
Jon
  • 33
  • 1
  • 1
  • 6
3
votes
1 answer

Apache: how to run PHP files via CGI as normal user and without them being executable

Background Config of server I want to mimic I have access to a CentOS 7 server with cPanel/WHM installed, running EasyApache4 with the following configuration: # /usr/local/cpanel/bin/rebuild_phpconf --current DEFAULT PHP: ea-php56 ea-php55 SAPI:…
user6860
3
votes
2 answers

Can i run grep from cPanel without SSH?

I need to search a large amount of files on my hosting that runs cPanel. They don't have SSH, is there a way I can run grep in any other way to search my files for a certain piece of text?
TPLinks
  • 133
  • 2
2
votes
1 answer

Server is failing SSH connections

Not certain what's happened here, but any SSH connection to my server is failing. Yesterday it was working, today it is not. Server: Centos 6.10 cPanel v86.0.18 Client: Windows systems using Putty SSH I am on a Windows machine using Putty. I…
rolinger
  • 165
  • 9
2
votes
1 answer

How to make my system centos 7 use primarily ipv4 if it's available

I have CentOS 7 running on an AWS machine. I recently enabled IPv6, and everything was working fine – except for the fact that PHP connection requests (also curl from command line) always prefer to use IPv6 instead of IPv4. This causes some issues…
Grego
  • 121
  • 1
  • 2
2
votes
0 answers

Postfix stop continuously

I just successfully configured Sendgrid into a Google Cloud Instance which is CPanel installed on CentOS. Here I have done it. When install Postfix I have to remove currently installed exim4. Installation is successful, But I found sometimes Postfix…
NiroshanJ
  • 133
  • 1
  • 6
2
votes
2 answers

How to run cronjob every 4 hours minus 1 second

I have data coming from API and I want to call it and dump the data in my db every 4 hours (current day data). I used the following : 0 */4 * * * The data in my report is missing some values, I was thinking that the cronjob is called like…
1
vote
1 answer

Unable to make outbound connections on port 443

I have an old server on CentOS 5, with cPanel installed, hosted on Amazon AWS EC2: uname -a Linux 2.6.32-573.22.1.el6.x86_64 #1 SMP Wed Mar 23 03:35:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux It wasn't touched for a very long time. Today, suddenly,…
synweap15
  • 121
  • 4
1
vote
1 answer

Should I worry if 'pkexec' is in a cPanel user's /home/virtfs (CVE-2021-4034)?

The recent security bug CVE-2021-4034 in Linux involves /usr/bin/pkexec. Following media reports (zdnet, etc.) I changed its permission, but also found this file: /home/virtfs/foo/usr/bin/pkexec for cPanel user foo. I don't know why a user would…
kitchin
  • 131
  • 2
1
2 3 4 5