turnkeylinux / tracker

TurnKey Linux Tracker
https://www.turnkeylinux.org
70 stars 16 forks source link

Hostname not correct for all URLs #17

Closed alonswartz closed 9 years ago

alonswartz commented 11 years ago

Reported on lp#1158017 by John Peterson on 2013-03-21

Description

Here is the process:

Restore from Backup

Configure Copied Server

chown -R www-data:www-data /var/www/wordpress/
# Remove TurnKey Linux Footer CSS
mv /etc/apache2/mods-enabled/substitute.conf /etc/apache2/mods-enabled/substitute.original
touch /etc/apache2/mods-enabled/substitute.conf
/etc/init.d/apache2 restart

# Get packages for...
apt-get -y install zip unzip # BackupBuddy
apt-get -y install php5-curl # Google Analyticator
/etc/init.d/apache2 restart

# Setup TurnKey Linux backup and daily backup task
chmod +x /etc/cron.daily/tklbam-backup
tklbam-backup

After this procedure is formed there is a copy of the production server. This is very handy for creating quick staging servers. However, the problem is not all of the URLs are changed from "www.hammondiles.com" to "staging.hammondiles.com". This can be seen if you look at the source code for the website. It seems like the URLs that are generated by WordPress are fine, but those for CSS and HTML are not. I looked in the hostname file, and poked around on the server, but I'm not sure why this is occurring.

JedMeister commented 9 years ago

This bug is so old and we have not had any further comment on it so I am closing this now.

If anyone disagrees please feel free to reopen although further and more up to date info would be really appreciated. Thanks