Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - aamirrajpoot

Pages: [1]
1
CentOS-WebPanel Bugs / All accounts got suspended, Can access root
« on: February 15, 2019, 06:55:18 AM »
I have added couple of user accounts and everything working fine for past couple of months.

It happened that one of my client's domain expired and he moved it to his other server, but they were having issues there and asked me to redirect it back to my server. I had not removed their content so its a matter of changing DNS records only for domain. Which I did and their domain is back.

now I tried to login to their account, and I got message it is suspended,

I have performed following so far

1. Checked if user is suspended in Admin panel or not... it is not
2. Rebuild server configuration by going to CWP Side Bar-> CWP Settings -> Edit Settings -> Rebuild hosts files (checked) and saved
3. grep USERNAME /etc/shadow  and i see USERNAME:$ instead of USERNAME:!! so its correct here as well
4. Rebooted the server, didnt logged in.


Any how, i thought to delete and recreate the account, but before that I tried to login someother users and unfortunately all of my users are giving same error 'Account Suspended' So yeah i have not recreated that account yet, and came here for a solutions.


Thanks

2
CSF Firewall / Chat Application with port 8065 - IP not working
« on: January 02, 2019, 06:24:49 AM »
I have been struggling for couple of days that my chat application works only for 24 hours and then stops working. Then I realized that when I do login on CWP with root, my IP gets added in temporary list and chat app starts working. But users on other locations are still not able to connect.


Running Mattermost ( A clone of slack ) for a small team. It runs on port 8065. I have enabled this port in both TCP/UDP in/out sections.

I want it to accessible permanent from anywhere from any IP. Sometimes we do have to work from home and everyone can not have static IP.

Thank you

3
DNS / Re: Unable to start BIND DNS server
« on: December 26, 2018, 12:01:32 PM »
I am not sure which file to provide now, as bind dns is working at the moment. on the other hand I dont want to mess things up again :D

one thing I remember that when I provided MX record I provided TTL for that as well I think in Cache field. cant remember exactly, but when I added it manually, it didnt have TTL value. Shown above

4
DNS / Re: Unable to start BIND DNS server
« on: December 25, 2018, 07:41:12 PM »
Solved by going to Edit Nameservers IPs in DNS section and hit save button with both options selected.

After that edited the zone file for my domain and manually added

Code: [Select]
@ IN MX 1 ASPMX.L.GOOGLE.COM.
@ IN MX 5 ALT1.ASPMX.L.GOOGLE.COM.
@ IN MX 5 ALT2.ASPMX.L.GOOGLE.COM.
@ IN MX 10 ALT3.ASPMX.L.GOOGLE.COM.
@ IN MX 10 ALT4.ASPMX.L.GOOGLE.COM.

Looks everything is working now

5
DNS / Unable to start BIND DNS server
« on: December 25, 2018, 06:08:39 PM »
I am new to CWP and moved my all sites over. SSL applied and everything was working. for one domain I need to set MX record to google and i went to user account and added the MX record, it gave me error and after that my BIND DNS is not starting. I am getting error

Job for named.service failed because the control process exited with error code. See "systemctl status named.service" and "journalctl -xe" for details.


Here is the log

Code: [Select]
systemctl status named.service
● named.service - Berkeley Internet Name Domain (DNS)
   Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2018-12-25 17:41:04 UTC; 16s ago
  Process: 18311 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exited, status=1/FAILURE)

Dec 25 17:41:04 server.aalasolutions.com bash[18311]: zone aalasolutions.com/IN: NS 'ns1.aalasolutions.com' has no address records (A or AAAA)
Dec 25 17:41:04 server.aalasolutions.com bash[18311]: zone aalasolutions.com/IN: NS 'ns2.aalasolutions.com' has no address records (A or AAAA)
Dec 25 17:41:04 server.aalasolutions.com bash[18311]: zone aalasolutions.com/IN: not loaded due to errors.
Dec 25 17:41:04 server.aalasolutions.com bash[18311]: _default/aalasolutions.com/IN: bad zone
Dec 25 17:41:04 server.aalasolutions.com bash[18311]: zone urdulook.info/IN: loaded serial 2018071600
Dec 25 17:41:04 server.aalasolutions.com bash[18311]: zone aala.pk/IN: loaded serial 2018071600
Dec 25 17:41:04 server.aalasolutions.com systemd[1]: named.service: control process exited, code=exited status=1
Dec 25 17:41:04 server.aalasolutions.com systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Dec 25 17:41:04 server.aalasolutions.com systemd[1]: Unit named.service entered failed state.
Dec 25 17:41:04 server.aalasolutions.com systemd[1]: named.service failed.

I tried to rebuild the DNS zone files from DNS section in Admin panel, no luck so far

6
CentOS-WebPanel Bugs / Re: AutoSSL not adding on www
« on: December 14, 2018, 03:26:12 PM »
You must remove the redirect from http to https before generating the Auto ssl, then you could place it again

Thanks @josemnunez, that was the issue.

For any one coming here or future me.

If wordpress is hosted on HTTPS first and then moved to CWP. need to change `siteurl` and `home` values to be without https in `wp_options` table. This will stop the redirect to https. Then generate the certificate.

It does solve my problem

7
CentOS-WebPanel Bugs / Re: AutoSSL not adding on www
« on: December 14, 2018, 02:32:08 PM »
I could see that SSL is properly installed on your website https://www.sslshopper.com/ssl-checker.html#hostname=pgrepublic.com

Are you using apache or any other webserver?

Try to restart apache to see the affect.

if you check https://www.sslshopper.com/ssl-checker.html#hostname=www.pgrepublic.com you will notice "None of the common names in the certificate match the name that was entered (www.pgrepublic.com). You may receive an error when accessing this site in a web browser."

8
CentOS-WebPanel Bugs / Re: AutoSSL not adding on www
« on: December 14, 2018, 02:20:41 PM »
I recently have transferred my domain to CWP and I am getting error .. NET::ERR_CERT_COMMON_NAME_INVALID

My domain is https://www.pgrepublic.com

If your htaccess redirect to www try to remove www and redirect to https://pgrepublic.com

Or simply add redirect on vhost :

Code: [Select]
<VirtualHost *:80>
ServerName www.example.com
Redirect / https://example.com/ <== add this line below ServerName
</VirtualHost>


I can try that, but this is not the solution to the problem. AutoSSL should generate for both pgrepublic.com and www.pgrepublic.com. Other thing is SEO and bank links which I am afraid of

9
CentOS-WebPanel Bugs / Re: AutoSSL not adding on www
« on: December 14, 2018, 02:16:39 PM »
I could see that SSL is properly installed on your website https://www.sslshopper.com/ssl-checker.html#hostname=pgrepublic.com

Are you using apache or any other webserver?

Try to restart apache to see the affect.

Yes I restarted the apache, even restarted whole server couple of times. No effect

10
CentOS-WebPanel Bugs / AutoSSL not adding on www
« on: December 14, 2018, 10:26:47 AM »
I recently have transferred my domain to CWP and I am getting error .. NET::ERR_CERT_COMMON_NAME_INVALID

My domain is https://www.pgrepublic.com

Pages: [1]