WHAT'S NEW?
Loading...
Showing posts with label cPanel. Show all posts
Showing posts with label cPanel. Show all posts
If you use cPanel, sometimes you have to access an installed website without a domain, you can do this by typing the url http://ipwebsite/~cpanelusername If you try to view the website after you installed Wordpress maybe you do not get any images but just text and you can not login with success.




You must go in and change a URL in the WordPress database.


  • Search database name inside the wp-config.php file 
  • Use phpMyAdmin and browse table wp_options, the database entries are listed in columns and rows. 
  • Select the pencil icon (for Edit) on the left for the top row (option_name is "site url") and write http://ipwebsite/~cpanelusername Once you've changed the URL, down at the bottom select the "Go" button. 
  • Look for the option_name home and repeat the same operation, make the same URL change here as you did for siteurl earlier. And click the "Go" button. 


Once you change the siteurl and home, that should allow you to login to the admin page for wordpress and view your wordpress website without problems.
When you see that image, it means that you're running into a self-signed certificate for WHM, that you'll have to accept in order to proceed.



Sometimes you neeed to import the certificate from a server to another to enble SSL and not display this message. The PFX file enables transfer of certificates and their private keys from one computer to another. Assume, you have a file named domainexample.com.pfx and do you want to install into a WHM / cPanel

1. Export the key file,
openssl pkcs12 -in domainexample.pfx -nocerts -out domain.key

2. Export the decrypted key file,
openssl rsa -in domainexample.key -out domain.decrypted.key

3. Export the Certificate, crt file,
openssl pkcs12 -in domainexample.pfx -clcerts -nokeys -out domain.crt

4. Export the Ca Bundle file,
openssl pkcs12 -in domainexample.pfx -cacerts -nokeys -out cabundle.pem
 

After all these operations, go to Open WHM and follow the menĂ¹

Home >> SSL/TLS >> Install an SSL Certificate on a Domain