install:mac_alt
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
install:mac_alt [2008-08-09 16:59] – fixed link references chi | install:mac_alt [2012-02-09 14:24] (current) – 195.205.15.3 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Mac Install Page ====== | ||
+ | ^ < | ||
+ | This is my attempt to install DokuWiki on my PowerBook running Mac OS X 10.3 (aka Panther). This is after installing DokuWiki on my PC at work (running Windows 2000 Service Pack 4) without too much hassle. | ||
+ | |||
+ | N.B. eventually this page will describe in steps how to get DokuWiki running on Mac OS (first Panther, then Tiger). | ||
+ | |||
+ | > Thanks for your efforts to create Install Guide Mac users! Your Session Problems are most likely caused by a problem with your PHP setup. PHP (running as user '' | ||
+ | |||
+ | >> In short, ''/ | ||
+ | |||
+ | ===== OS, versions etc ===== | ||
+ | Mac OS X, 10.3.9 according to 'About this Mac'. | ||
+ | Xcode tools installed. | ||
+ | ===Fink=== | ||
+ | Package manager version: 0.23.6 | ||
+ | Distribution version: 0.7.1.rsync | ||
+ | No fink package available. | ||
+ | ===DarwinPorts=== | ||
+ | how do I find out version I have? | ||
+ | There is an '' | ||
+ | |||
+ | ===== Installation ===== | ||
+ | The only option left was to try to do a manual install. Before commencing, I did a search and Google found me an interesting O' | ||
+ | < | ||
+ | mv dokuwiki-2005-02-18.tgz ~/Sites/ | ||
+ | cd ~/Sites/ | ||
+ | tar zxf dokuwiki-2005-02-18.tgz | ||
+ | mv dokuwiki-2005-02-18 dokuwiki | ||
+ | touch dokuwiki/ | ||
+ | </ | ||
+ | The next thing to do according to the install guide, was to set the appropriate permissions. | ||
+ | < | ||
+ | ps auwx | grep httpd | ||
+ | </ | ||
+ | After setting the permissions (chown), had to start (or restart Apache). | ||
+ | < | ||
+ | cd dokuwiki | ||
+ | sudo chown www changes.log data media attic conf/ | ||
+ | sudo apachectl restart | ||
+ | </ | ||
+ | |||
+ | :!: missed important step (described in O' | ||
+ | :!: | ||
+ | |||
+ | Then I tested the wiki by going to the start page - http:// | ||
+ | |||
+ | ===== Problems ===== | ||
+ | The wiki is up and running (I can add pages), but I'm getting session_start() errors and cannot figure out what to do to solve them. | ||
+ | |||
+ | ==== Localhost ==== | ||
+ | n.b. '' | ||
+ | <code bash> | ||
+ | Warning: session_start(): | ||
+ | Warning: session_start(): | ||
+ | Warning: session_start(): | ||
+ | Warning: Cannot modify header information - headers already sent by (output started at / | ||
+ | The current page is writable by you | ||
+ | Warning: Unknown(): open(/ | ||
+ | </ | ||
+ | |||
+ | The test page http:// | ||
+ | <code html> | ||
+ | DokuWiki version: Release 2005-02-18a | ||
+ | PHP version 4.3.10 | ||
+ | Changelog is writable | ||
+ | Datadir is writable | ||
+ | Attic is writable | ||
+ | Mediadir is writable | ||
+ | conf/ | ||
+ | mb_string extension is available and will be used | ||
+ | Your current permission for this page is 8 | ||
+ | The current page is writable by the webserver | ||
+ | The current page is writable by you | ||
+ | </ | ||
+ | |||
+ | ==== (Windows) machine on network ==== | ||
+ | A quick test from a (Windows) machine on my network, the results: | ||
+ | <code bash> | ||
+ | Warning: session_start(): | ||
+ | Warning: session_start(): | ||
+ | Warning: session_start(): | ||
+ | Warning: Cannot modify header information - headers already sent by (output started at / | ||
+ | Warning: Unknown(): open(/ | ||
+ | Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ===== (Temporary) Solution ===== | ||
+ | Although I hadn't modified dokuwiki.php, | ||
+ | |||
+ | No change. | ||
+ | |||
+ | The I opened ''/ | ||
+ | |||
+ | - tried deleting blank line after line 22 (and 123); did not work. | ||
+ | - commented out session_name() and session_start() (using the standard /****/). It would appear that this change effected the removal of session handling in DokuWiki -- thus " | ||
+ | |||
+ | // | ||
+ | // | ||
+ | This worked! | ||
+ | |||
+ | {{ http:// | ||
+ | |||
+ | And as the dialog box warns, the formatted text (H1, H2, link etc) is appended to the end of the document. | ||
+ | |||
+ | ===== Latest DokuWiki ===== | ||
+ | |||
+ | ==== Problem ==== | ||
+ | All of the rest of this document concerns version 2005-02-18; however, a couple of days ago Andi released 2005-05-07. | ||
+ | |||
+ | DokuWiki 2005-02-18 | ||
+ | {{ http:// | ||
+ | |||
+ | DokuWiki 2005-05-07 | ||
+ | {{ http:// | ||
+ | |||
+ | Then problem is now in another file (init.php), but still seems to be '' | ||
+ | <code html> | ||
+ | Warning: session_start(): | ||
+ | Warning: session_start(): | ||
+ | Warning: session_start(): | ||
+ | Warning: Cannot modify header information - headers already sent by (output started at / | ||
+ | | ||
+ | Warning: Unknown(): open(/ | ||
+ | Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 | ||
+ | </ | ||
+ | |||
+ | ==== Solution ==== | ||
+ | To get proper formatting, you have to set the '' | ||
+ | $conf[' | ||
+ | Then everything works beautifully. | ||
+ | |||
+ | To remove the '' | ||
+ | |||
+ | > It appears that this problem, if it occurs, is a corruption of the MacOS X environment - that is, it should not happen. | ||
+ | |||
+ | >> looking over at the macosxhints forum, this does happen from time to time for some unknown reason. | ||
+ | |||
+ | > I never had any problems with my installation, | ||
+ | |||
+ | >> installed fink as well, but not sure if I upgraded php through it at some stage - really don't remember. | ||
+ | |||
+ | > However, I'm soon to get a Mac Mini with 10.4; we'll see what happens then. My G3 iBook is currently dysfunctional (sigh). | ||
+ | |||
+ | Note that the DokuWiki does not seem to work in Internet Explorer for Macintosh 5.x (does anyone still use that?); the formatting toolbar does not work properly in Safari (text is appended to the end of the document instead of being inserted); Firefox has no problems whatsoever :) | ||
+ | |||
+ | > IE for Macintosh is no longer supported by Microsoft, and hasn't been for some time. I use Camino (also from the Mozilla project, like Firefox) and haven' |