Wordpress - FTP - PHP Question...

by art72
2 replies
  • WEB DESIGN
  • |
See php error codes below at end of post... (might better explain situation)

Currently, I have 13 domains installed as add-on domains (or sub-domains) on my servers, housed under my main domain. Anyway, all my sub-domain sites are operating fine, as are my wp logins, files, content, etc... *However, all of them were installed with Fantastico 1-Click installer from my CPanel... so a couple of things I could use some help with.

So tonight I decided to do some cleaning via FTP, and deleted most of my stale websites, and a bunch of trash files from my servers in preparation to install WP on a new sub-domain manually using FTP. (*for the first time).

When I saw all the files stored 'outside' my named sites, I just assumed they were storing junk files on my servers, and I started deleting a bunch of 'unwanted' files.

However, I managed to lose my wp-admin access to my main domain, along with my main website files. Currently, I am only seeing the following:

Index of /

Followed by a 'bullet list' of links to my sub-domains, and then...

Apache Server at mymaindomain.com Port 80

My public_html file appears to still be in tact, so I am assuming I just accidentally wiped out WP from my main index, and possibly some other wp related content & plugin files, whereby I can no longer see my main site...OOPS!!!

(*At least, that's what I am hoping to confirm)

I'm pretty sure I understand the process for adding a sub-domain WP install manually using FTP, but a bit vague on the best approach to rewriting or replacing all the the 1-Click installed WP files to secure my sites a bit more?

Can I simply use my main database sql login info and the same wp-config.php file info, user & password, and re-place the old WP installations (via FTP) to all my sites/sub-domains at once?

or

Do I need to remove the old WP files all togther and create a new database for each sub-domain, and manually do each site one-by-one?

Obviously, the 1st priority is confirming 'IF" the deletion of WP on my main site would cause the following:

Index of /

Followed by a 'bullet list' of links to my sub-domains, and then...

Apache Server at mymaindomain.com Port 80

Being I am over-tired...

I might sleep better tonight, knowing it's a simple fix. For now, I don't want to risk screwing anything up, so any help is greatly appreaciated.

Definitely, need to make learning PHP, as soon as possible!

Thanks in advance.

Art

Added:
[12-Apr-2015 22:02:54 America/Chicago] PHP Fatal error: require_once(): Failed opening required '/home2/my_username/public_html/wp-load.php' (include_path='.:/opt/php54/lib/php') in /home2/my_username/public_html/wp-admin/admin.php on line 31
[12-Apr-2015 22:06:44 America/Chicago]

PHP Warning: require_once(/home2/my_username/public_html/wp-load.php): failed to open stream: No such file or directory in /home2/my_username/public_html/wp-admin/admin.php on line 31


[12-Apr-2015 22:06:44 America/Chicago] PHP Fatal error: require_once(): Failed opening required '/home2/my_username/public_html/wp-load.php' (include_path='.:/opt/php54/lib/php') in /home2/my_username/public_html/wp-admin/admin.php on line 31
[12-Apr-2015 22:33:04 America/Chicago]

PHP Warning: require_once(/home2/my_username/public_html/wp-load.php): failed to open stream: No such file or directory in /home2/my_username/public_html/wp-admin/admin.php on line 31


[12-Apr-2015 22:33:04 America/Chicago] PHP Fatal error: require_once(): Failed opening required '/home2/my_username/public_html/wp-load.php' (include_path='.:/opt/php54/lib/php') in /home2/my_username/public_html/wp-admin/admin.php on line 31
#ftp #question #wordpress
  • Profile picture of the author emptee
    Originally Posted by art72 View Post

    See php error codes below at end of post... (might better explain situation)

    Currently, I have 13 domains installed as add-on domains (or sub-domains) on my servers, housed under my main domain. Anyway, all my sub-domain sites are operating fine, as are my wp logins, files, content, etc... *However, all of them were installed with Fantastico 1-Click installer from my CPanel... so a couple of things I could use some help with.

    So tonight I decided to do some cleaning via FTP, and deleted most of my stale websites, and a bunch of trash files from my servers in preparation to install WP on a new sub-domain manually using FTP. (*for the first time).

    When I saw all the files stored 'outside' my named sites, I just assumed they were storing junk files on my servers, and I started deleting a bunch of 'unwanted' files.

    However, I managed to lose my wp-admin access to my main domain, along with my main website files. Currently, I am only seeing the following:

    Index of /

    Followed by a 'bullet list' of links to my sub-domains, and then...

    Apache Server at mymaindomain.com Port 80

    My public_html file appears to still be in tact, so I am assuming I just accidentally wiped out WP from my main index, and possibly some other wp related content & plugin files, whereby I can no longer see my main site...OOPS!!!

    (*At least, that's what I am hoping to confirm)

    I'm pretty sure I understand the process for adding a sub-domain WP install manually using FTP, but a bit vague on the best approach to rewriting or replacing the 1-Click installed WP files?

    Forgive my lack of knowledge, but can I simply use my main database sql login info and the same wp-config.php) file info, user & password, and re-install WP (via FTP) to all my sites/sub-domains at once?

    For now, I have downloaded the latest version of WP, unzipped the files, reconfigured the wp-config-sample (php) file (using Notepad++) - as well as changed the 'wp_' prefix file to a random alpha-numeric name, and saved the username and password info for a specific (sub-domain) database I just created... but stopped at having the files ready to upload from my local host in FTP to do some 'cleaning'. (*Which is where the problem started...LOL)

    Is there a way to repair all prior wordpress 1-Click installations or simply fix them up with new pass words, and php file updates on all my domains at one time using my main user, pass, and database info?

    or

    Do I need to remove the WP files altogther and create a new database for each sub-domain, and manually do each site one-by-one?

    Obviously, the 1st priority is confirming 'IF" the deletion of WP on my main site would cause the following:

    Index of /

    Followed by a 'bullet list' of links to my sub-domains, and then...

    Apache Server at mymaindomain.com Port 80

    Sorry, a bit bugged out at the moment, 2 pots of coffee later...been at this for 7 hours now, and once I know if I can (or should) simply use the same edited wp-config.php on all my sub domains... with the main datbase user/pass and config - all in one go...

    I might sleep better tonight. Definitely, need to learn PHP, as soon as possible!

    Thanks in advance.

    Art

    Added:
    [12-Apr-2015 22:02:54 America/Chicago] PHP Fatal error: require_once(): Failed opening required '/home2/my_username/public_html/wp-load.php' (include_path='.:/opt/php54/lib/php') in /home2/my_username/public_html/wp-admin/admin.php on line 31
    [12-Apr-2015 22:06:44 America/Chicago]

    PHP Warning: require_once(/home2/my_username/public_html/wp-load.php): failed to open stream: No such file or directory in /home2/my_username/public_html/wp-admin/admin.php on line 31


    [12-Apr-2015 22:06:44 America/Chicago] PHP Fatal error: require_once(): Failed opening required '/home2/my_username/public_html/wp-load.php' (include_path='.:/opt/php54/lib/php') in /home2/my_username/public_html/wp-admin/admin.php on line 31
    [12-Apr-2015 22:33:04 America/Chicago]

    PHP Warning: require_once(/home2/my_username/public_html/wp-load.php): failed to open stream: No such file or directory in /home2/my_username/public_html/wp-admin/admin.php on line 31


    [12-Apr-2015 22:33:04 America/Chicago] PHP Fatal error: require_once(): Failed opening required '/home2/my_username/public_html/wp-load.php' (include_path='.:/opt/php54/lib/php') in /home2/my_username/public_html/wp-admin/admin.php on line 31
    Hi Art,

    Sounds like you've got a dilemma there!

    From what I've read, it certainly sounds like you've deleted some files (but not all?) from public_html.. I'm guessing you've got index.php, but little else?

    Now, repairing "one click" installs.. The good news is, there's nothing special at all about them - the installer just automates the process of creating a database (if it needs to), setting up wp-config.php etc.. But it doesn't do anything you can't do yourself.

    Now, as for repairing.. you should be able to drop a copy of wordpress into the appropriate subdomain folder, then edit the wp-config.php file to match. Unfortuantely I can't tell you exactly what to put in there as it depends on your database and table configuration. It sounds like you have a fair idea about how it fits together though!

    Keep in mind that any media, plugins, themes, etc.. you added to the sites will be gone though, as it is not stored in the database.

    If you need a hand, flick me a PM and I'll help ya

    Cheers,
    Michael
    {{ DiscussionBoard.errors[9999033].message }}
  • Profile picture of the author art72
    Thanks Michael,

    While I learned a lot from this experience, I appreciate you mentioning that if I change my database, I lose my content. -Didn't realize that, and I think you answered my conundrum, as I changed my database files before everything disappeared. Here I thought to be protecting my content, so much for blind initiatives, lol.

    Luckily, the site wasn't ranked high for many keywords or making a ton of money, so, it's a loss I can live with, for lack of a better term.

    If I can't get things sorted out tomorrow, I'll send over a pm - thank-you for offering.

    Have a good-evening.

    Art
    Signature
    Coming Soon... *Laser Targeted Lead Generation Services
    {{ DiscussionBoard.errors[9999061].message }}

Trending Topics