Where I should store the Wordpress site in Xampp (linux) - php

I never use Wordpress but I usually use Xampp (Linux) to work.
So, I installed Wordpress and it works fine, if I enter with my browser to http://localhost/wordpress/ I can see the WP page.
I got from a friend his WordPress site files and stored them in /opt/lampp/htdocs like any regular web site, but when I try accessing http://localhost/folder_name/ I get the Index of folder_name and not the actual site.
I noticed that /opt/lampp/apps/ has a "WP" folder, and inside it - an htdocs folder like xampp have.
Where's the correct place to store the WP project ?
Is it /opt/lampp/apps/wp/htdocs or opt/lampp/htdocs/ ?
How can I get the WP site working and not get the index of / page?

You want to put the root of your WordPress installation in the same location you would put anything you want to be able to access at http://localhost. From what you're saying, it sounds like that is /opt/lampp/htdocs/
The Problem
WordPress runs just about everything through a database, including it's siteurl and home directory values. If you don't have a database at all, nothing is going to work. You'll find more on this problem Here.
The Hard Fix
You could try Migrating your friend's WP install to your XAMPP server, but you'll need their database for that to work. You could then use a tool like Wordpress Database Reset, which will get you back to basically a fresh install, just with any themes and plug-ins your friend's install included.
The Easy Fix
Since it sounds like you want a fresh install with a custom theme or plug-in from your friend, you can just start with a fresh install, and then add any themes and plug-in's in. Installing WordPress is fairly simple since they have a web-based installer to help you get everything set up. Check out this guide. Once you've got the basic site set up you can import any themes and plug-ins you want from your friend's WordPress installation.
I hope this helps!

I have read your problem folder path correct is opt/lampp/htdocs/
you need to make all services enable for server.

Related

WordPress Site missing Dashboard after migration

I had a WordPress installation which I recently moved to a new Linux host. My host is for three website. I already had a WordPress site at the home directory (/public_html/). The later installation is at 'public_html/mukharsamvad.com'. The first WordPress installation is working fine. But the website with domain name 'mukharsamvad.com' is not showing any media (photos etc.). Even after logging into 'wp-admin' it doesn't directs to dashboard. Admin bar appears at the top, but doesn't have any menu or option.
After checking the URLs of images, I have found as 'http://mukharsamvad.com/wp-content/uploads/2019/10/nitish-kumar-11-1.jpg/'. It is treating it as directory. Please recommend me fixes.
Removed old installation and re-install WordPress. After restoring database, problem with image urls solved, but Dashboard still missing.
Here what you can do
check by deactivating all the plugins
change the theme
if not worked , switch for theme editor.
install classic editor plugin and enable it
if this not worked ,
inspect element & check console for errors.
it sounds like you are missing file of Wordpress I would suggest you to compare each directly with installed WordPress if you still don't solve problem then take backup of migrating WordPress installation do fresh installation then override the backup files

How to fix 'ERR_CONNECTION_TIMED_OUT' error in WordPress with WAMPSERVER installed?

I'm running up a local WordPress server with WAMPSERVER, and I'm working on editing the theme's child theme.
I also setup virtual server on my network. In the past few days I don't see any issue, everything work perfect. Until yesterday the virtual server look like not able to connect via my mobile phone and other computer in the same network.
Today I'm trying to work on the editing. It just can't load to the homepage or even wp-admin. So I took a look at the console in developer mode and I had this error.
I have try to do all the research like changing the port at httpd.conf and wp_option in wordpress to localhost. It just don't work at all.
UPDATE:
I have solve the issue with reinstall the WAMPSERVER and WordPress manually. I'll keep this post and make a guide for the future use.
Firstly I have no idea what to do because I can't even load to /wp-admin. So I decided to backup and restore everything manually.
1. Backup directory
Open up where your WordPress installed.
Click on the WAMP icon at the taskbar. If you don't see it probably is hidden inside the up arrow icon. Left click on the WAMP icon and navigate to www directory.
You don't need to copy and backup all the files in here. Navigate to yoursite/wp-content and copy plugins, themes and uploads.
Paste at any place in your computer as a backup except C:\wamp64. Because it will delete all the files when you uninstall the WAMPSERVER.
I'm using WAMPSERVER 3.1.7, older version might be different. Please Google where is my www directory in wampserver replace.your.version or original path which you can find at C:\wamp64\www.
2. Backup database
We need to backup our database in order to recover the page, post or portfolio we created in the WordPress.
In your browser navigate to localhost/phpmyadmin and select your WordPress database at the right panel then select export button on the top and press GO. Make sure your Format: SQL before you press press the go.
All the pages, posts and portfolios that you created are store inside the database, not in the WordPress folder. Read more at here.
Uninstall WAMPSERVER
Update later...
Reinstall WAMPSERVER
Update later...
Prepare to install WordPress
Update later...
Holla
Update later...
Hope the above guide will solve your issue. I'm not a professional IT guy but it does work for me at least :).
Feel free to edit or suggest if you think I have mistake in the guide.

Will a new WordPress install on my subdomain overwrite everything on the domain?

I have a website (http://neabors.com) hosted at BlueHost, and I have created the subdomain, news.neabors.com (it's not published yet). The original site is a social network, and the news subdomain is going to be, well...news. I want a completely different theme/plugin setup, so I thought I should install WordPress separately on the subdomain.
Well, I get to the installation guide, and I'm supposed to check this box:
I'm not going any further because I don't want to break my site. I've put too much work and money into this thing.
I understand how to edit my wp-config.php file by adding
define( 'WP_ALLOW_MULTISITE', true );
and I'm aware that I may need to edit my .htaccess file.
My main question is what should I do, install Multisite on my single WordPress installation, or am I misinterpreting what that warning is saying and it's ok to make a fresh install on the subdomain?
Thanks for your help.
Create a subdomain from cPanel (Which I think you've already done). While creating a subdomain, you'll be able to choose a directory (That also you might've already done).
Now you can go ahead and install WordPress on your subdomain, you don't need to worry! While installing WordPress, you can choose the directory, and obviously you'll choose a new directory.

Is the Wordpress /wp-admin folder generic?

Can you replace the /wp-admin directory of a Wordpress installation with another one without issues?
This question is very open, but my current context is that I'm transferring a Wordpress site from one server to another. I've just come to download the site via FTP, and the /wp-admin folder has disappeared. (I probably did something wrong, but I did not knowingly delete the folder). I have a development version of the site, and am wondering if it will cause problems to just use the /wp-admin from that.
Has anyone come up against a similar thing before, and does anybody know if this folder is generic?
You need to replace the folder with one of the same version. See http://codex.wordpress.org/WordPress_Versions
There are, of course, updates and bug fixes along the way in many, but not all, versions, and a copy of wp-admin of a version not the same as the rest of the install will break things.
Check the file version.php in wp-includes to find the version of your WordPress install. ( version.php is not in wp-admin). And file modification dates are not a reliable way to check versions.)
See https://wordpress.org/download/release-archive/ for all versions.
As long as no modifications to the core of WordPress have been done, you should be fine, but make sure that the wp-admin folder you're uploading belongs to the same WordPress version your website is running. You should face no issues at all.
Firstly, if you did have a Dreamweaver then try to search a word 'wp-admin' in Entire Website Folder in the search's Dreamweaver option.
Secondly, change all text that contain a word 'wp-admin'.
Third, change the folder's name.
Then test your wordpress, if there are errors so try to solve it or post a comment.

How to restore a Wordpress into which another web app was installed

So I created a database in cPanel to install SMF into for my WordPress website, but I accidentally made my home URL the place to host the forums. It overwrote my entire website. I can't access any of the pages anymore without it redirecting me to my SMF forum. I deleted the database that the forum was connected to and it's just giving me an error now if I try to go to my website. Is there anyone that can point me in the right direction here?
I guess you'd have to try and restore the files on the top level, most importantly index.php and .htaccess.
When that is done, you'll have to hope that SMF didn't overwrite any important Wordpress directories. If it didn't, your install should work again.
index.php and any other files in the top directory you should be able to copy from a raw Wordpress install.
The only exception is the .htaccess file which contains the routes for pretty URLs (if you use those - if you don't, skip this paragraph). This file has been generated specially for your install. To re-create it, you should be able to access your wp-admin directory already, and update the permalink structure.

Categories