Anonymous123 Posted January 3, 2016 Share Posted January 3, 2016 I changed the port number on my Word Press site because my isp blocks port 80 so I changed the port in apache conf to 8080 and now some of my images don't load. I think the port change interfered with mysql in some way. I haven changed mysql just apache. The site loads when I type http://xxx.xxx.xxx:8080/and the admin site loads too. What should I do? Quote Link to comment Share on other sites More sharing options...
sud0nick Posted January 3, 2016 Share Posted January 3, 2016 (edited) I don't think it's a MySQL issue since that operates on port 3306. My guess is you may need to change something else in the configuration or change your references to images in your HTML/CSS/JavaScript etc. Whereas the page loads over 8080 the images may be trying to load over port 80 which is being blocked by your ISP. If you use relative URLs for all of your media this problem should go away. Unless if you are already doing that then look deeper in the configs. Edited January 3, 2016 by sud0nick Quote Link to comment Share on other sites More sharing options...
digip Posted January 6, 2016 Share Posted January 6, 2016 By default, http runs on port 80. If you changed the web servers default port, you will need to always type the port into the URL from now on. As for images not loading, wordpress by default will drop the site.com:80 in default to HTTP, and also not use :443 for https since these are default ports that use http and https. For 8080, you will have to put a rule in htaccess to rewrite all images and files, or possibly change the wordpress admin panel to reflect the port, but I'd start with htaccess for port changes Try something like: RewriteCond %{SERVER_PORT} ^80$ RewriteRule ^ http://%{HTTP_HOST}:8080%{REQUEST_URI} [P] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.