john errington
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: switch link between two pagesSorry if my wording was unclear; they can be authenticated as an administrator for the site, so they can make changes; – but they will most likely not be very IT literate or have any real experience with wordpress.
“it’s possible to create a custom capability so specific users can make this change yet not be able to do anything else.” sounds good.
Forum: Fixing WordPress
In reply to: WordPress not working on IntranetSure is!
Forum: Fixing WordPress
In reply to: WordPress not working on IntranetIt WORKS!!!
Two problems fixed:
1: I had a comment line above the lines
define(‘WP_HOME’,’http://www.wp1.local’);
define(‘WP_SITEURL’,’http://www.wp1.local’);
/* the comment line was incorrectly terminated * /second, because the WP site was at /var/www/html/wp1
I needed
define(‘WP_HOME’,’http://www.wp1.local/wp1′);
define(‘WP_SITEURL’,’http://www.wp1.local/wp1′);Thanks for your patience and help Ross!
Forum: Fixing WordPress
In reply to: WordPress not working on IntranetAt post 2 you said
A) Install a new WordPress site in “/var/www/wp1”my site is at /var/www/html/wp1
is that wrong? I followed all the instructions from
http://phpswiki.com/lamp_php_tutorial/Build_a_LAMP_Server_on_Ubuntu_14_04_Desk/124503/Forum: Fixing WordPress
In reply to: WordPress not working on IntranetOn the LAMP server:
I browse to http://www.wp1.local – site works fine. TExt, layout, etc. I dont have any images on the site as yet.
Hover over “log in ” and the link is http://localhost/wp1/wp-login.php
Click and I can log in.On my windows box (via LAN) I browse to 192.168.2.100 – static IP working fine! and http://www.wp1.local and (in both cases)
text shows on screen but layout is wrong (css not attached)
Hover over “log in ” and the link is http://localhost/wp1/wp-login.php
view source and all links refer to localhost eg
‘<script type=’text/javascript’ src=’http://localhost/wp1/wp-includes/js/jquery/jquery.js?ver=1.11.1′></script>’Forum: Fixing WordPress
In reply to: WordPress not working on IntranetI did that and restarted apache.
When I open wp-config.php in gedit I see the lines above. So it hasnt been overwritten.
Yet when I go to dashboard settings the original settings are still showing.Do I need to tell wordpress somehow to rebuild the links?
Forum: Fixing WordPress
In reply to: WordPress not working on Intranetwp address http://localhost/wp1
site address (same)so I should edit wp-config.php
and
define(‘WP_HOME’,’http://www.wp1.local’);
define(‘WP_SITEURL’,’http://www.wp1.local’);Forum: Fixing WordPress
In reply to: WordPress not working on IntranetHi Ross! I can load the apache (renamed) page, php page, and links work fine on a site I built in Dreamweaver.
But when I access the wordpress site from another machine
http://www.wp1.local/wp1/ the page loads – but
the links are all wrong – it doesnt even link to the css stylesheet.
Picking one at random, the “log in” link is
http://localhost/wp1/wp-login.php
and it doesnt load when I click.On the LAMP server all is fine.
Forum: Fixing WordPress
In reply to: WordPress not working on IntranetRoss, hope you are still with me. All the info on the web re setting a static IP address is cr*p. I went into network manager, edited the connection to 192.168.1.100 and it works fine.
I now have a static IP address of 192.168.2.100
I’ve edited the hosts files and I can access the server via the intranet at http://www.wp1.local
The wordpress site links are still not correct. Do I now need to rebuild the site?Forum: Fixing WordPress
In reply to: WordPress not working on IntranetHi Ross; I’ve changed the dhcp in my router as you suggested.
On DHCP my ubuntu pc reports
gateway 192.168.1.1, I’f eth0; broadcats 192.168.1.255 etc.this is my /etc/network/interfaces file
# The loopback network interface
auto lo
iface lo inet loopback# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1and networking fails with a message “waiting 60 seconds” etc.
However if I replace it with the original file the networking is fine;
AND if I tell it
$ sudo ifconfig eth0 192.168.1.100 netmask 255.255.255.0 up
I can access the server remotely at 192.168.2.100Forum: Fixing WordPress
In reply to: WordPress not working on Intranetsorry, forgot to add dhcp range is set to
192.168.1.2 – 192.168.1.254Forum: Fixing WordPress
In reply to: WordPress not working on IntranetMy router is a DSL-3780. I can access the advanced setup.
The router IP address is 192.168.1.1 with a subnet mask of 255.255.255.0
second IP address is 192.168.2.1 with same mask.
There is a DHCP table – all devices lie in the range
192.168.1.2 to 192.168.1.10
the server “compaq” is at 192.168.1.5I tried as shown above putting it at 192.168.1.100 but I got fault messages on restarting, and the link to the ethernet failed.
Forum: Fixing WordPress
In reply to: WordPress not working on IntranetThanks Ross. Webmin is at http://www.webmin.com/
On googling around I see I need to set a fixed IP address; but when I try (as here)
http://www.lampjunkie.com/2008/05/set-a-static-ip-address-in-ubuntu-from-command-line/
my networking fails altogether.My LAMP server is presently at 192.168.1.5 but I cant say if it will stay there – depends on what I connect to my network. ( 8 – 10 possible machines)
Should I fix the IP address before following your instructions above?