Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Cpanel Add On Domain
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Cpanel Add On Domain

jcalebjcaleb Member

Hi,

I am very new to CPanel, I am used to configuring stuff using command line. I am pulling my hair now.

My primary domain is abc.com, so root of my website is in /home/abc/public_html
I used softaculous to install wordpress and It was ok. If I enter abc.com in my browser, it loads alright.

Then I added a new domain Using Addon Domains.
New Domain Name: def.com
Subdomain : def
Document Roo: def.com

So Cpanel created /home/abc/def.com directory. Then I use softaculous to install a wordpress there (no subdirectory). But when I vidit def.com, it shows abc.com

But if I install to a subdirectory, E.g. /home/abc/def.com/wp, and point my browser to def.com/wp it loads ok.

Kindly help. I thought cPanel is easier.

Comments

  • ZerpyZerpy Member

    Clearly sounds like a bug somewhere - I'm not able to reproduce it in any of our environments

    Thanked by 1jcaleb
  • imokimok Member

    jcaleb said: So Cpanel created /home/abc/def.com directory. Then I use softaculous to install a wordpress there (no subdirectory). But when I vidit def.com, it shows abc.com

    Have you tried putting a file without Softaculous?

    If it's a Softaculous bug, installing Wordpress manually it's easy.

    Thanked by 1jcaleb
  • jcalebjcaleb Member

    I entered this in my browser and loads ok http://def.com/2017/06/14/hello-world/
    It seems just the home / of def.com is not working. Maybe just .htaccess issue.

  • jcalebjcaleb Member
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
  • jcalebjcaleb Member

    Working now, I added this to the primary domain wp-config.php
    define('WP_HOME','http://abc.com');
    define('WP_SITEURL','http://abc.com');

    and this to the other one
    define('WP_HOME','http://def.com');
    define('WP_SITEURL','http://def.com');

  • WHTWHT Member

    jcaleb said: But when I vidit def.com, it shows abc.com

    It redirects to domain abc.com or it shows the content of abc.com?

  • jcalebjcaleb Member

    @WHT said:

    jcaleb said: But when I vidit def.com, it shows abc.com

    It redirects to domain abc.com or it shows the content of abc.com?

    redirects. But if I go to http://def.com/some-post then it is ok

  • WHTWHT Member

    Will recommend to backup that account and recreate it. Am sure this will fix the issue.

  • jcalebjcaleb Member

    Its working now with my changes in wpconfig

Sign In or Register to comment.