Can not access Centos admin panel CWP Pro - centos7

I recently installed OpenVPN on my VPS (Centos 7) which runs on a different port(943).
Since then I am not able to access CWP Pro which runs on port(2031).
SSH and other services works perfectly.
Any idea on how i can fix that problem without reinstalling CWP Pro?

Your copy of CWP pro may have expired. Run the update command sh /usr/local/cwpsrv/htdocs/resources/scripts/update_cwp on SSH shell.
You can login as root to change user configuration and change user password to access user accounts at ip_address:2031

Related

How to pair AWS EC2 MacOS Instance to Visual Studio

I am currently developing a mobile app for iOS and Android using .NET MAUI. I am running Visual Studio 2022 Preview on Windows 10 (Visual Studio Version 17.3.0), so to debug and run an emulator for iOS I need to pair Visual Studio to a Mac (https://learn.microsoft.com/en-us/dotnet/maui/ios/pair-to-mac).
I have an AWS MacOS EC2 Instance on a dedicated host for this (running Monterey 12.4). From my local machine, I can ssh into it using the ".pem" file I received from AWS. I have followed all the relevant instructions to enable remote login on the Mac, and I established a VNC connection so I could verify all the settings in the GUI. I set up a password for the ec2-user profile because Visual Studio requires a username and password to pair to the Mac instead of ssh keys. Every time I try to connect with Visual Studio, I receive an error stating I have incorrect credentials. I have tried:
Changing ssh settings in /etc/ssh/sshd_config. I have set PasswordAuthentication = yes and PermitRootLogin = yes. I have tried setting ChallengeResponseAuthentication = yes or no at different times and have done the same thing for the UsePAM setting. Whenever I have changed settings I've restarted the sshd service using:
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
I have edited the /usr/local/aws/ec2-macos-init/init.toml file to allow password authentication and stop the ec2-user password from being randomized. I don't think this should affect me much though, as this config file (I believe) is only run when the machine is rebooted.
In both of the above attempts, I cannot connect to my instance with Visual Studio, and when I try to connect over ssh without the key file, I receive the error:
Permission Denied (Public Key)
I added ssh keys to the remote server and my local .ssh directory so I can login without specifying the .pem file. I hoped perhaps I could then connect in Visual Studio without a password. I can connect fine from ssh, but still cannot connect with Visual Studio.
None of this has worked. Any suggestions for how to connect to this MacOS EC2 instance with a password instead of a key would be much appreciated. I presume if that works I will be able to connect with Visual Studio.
You need
Edit file /usr/local/aws/ec2-macos-init/init.toml
secureSSHDConfig = false
Edit /etc/ssh/sshd_config.d/050-ec2-macos.conf
PasswordAuthentication yes
ChallengeResponseAuthentication yes
UsePAM yes
Reboot macos

Cuckoo permission denied for .vmx file on a Mac OS Host

I am facing an issue when I try to run the cuckoo sandbox after all the installation.
Host Machine: macOS machine with VMware Fusion running. Guest : Windows VM
I installed the Cuckoo Sandbox in a virtual environment within macOS. I did edit the vmware.conf, memorey.conf, cuckoo.conf & processing.conf files.
When i do run the "cuckoo" command to start; it says it doesnt have permisssion to access the .vmx file I mentioned in the "vmware.conf" file.
I have given 777 permission to the entire folder. Not sure why the system gives me such an error.
If you have created a user in the system for the cuckoo sandbox, kindly assign appropriate privileges to the cuckoo sandbox user.

Facing issue in informatica admin console

I have installed informatica 10.1 in my windows 10 machine, and the installation completed successfully. During installation i was able to connect to Admin web-page.
But, once i restarted my pc, I was not able to login Adminpage.
I am new to informatica
Please help.

Installed cPanel -amp- WHM- AMI on AWS - Can't Login to WHM or cPanel

I installed the cPanel & WHM: The Hosting Platform of Choice AMI on AWS last night on a ec2 instance.
It seems to have set it all up and I can get to the login pages of cPanel and WHM but can not log in.
I used the 1-click install and never entered, or was given a user/password combination.
Where can I find or set this information?
I can login through ssh from the aws portal and there is definitely a password set. I tried using
sudo mysql_secure_installation
to reset it but failed to login because I did not have a password. It is not blank.
I am not very familiar with doing things through SSH so please be specific on how to fix this if I need to do it through SSH.
Thank you so much for your help.
Any advice or suggestions about AWS is greatly appreciated.
I think there is an issues with the port/firewall setting. Please enable all cPanel require ports for your AWS and try to login cPanel/WHM.
Here are the all port lists which you need to enable for your server.
https://documentation.cpanel.net/pages/viewpage.action?pageId=7536715#HowtoConfigureYourFirewallforcPanel&WHM%27sServices-Ports
Amazon doesn't allow you to connect through the dashboard as root, you have to login as the user type. In this case, ec2-user. Logged in as this user doesn't allow you use the "passwd" command without the old password. However, you can authenticate as root, then use the passwd command to change the password without having to know the old one/default install. Here's how.
Log into SSH in as the ec2-user.
Run "sudo -i" to authenticate as root.
Once you're "root", you can reset the root password using "passwd".
Then login to WHM.
Looks like you've missed some step before
wget -N http://httpupdate.cpanel.net/latest
I've got the same issue and ended with deleting the instance and staring over.
The only setup guide that worked for me without any issues: https://5best.cloud/build-cpanel-cloud-hosting-amazon-aws-1/

Unable to setup Django in production on EC2 instance running Ubuntu 14.04

I have set up an EC2 instance with Ubuntu and able to login via ssh.
Now I have installed Apache, MySQL (worked fine) and Django also tried to configure it to run with apache. I have tried doing so with mod-wsgi but it still shows a apache default page instead of django (Congratulation ! It works) page. Can someone please provide me instructions for how to setup all this after login into EC2 via SSH.
Here is a tutorial provided by Django.
You need to make sure the apache config file is in /etc/apache2/sites-enabled/ or wherever your apache configuration files rest.
Another silly problem and this might be your issue is whenever I start a new instance of EC2 there is always a config called "000-default" already in the apache sites-enabled. This needs to be DELETED or DISABLED for apache to read from your config instead.
Hopefully this helps!
For a example check the Step 2 of this link. yum + git + pip + python requirements