Can WordPress and my website share the same space?

I’d like to add some WordPress pages to my existing site but I’m not sure if it’s possible. Can the two co-exist within the same site (sfl-main.000webhostapp.com)? Or do my normal HTML/PHP pages need to be in a different site than my WordPress pages?

I realize I could just try to add WordPress to the existing site and see what happens but I’m concerned that this might inadvertently erase everything that’s already there and replace it with WordPress. That would really ruin my day!

They can be on the same site, but you cannot use the auto installer. You have to install manually by uploading the zip file and creating the database.

I’ve downloaded the zip file of WordPress; it extracted into a folder called wordpress-4.8. I took everything within that folder and uploaded it to my backup website, sfl-backup.000webhostapp.com in a directory called wordpress immediately below public_html. Then I typed the URL http://sfl-backup.000webhostapp.com/wordpress in my browser. That obviously launched a script that is asking me for database values. It’s prefilled all of them but I’ve changed just two values, the username and the password. The resulting form contains:
database name: wordpress
username: sflmembers
password: [I’ll keep that to myself but it is reasonably long has at least one digit and has both upper and lower case characters]
database host: localhost
table-prefix: wp_

WordPress doesn’t like those values but I’m not sure why. Is it looking for me to use my 000webhost ID, id1819424 in the username or even to use only that as the username? Does it want a longer or shorter password or for the password to follow different rules? Or is it something else altogether?

You have to use the id******* because thats the actual database info.

Okay, I changed the username to id1807084 (that’s the id for my backup site; the other one was for the main site) and left everything else the same. It still failed. This is the message:

Error establishing a database connection

Are you sure you have the correct username and password?
Are you sure that you have typed the correct hostname?
Are you sure that the database server is running?

If you’re unsure what these terms mean you should probably contact your host.

I know the website is up; I just checked it. What do I need to try next?

You head to 000webhost.com, you make the database for WordPress to use

  1. Manage Database
    http://puu.sh/wwE4P/c6ce9624fd.png

  2. New Database
    https://puu.sh/wwE28/410e61d695.png

  3. Create Database
    https://puu.sh/wwE2h/efe0e9aec7.png

  4. It will create the database
    https://puu.sh/wwE2j/84cf3425fb.png

  5. It will provide the full username, database name to be used along with the host localhost
    http://puu.sh/wwE5u/310bae5a4f.png

Use these details on the WordPress Installer

Thank you very much for that information, Infinity! The wording in the WordPress install script gave me the impression that it was creating the database for me: it was not remotely clear to me that I had to create the database manually so that it could proceed.

I think I need to send them a suggestion that they clarify the wording a bit…

Thanks again, Infinity! I’ve got WordPress installed successfully now :slight_smile:

1 Like

Great to hear!

Happy website building :slight_smile: