How to Runn a Website on linux vps - webserver

I recently have bought a centos 7 VPS server and i want to upload my php website to it. It's completely different than a hosting. How should I do it?
It would be appreciated if you explain for me these things
how to connect a domain to my to my VPS
how to install a webserver on my VPS
where do I upload my files
I also need to upload my SSL certificate where do I upload it
And by the way I don't want to use a control panel like cpanel or other control panels.

Step 1: At first connect your nameserver to your domain.
Step 2: Priliminary setup on your linux vps [Link: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-centos-7
Step 3: Install your webserver,specific database,SSL etc. Checklist Link
Step 4: Then you can upload code on any FTP client or via github(Push Code on your repository and then pull form your VPS).

Related

Data Grid Server On Development Computer With SSL

I am doing some kind of poc on my development machine. I downloaded Red Hat Data Grid 8.2 Server and installed unzipping it. I edited infinispan.xml file and removed the comments on tag to enable TSL. Then I started the server locally using server.bat. But when I browse to 127.0.0.1:11222 I cannot browse data grid server administration console. I guess, it is because I enabled TSL and I don't know how I can browse the console.
P.s: If I don't enable TSL I can connect data grid server administration console
If you haven't set a custom Keystore, Infinispan will generate a self-signed certificate.
Usually, self-signed certificates are blocked by the browser;
so, make sure the browser isn't blocking the connection and that you are connecting to https://127.0.0.1:11222.
More information in the Documentation.

Plesk remove hosting type `Website hosting` from service plan

I am using Plesk Onyx Web Host Edition 17.5.3 + CentOS 7.
I want to create a Service plan where the Customer can change the Hosting type from No webhostingto forwarding and back, while LACKING the option to change it to Website hosting.
How do I remove the Hosting type Website hosting from a Service plan?
There is no such feature in Plesk at the moment. The only option is to set No hosting, but then it will be impossible to switch to Forwarding as well.
You can always suggest new functionality via the following link - https://plesk.uservoice.com/forums/184549-feature-suggestions Describe your use case there.

Remove certificate from old server and install on new server

We host a website in our company.
A certificate was issued to www.ourdomainname.com from the company IT department.
Now we want to move the website to azure and install the certificate there.
I already exported the certificate with private key exported set to true from the server.
1.) What will happen when the certificate is installed on azure when it is also installed on our company server?
2.) What will happen when the website on our server is stopped in the server and the certificate is then imported to the azure website?
3.) How can I guarantee a soft transition time without any break?
The aim is:
Website on the company server going to be deleted and the website on azure is used instead.
What will happen when the certificate is installed on azure when it is also installed on our company server?
web site will be available via SSL in Azure too.
What will happen when the website on our server is stopped in the server and the certificate is then imported to the azure website?
web site on your server will be inaccessble.
How can I guarantee a soft transition time without any break?
it is more about DNS management. There is no much work with SSL. You just install SSL on both internal and Azure servers, so clients can access both. Test if web site on Azure works the same way as on your internal server. Then point all clients (via DNS) to a web site on Azure. When all clients move and there are no references to internal server, you can safely shutdown it.
The SSL Certificate which was exported from the current server has to be imported in Azure. The format of the certificate has to be PFX.
Now, in the DNS Management , you need to edit the A record for the URL and point it to the IP address of Azure. This will make sure that any request made will be handled by Azure .

Will JIRA clash with Plesk on Install

I have a dedicated hosting account that is managed using Plesk (i am not very comfortable with Linux command line - learning). Plesk is fine as its easy to use for managing different web spaces.
I want to know if i install JIRA on the same server will i run into
any issues with Plesk. I believe the ports used for Plesk and JIRA
are not the same (8080 for JIRA).
Are there any good walk throughs for doing so
Any recommendations on the install process
Eventually, i want JIRA to be accessed via subdomain url j.domain.com and not xx.xxx.xx.xx:xxxx. how could i set this up
thanks a lot!
Yes, JIRA can be installed on Plesk server without any issues.
There is port clash only with Tomcat, so if you have it installed JIRA installer suggest you to choose another port.
# wget https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-7.2.4-x64.bin
# chmod +x atlassian-jira-software-7.2.4-x64.bin
# ./atlassian-jira-software-7.2.4-x64.bin
It's better to use MySQL database if you haven't experience with PostgreSQL.
JIRA installer always silently fallback to built in H2 file database in case of issue with provided DB settings
you have to create domain, database and mail user in plesk
You have to enable proxy_http in Tools&Settings > Apache Web Server and create file /httpdocs/.htaccess in j.domain.com domain to redirect requests to JIRA:
RewriteEngine on
RewriteRule ^(.*) http://127.0.0.1:8080/$1 [P,L]
SMTP settings:
Troubleshooting:
Logs are placed here /opt/atlassian/jira/logs/catalina.out

Let's Encrypt certificate automatic installation and renewal without SSH access?

I have a website running on a shared hosting provider (ie. without SSH access). CPanel is installed. Is it possible to install (and just as importantly, renew) a Let's Encrypt certificate automatically without SSH access? Perhaps a CPanel plugin or cron job (for automatic renewals)?
follow this tutorial to for auto renewal https://neurobin.org/docs/web/fully-automated-letsencrypt-integration-with-cpanel/
You can install Lets encrypt SSL using cPanel ssl/tls -->Install and Manage SSL for your site (HTTPS) --> Manage SSL Sites. To renew certificate you need to regenerate it using your account key and Certificate provided by Lestencrypt in first time. I have done successfully that on GreenGeeks shared hosting help of http://wayneoutthere.com/how-to-lets-encrypt-cpanel-shared-hosting/. You can use https://zerossl.com/free-ssl/#crt to generate Certificates and copy to Cpanel.
You can try to install SSL on your domain through cPanel >> Security >> SSL.
If you are unable to find this in your cPanel then you need to install SSL on your domain through WHM.
You will need Let's Encrypt itself to be installed on the server before running any plugin or crontab job (specially that).
I doubt there is a way to do that without SSH connection, specially on a shared server.