Ian Daniels

Well-Known Member
Nov 3, 2016
69
1
8
Manchester
cPanel Access Level
Root Administrator
I have had a response from our host providers, and they have given me this response regarding the HTTP 500 error

Restoring a full backup does not restore the EasyApache profiles, only the site files and databases. EasyApache is the wizard in WHM which configures the Apache server and installs modules for you - if you visit this interface in the old server there may be an export button. Once exported, import in the new server and it will set up PHP + Apache how it was on the old server.


The current configuration would not work no, as far as I’m aware. I’d ignore the SNI bit too where it says it is possible in some circumstances at the top because I’ve never had this working Is unique IP address a must for SSL?


A wildcard would allow SSL on all domains yes but you’d have to configure that, enable SSL on the main domain, make sure all links on the corp website link to HTTPS rather than HTTP (quite a big job).
Firstly how would I export my Apache profile?

and import it into my new site?
 
Last edited by a moderator:

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
Your support site opens on the (old?) 88.202.xxx.xxx IP address. It also works on the sub.domain.
The new IP: 137.116.xxx.xxx is a shared IP as seen in your posted list accounts image, your support site cannot open on that IP by itself. Using ~username won't work on your current setup.

If you've got an extra IP address on the new server, create an account with the support.subdomain.com and give it that dedicated IP and then it will be view-able at that IP address you give it.
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter

Ian Daniels

Well-Known Member
Nov 3, 2016
69
1
8
Manchester
cPanel Access Level
Root Administrator
I am working on getting a second IP in for the sub domain, how would I transfer a apache 3 profile into a apache 4

As the live site uses 3, and there is only a option for 4 on the new site please see picture below
 

Ian Daniels

Well-Known Member
Nov 3, 2016
69
1
8
Manchester
cPanel Access Level
Root Administrator
Basically there is no option on the WHM control panel for apache 3

I can't upload the profile.

The httpd service isn't working, so any website that was working isn't anymore

The whole build is not working
Code:
[[email protected] home]# service httpd start
Redirecting to /bin/systemctl start  httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[[email protected] home]# /etc/init.d/httpd start
-bash: /etc/init.d/httpd: No such file or directory
[[email protected] home]#
Message from [email protected] at Nov 24 10:47:58 ...
kernel:Restarting system.

The service “httpd” appears to be down. 

  Server  vps4.example.com

Primary IP Address  10.1.2.4

Service Name  httpd

Service Status  failed 

Notification  The service “httpd” appears to be down.

Service Check Method  The system failed to connect to this service’s TCP/IP port. 

Reason Unable to connect to port 80 on 127.0.0.1: Connection refused: Died 

Number of Restart Attempts  1

Startup Log  Nov 24 10:48:32 vps4.example.com systemd[1]: Starting Apache webserver managed by cPanel EasyApache...

Nov 24 10:48:32 vps4.example.com restartsrv_httpd[737]: (XID phf787) The system could not find the “httpd” binary.

Nov 24 10:48:32 vps4.example.com systemd[1]: httpd.service: control process exited, code=exited status=2 Nov 24 10:48:32 vps4.example.com systemd[1]: Failed to start Apache webserver managed by cPanel EasyApache.

Nov 24 10:48:32 vps4.example.com systemd[1]: Unit httpd.service entered failed state.

Nov 24 10:48:32 vps4.example.com systemd[1]: httpd.service failed. 

Memory Information  Used  693 MB

Available  26.8 GB

Installed  27.48 GB

Load Information  0.00 0.08 0.05

Uptime 6 minutes

IOStat Information  avg-cpu: %user %nice %system %iowait %steal %idle 0.44 0.02 0.28 0.06 0.00 99.20 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn sdb 1.31 9.47 0.30 3405 108 sda 28.14 1348.93 79.28 485237 28517 

Top Processes  PID  Owner CPU %  Memory %  Command

1835  root  16.13  0.05  /usr/local/cpanel/scripts/restartsrv_proftpd --check --notconfigured-ok 

1757  root  4.55  0.34  spamd child 

1429  root  1.14  0.35  /usr/local/cpanel/3rdparty/perl/522/bin/perl -T -w /usr/local/cpanel/3rdparty/bin/spamd --max-spare=1 --max-children=3 --allowed-ips=127.0.0.1,::1 --pidfile=/var/run/spamd.pid --listen=5 --listen=6

1  root  0.70  0.03  /usr/lib/systemd/systemd --switched-root --system --deserialize 21 

1746  root  0.59  0.11  tailwatchd - chkservd - ftpd check 


The chkservd process attempts to connect to “127.0.0.1:80” in order to validate that this service is functioning. If you blocked connections with iptables or the “Host Access Control” interface in WHM, this failure may be a false positive.


To resolve this issue, either open the firewall to allow connections as the root user to “127.0.0.1:80” or disable checks for this service in WHM’s “Service Manager” interface with the “Configure Monitor Settings” link below.


Configure Monitor Settings:
 
Last edited by a moderator:

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
Did you see the 3rd post in that thread I linked you to, suggesting you manually open the URL?

Update.

After switching on the ea3 whm menu does not appear.

solution.

ipadress:2087/yourcpsession12345678/cgi/easyapache.pl

then make php compilation process in the whm menu will appear after completion.

I missed you ea3. ;)
 

Ian Daniels

Well-Known Member
Nov 3, 2016
69
1
8
Manchester
cPanel Access Level
Root Administrator
I did see that thread, however nothing would start after trying to revert to EasyApache 3

Would it be a idea to burn the box and install a version of CPanel that has Easy three preinstalled?
 

Ian Daniels

Well-Known Member
Nov 3, 2016
69
1
8
Manchester
cPanel Access Level
Root Administrator
I did the following commands

mkdir /usr/local/apache.ea3/

Then

/scripts/migrate_ea3_to_ea4 --revert --run

Then tried the extension uploaded the profile

and tried to restart the httpd service with no success