Reputation: 999
I am having trouble changing port on Wordpress running locally.
First of all I did run Wordpress on local port 80 (with subfolder: 192.168.0.100/dexy-today). Than I changed port to 1231 in Apache settings (without subfolder: 192.168.0.100:1231).
<VirtualHost 192.168.0.100:1231>
DocumentRoot /var/www/dexy-today
</virtualHost>
Settings in Apache are fine, because I have another project running on port 1232 and its not redirecting to port 80.
Hope someone could help fix this.
EDIT: Admin section is loading properly with 1231 port, but not frontend.
Upvotes: 0
Views: 3926
Reputation: 1691
You have change two configuration values in Database. go to wp_options table and change value of
option_id 1
option_name siteurl
and
option_id 37
option_name home
e.g. if its localhost/dexy-today
then make it localhost:1231/dexy-today
Upvotes: 3
Reputation: 449415
Do you have a Listen 1231
directive in your httpd.conf? You'll need that.
Upvotes: 0