Mamp and WordPress url change - php

I have a WordPress installation on my localhost: http://localhost:8888
I've uploaded the wp files on my FTP, and I've imported the DB. I can't use a new installation because I've edited some core files.
I also edited the table wp_options on my site, and edited the fields, siteurl and home so those two fields contained the site URL, changing them from "localhost:8888" to my new URL.
The problem now is when I go to my URL and try to load the website it will redirect me to http://THE_NEW_WEBSITE:8888.
I need that port removed. How can I do that?

you don't need that port removed, you just haven't changed the base url of the wordpress install everywhere you needed to. check your .htaccess file in the directory where you installed wordpress. see if there is anything in there with the old url left over, ie. the url with port 8888. if it's wrong, replace it with the new one.
otherwise, try grep-ing through the directory for :8888 and see if that string exists anywhere its not supposed to.
use wingrep if you're on windows: http://www.wingrep.com/
Here's a tutorial on grep if you're not familiar: http://www.unixref.com/guides/grepGuide.html

I had same issue. All I had to do was to use another browser. The problem was cache.

Solved before explorting the database change the url from the wordpress admin page and after that export the DB

I was having the same problem. I was running MAMP with ports 8888 and 8889 and installed Wordpress. When it asked for my port put in 8888.
What happened was it hardcoded the URL location to be localhost:8888/wordpress, so when I wanted to change the port to 80, it would redirect me there from localhost/wordpress
What I did was run MAMP with the original ports, 8888 and 8889, which allowed me to access the dashboard, from there I went to the "Settings" tab and change the "WordPress Address" and the "Site Address".
When I clicked "Save Changes" it brought up an error page, presumably because now it was being forwarded from localhost:8888/wordpress to localhost/wordpress, but when I switched the port back to 80 on MAMP and went to localhost/wordpress I was able to access everything again.

I had the same issue when i was trying to run a WordPress site using XAMPP which was originally created and run by a mac user using MAMP.
I fixed the issue by removing the :8888 part from siteurl and home properties in the wp_options table in the database and clearing the browsing data (Cookies and other site data / Cached images and files) of the browser.

Related

localhost redirects me to another url

I am working on a website with wordpress locally. I have a project that when I run it in firefox or chrome it redirects me to another site that I also have on localhost.
Example: I want to open
localhost/new-project
but it automatically redirects me to
localhost/old-project
I already tried the following:
modify siteurl and home from wp_options in phpMyAdmin
modify the urls from the wordpress panel
check the SITE_URL in wp-config
All of the above is correct. I don't know what else to do to make it work.
Just close the active port in which the old project is running than try.

WordPress on localhost can not be reached

I am using wamp to host a local version of my WordPress site. It was working gine until I restarted my computer and now I get this error.
This site can’t be reached
The connection was reset.
I tried restarting the services, and creating a new copy of this site under I different folder and the error still persists. My other non WordPress sites work fine.
Not sure what is going on so any suggestions would be great.
If you've moved your site to a different folder then the root has probably changed. Go to Preferences > Web Server and click on the folder next to Document Root, and navigate to the root directory that has your site then click on Select.
Also, make sure Apache and MySQL servers are running. Hope this helps.
You might have changed your port number from default port number.
Open with the port number that apache server is listening.
In your browser give "localhost:portNumber/WordPress"
Example: localhost:80/wordpress or
localhost:8080/wordpress or
localhost:8081/wordpress.
You Can check your port number from apache part config file.
Watch this video: https://www.youtube.com/watch?v=blmOFr8uZQI
I think its plugin issue from the codebase. Just rename the plugins name one by one in (wp-content/plugin/) folder and check.

my project is not opening after changing ports of apache server successfully. i am able to access admin panel using new port num

my project is not opening after changing ports of Apache server successfully.
I am able to access admin panel using new port num localhost:8012/phpmyadmin.
I am working in xampp server.
yesterday I have installed sql server due to class project.
I have changed ports of xampp Apache listen:8012 and ssl port to 1443.
I can open admin panel using the link localhost:8012/phpmyadmin this is giving me my panel but when I tried to open my project using link localhost:8012/health-care/ (instead of localhost/health-care/ that was working perfectly) now my index login page is opening without any css image etc. and after entering information no other page is working.
after changing server name in database configuation in codeigniter form localhost to localhost and asset url in constants to define('ASSET_URL', "http://localhost:8012/health-care/assets/"); only index page is loading but not others
please help to solve this problem. I can't lose my work. please help
Problem is solved.
just change three line first in config.php remaining two lines in constants.php
$config['base_url'] = 'http://localhost/health-care/';
to
$config['base_url'] = 'http://localhost:8012/health-care/';
and second one from:
define('ASSET_URL', "http://localhost/health-care/assets/");
to:
define('ASSET_URL', "http://localhost:8012/health-care/assets/");
last image directory from:
$images_base_path = "http://localhost/health-care/system_data/images/";
to:
$images_base_path = "http://localhost:8012/health-care/system_data/images/";
and its done. thanks RoseHosting for giving me idea

Wordpress localhost redirect

I recently moved an WordPress installation from server to my computer. On server it was running on port 80 but on my localhost I use 8080. When I try to access http://localhost:8080/wordpress it redirects me to http://localhost/wordpress.
I found a setting named siteurl in the options table and changed that but it did not do the trick. Anyone know where i can change this setting?
I dont use WordPress, but for what I know about WP is that you have a Config part (web) that you can change that type of settings. So, maybe is the database that you have to search where is that port and change it to 8080, because it is forcing it to use 80.
Here you go with a little search in google: Solution
if you are going to install Wordpress on your local computer then you need to change website-name to your localhost-path before importing sql file. otherwise it will redirect you to your website
The problem was more complexed than I imagined. I went through a lot of "move wordpress site" tutorials until it worked. Guess replacing all the links in database from domain name to localhost/wordpress did the work.

Magento not working after migration server and change URL

I have moved a magento site rackspace windows cloud server to another windows server that have plesk installed.
After migration I have changed my base URL from core_config_data to plesk site preview link and deleted all files from cache folder, Now when I am trying see my site using plesk site preview link firefox giving The page isn't redirecting properly error, on Chrome giving This webpage has a redirect loop error.
I have checked my plesk preview link with other files and see link is working fine but only magento not opening.
Any one know how to fix this?
URL Rewriting depends on your .htaccess file, so there are a couple of things to check:
web/seo/use_rewrites in core_config_data should be true.
when you created your tarball, did it include . files in the root directory especially .htaccess?
If you used tar -cvf archive.tar * then it may have missed them. (Nice "feature" of *nix).
Check that your httpd.conf has AllowOverride All, otherwise your local .htaccess will be ignored.
Did you changed both of "web/unsecure/base_url" and "web/secure/base_url"? if you changed only one - it can be not working.

Categories