Apaches
Contents |
Restarting
All
Connect to zwinger and type apache-graceful-all. If you see permission denied or a password request, say which server name appears in the error message or password request in the IRC channel and one of the roots will add you to that server.
One, to test a change
Either connect to zwinger and ssh wherever or connect to the web server you want to test on. Then type apache-graceful to restart apache on that web server only. Test your change with telnet, as with this foundation example, with what you type in italics:
telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /fundraising HTTP/1.1
Host:wikimediafoundation.org
(an empty line)
The raw HTML for the page will now be displayed in your window. You can copy and paste that into a file on your hard drive and open it with your browser to see the effect. Host is the name of the web site after the http:// part in your browser URL area. GET /fundraising is the part after the site name. The example gets http://wikimediafoundation.org/fundraising.
Logging
Text output on stderr from various external commands, as well as some apache errors, are in /apache/logs/error_log on each server. PHP errors are in /apache/logs/php-errors . Most apache error messages, such as file not found errors, are in hostname-error_log, for example /apache/logs/en.wikipedia.org-error_log .
Apache access logs are mostly disabled. Webalizer statistics are made using the squids logs instead.
Apache setup checklist
main apache farm
- install apache from /home/wikipedia/src/apache_1.3.29
- doesn't work on ariel
- install PHP from /home/wikipedia/src/php-4.3.4 (is this the right version?)
- doesn't work on ariel
- how to setup Turck MMcache?
- tex: apt-get install tetex*
- tidy: apt-get install tidy
- ploticus: scp /usr/local/bin/pl from one of the other machines to /usr/local/bin/
- imagemagick
- sudo
- database permissions
- Command to run in mysql shell (on master) to allow connections from the new apache :
- grant all on %wiki.* to wikiuser@apachename identified by 'password';
- grant all on %wiktionary.* to wikiuser@apachename identified by 'password';
- what about webshop?? and Board ??
- Command to run in mysql shell (on master) to allow connections from the new apache :
download.wikimedia.org etc
- currently on zwinger
- blah blah