Issue moving wordpress site to plesk - wordpress

I have recently been importing a localhost wordpress site into plesk. I have used ftp to move all of my wordpress files from htdocs on localhost to httpdocs in plesk.Ihave also imported my wp content to a new database on the server which I have set up the correct details for in config.php of wordpress. However, when I then try to view the website it at first showed a plesk default page and when I removed that index file from httpdocs, an apache default page that says 'You may now add content to the directory /var/www/html/ . Note that until you do so, people visiting your website will see this page and not your content. To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf'.
Sorry if i'm being dense but I thought that all web files should be moved to httpdocs if there isn't a public_html? Also, where would I find var/www/html/? as I cannot see this directory anywhere while using ftp.
Sorry again if this is a silly question but I am new to plesk!
Thanks
Matt

You need to activate php for your plesk site.

Did you have any domain in Plesk?
Http root of domain's created by plesk is placed to
/var/www/vhosts/<domain name>/httpdocs/
You can check current apache's virtual hosts by command:
apachectl -S
or
apache2ctl -S

Related

WordPress setup page is not showing

I am trying to setup Wordpress manually.
First, I created the database and user and connected them both with all privileges.
Next, I downloaded the Wordpress setup file and added the database name, username and password to the wp-config.php file and uploaded the Wordpress file to the file manager under public_html.
But when I visit my website, it's still not showing the setup wizard. I also tried manually entering the URL - www.example.com/wp-admin/install.php, but it redirects to me the same page (page image is below)
this the page i am getting instead of wordpress setup wizard
According to the screenshot, you haven't set up your Wix account to use your domain name. If you have, was this done recently? DNS propagation can take 24 - 48 hours.
If the domain name and server are connected, then you need to make sure all WP files are uploaded. You should have downloaded a zip file to your computer. Unzip the file, then FTP the entire folder inside your public_html folder.
Once that is done, then you can proceed with the installation.
The problem is, Wix has their own software and blog features. You will need to set up WP on a subdomain. You can learn how to set up a subdomain through Wix here and how to install the WP to a subdomain here.
The biggest problem, though, is Wix. You would be a lot better off getting stand alone hosting such as SiteGround, A2hosting, etc. If you are looking for cheap hosting, HostGator and Green Geeks are decent enough.

Wordpress website cannot be found after accidentally changing site URL

I changed my Wordpress website site URL prematurely and now it tells me Not found The Requested URL was not found on this server. I've been struggling with this and trying to find a fix but everything I've done has not fixed it. I've gone into the config file to update the URL, define the URL, you name it, I've done it. So I'm pretty desperate at this point and any help would be appreciated.
P.s I'm also running the server off of a Digital Ocean droplet. So I haven't been able to access the DB through MyPhpAdmin.
Thank you!
To change the WordPress site URL you need to do it manually as you can’t do it from your WordPress admin panel. There are two ways to do that:
Method 1 - Change WordPress site URL by editing wp-config.php file. This is the easiest way;
Add the following code to the end of wp-config.php file and save the file.
define('WP_SITEURL', 'http://www.example.com');
define('WP_HOME', ' http://www.example.com');
*Change www.example.com with your site domain.
Method 2 -
Please try to change the URL from PHP MY ADMIN > select your database > goto wp_options and change the URL
Using FTP/ SFTP , or your web-host’s cPanel or whatever file management application your host provides, access phpMyAdmin on your host, then find your DB, there check the wp_options Table (Note: The table prefix of wp_ may be different if you changed it when installing), and make sure site URL field and home field are correct.
I found the fix!!
When the site URL changed so did the root directory. The root directory added another folder to the path. So it looked something like this var/www/html.old/html.
Apache was still trying to access the site through var/www/html.
So I adjusted the file path and boom! Apache was able to make the connection and the website is now showing.
To get to the apache folder it was /etc/apache2/site-available/. I was then able to nano into the 000-default.conf file and adjust the file path through there.

Parallels Plesk shows Default Page

I uploaded Wordpress files from the old server to Parallels Plesk in the httpdocs directory and deleted the index.html but when I open the site it still shows the default page of the parallels plesk panel.
How can I solve that?
Best Regards
First of all make sure that domain name is resolvable to correct IP address.
Try rebuilding the Apache configuration files for the domain:
/usr/local/psa/admin/bin/httpdmng --reconfigure-domain domain.com
Check possible redirection in .htaccess file.

How to add a wordpress setup within another wordpress setup?

I've a wordpress website running on "example/"
I want to run another wordpress installation within that as "example/example2/"
Currently, after creating a folder named "example2", the home page loads fine but the links show up as 404. for example: "example/example2/category/category1" redirects to the parent setup's wordpress 404 page(which makes sense from the POV of the parent setup). How can I make the 2 setups exclusive, I cannot delete the existing root setup, I only have control on the child setup. Also, since I'm running on a network server I don't have any cpanel creds to create a subdomain under the existing setup.
after creating a folder named "example2", the home page loads fine but the links show up as 404
It's because you have created just a directory and it doesn't have any files like index.php inside (default pages). So the 404 error page is redirecting you.
All you have to do is install WordPress inside the subfolder, say example2:
cd /home/account_name/public_html
wget http://wordpress.org/latest.zip
unzip latest.zip
mv wordpress example2
Then create a database, user and allow full access to the user for the database from cPanel > MySQL databases.
Now try to load the link http://domain.com/example2. This won't lead you to a 404 error anymore; instead you can complete the WordPress installation.
If you have Softaculous with cPanel, then install WordPress by defining the path as /example2. Either way will work for you.
Please let me know if you have any issues!

Wordpress blog doesn't show up online?

I have created a self-hosted wordpress blog and on my ftp server everything is under
/public_html/wordpress/..
then you have /wp-admin and /wp-content etc..
but when I got to my website the theme doesn't show up, it only shows a white page with
www.******.co.cc
" index of
/wordpress"
I figured out the wordpress blog has installed its own directory so if I want to see my website I need to enter that directory first. So I tried to type
www.*******.co.cc/wordpress/
and it worked my website is all here.
BUT ! I don't wanna have people to type www.**.co.cc/wordpress/ since the site was originially known without adding /wordpress at the end.
If I move all my wordpress folders under the root
/public_html .. will it work ??
See http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory to move the site to root.
After the move, if all you see is "index of...", add
DirectoryIndex index.php
at the top of .htaccess
Under Settings > General
Check your site address(url) and wordpress address(url) to make sure they are set how you want them.
The site address should have the url for where you want people to view the page (without the wordpress extension. )
You most likely also have to move your index.php and .htaccess file out of the wordpress file and into the root folder.
Go here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory and
View the instructions under the heading "Using a pre-existing subdirectory install"
It is good to have FTP running while you do this in case you lock yourself out of the admin by inserting an incorrect filepath.
This is because you have installed your wordpress script in the
public_html >> wordpress
Install your wordpress in the root i.e left the directory field empty
/

Resources