How to make xampp local wordpress installation public? - php

I installed XAMPP and WordPress along it. Created a database and installed the platform all along. Opened the needed ports (8080) so it's publicly accessible also before that. It works.
The problem is that the I can't reach http://IPaddress/wordpress/wp-admin from an outside computer.
I can reach http://IPaddress:8080/xampp/, but thats the only page it will allow me to open. For the rest I get timeouts, unreachable.
I'd appreciate if someone tells me how do I make the C:\xampp\htdocs\wordpress folder accessible publicly just like the /xampp one. Do I need to set some special permissions?

I recommend you next:
You should move Wordpress folder to htdocs.
Change apache port to 80, not 8080.
Open 80 port in your router to your host, example: 192.168.1.32
Change wordpress folder permissions.
Try http://IPADDRESS/
Anyway your solution is also in google.

Related

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.

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.

Local host WordPress theme are broken due to port issue

I'm using 'MAMP for windows' to install and develop wordPress in my Local Windows 10 machine. The port which my Apache is listening to is localhost:8888. I'm successfully able to install WordPress in my local machine and login to my dashboard.
As you can observe from the below 3 screenshot. All my theme images and CSS are broken. The reason I found out(and highlighted) is that the all my theme related files are not taking the port address and it is referring to localhost, instead of localhost:8888/
I have my httpd.conf listening to localhost:8888
I've my Git configured with Openshift and hence my theme and plugin folders are moved from WordPress folder to .openshift folder. My wp-config is updated to reflect the same.
I'm not sure what I'm doing wrong here. Please throw some lights on this issue.
Finally got this issue resolved and saved a lot of time.
I just have to append the port number to the http server in the wp-config.php file.
define( 'WP_CONTENT_URL', 'http://'.$_SERVER['SERVER_NAME'].':8888/folder' );
Thanks to my friend Amit for helping me out.

apache, DNS, access name based virtual host on LAN without typing the IP and server name at the "hosts" file of every computer

Hello I have installed a minimal centos 6 web server on a VM with only httpd,mysql, php, ftp,DNS, and some other needed components, everything seems to be working fine, my problem is apache's name based virtual host or DNS?,
I can access my testwebsite.com on the host machine and other computers connected to the LAN but I need to type the IP address and serverName on the "hosts" file on every computer before they can access it, how do I access my testwebsite.com through LAN without typing additionals on the "hosts" files, please help, thanks in advance
The only way I can possibly think of achieving this is by changing settings with in the local router(s).
EDIT:
You will have to look at the manual for the particular router you are working with.
Firstly try to login to the router settings page using your browser and looking for the appropriate settings.
If that doesnt work I would probably try to root the router itself and modify the /etc/hosts file

CodeIgniter fresh copy works over LAN, but gets 403 over WAN

I'm starting a new CodeIgniter project, so I grabbed a fresh copy of version 2.1, and unarchived it to my local Apache root. I set up config.php and tested the site from localhost and another machine via the computer's LAN IP, and it worked as expected.
I also have my router forward WAN port 443 to port 80 on my server machine, so that I can access my Apache server from school (via wan_ip:443). This usually works fine, but when I try access my new CodeIgniter copy, I get a 403 Forbidden page.
I can still access all other sub-folders on my Apache server via WAN, including other, older, CodeIgniter projects.
There is no .htaccess file in the root of the fresh copy. I tried chmod-ing 755 and 777 recursively, but with no change.
Anybody have any idea what could be causing this? I've done quite a few CodeIgniter projects, and I've never had this issue.
I would have a look at the apache config maybe there is something related to the ip.
Also check your codeigniter config. Maybe it is doing some routing.
Try to replace your project with a simple index.html if that works apache is fine.
Check if your project itself does some redirect or something like this...
Turns out it was an Apache issue. I created an .htaccess file and added "Allow from all" to it, and now it works. I'm not sure why I needed to do that since I could access all my other Apache directories over WAN just fine, but it worked.

Categories