Beauchamp:WebServer: Difference between revisions

From OpenWetWare
Jump to navigationJump to search
(New page: == Wiki Notes == [http://129.106.236.41:8888/phpMyBackupPro/index.php mySQL backup website] Consult the [http://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on usi...)
 
(No difference)

Latest revision as of 15:16, 9 April 2008

Wiki Notes

mySQL backup website

Consult the User's Guide for information on using the wiki software.

Web Server

The wiki is run on Bidwell using MAMP. This server provides easy configuration of Apache, mySQL, and PHP. The program and configuration files are stored in /Applications/MAMP/. The application can be opened from Finder or from command line. Do NOT run MAMP as a super user (Apache has issues with this).

Occasionally Apache or mySQL will not start when the program is opened from Finder (the red light stays on after clicking Start Servers). In this case, run MAMP from the command line:

  /Applications/MAMP/MAMP.app/Contents/MacOS/MAMP

Apache

This is the web server. The hosted webpages are stored in ./htdocs.


Currently the server is prohibited from hosting on port 80 (probably a UT firewall issue).


mySQL and PHP

mySQL is a database server. Mediawiki's database, wikidb, stores all the text information in the wiki. There are php scripts in the ./htdocs/mediawiki/ folder that update the SQL database with each new entry.

phpMyBackupPro is another PHP program running on Bidwell. It is set to automatically store wikidb on /Volumes/data9/mediawiki_backup/. Previous databases can be restored on the local webpage [[1]].

MediaWiki

MediaWiki is installed in the htdocs folder contained in the MAMP folder. The uploads have been turned on by setting $wgEnableUploads = true.

Imagemagick has also been installed via fink to scale uploaded pictures easily. The path for imagemagick was set using $wgImageMagickConvertCommand = "/sw/bin/convert";