From: Joby W. <joby@u.washington.edu> - 2004-01-12 18:01:25
|
php.ini is a server-wide config file that affects how php behaves for every php program. It's location is highly dependant on what platform/distribution you are running (on Gentoo it is under /etc/php/). If this is your box, to find it you could run: find / | grep php.ini If you do not have access to the php.ini file you can override most options with the ini_set() function (though I am not sure if all three can be overridden): http://us2.php.net/manual/en/function.ini-set.php I have: max_execution_time = 300 max_input_time = 60 memory_limit = 16M The 300s max_execution_time is a bit high, but I have some other administrative webapplications that take a long time. jbw Doyce Testerman wrote: > This looks like just the thing I need... > > Except, I don't see a php.ini in my wiki directory, so I'm assuming this > is a server-side setting. I'm on a hosted server and I suppose I need > to ask them to change this? > > (Which they might do, cuz they're cool like that, but I feel I should > clarify first before asking.) > > What would you suggest setting these three resource limits to? > > > Joby Walker wrote: > >> Sorry missed your earlier reply... >> >> You could try increasing your resource limits in php.ini: >> >> max_execution_time = ; Maximum execution time of each script, in seconds >> max_input_time = ; Maximum amount of time each script may spend >> parsing request data >> memory_limit = ; Maximum amount of memory a script may consume (8MB) >> >> I don't use flatfile db's so I'm not too familiar with issues related >> to them... Which db/version are you using? >> >> jbw >> >> Doyce Testerman wrote: >> >>> Okay, here's another hint: I almost always get these assertion >>> errors when I try to save, view Diffs, or Page history on larger >>> pages -- smaller pages almost always work -- is there some time limit >>> I'm running into? >>> >>> Doyce Testerman wrote: >>> >>>> Pertinent info: I'm on a hosted account. The server is running >>>> Linux, Apache version 1.3.29, PHP version 4.3.4, and I'm running >>>> flatfile dbm (the default config). The wiki can be viewed at >>>> http://www.average-bear.com/wiki/ >>>> >>>> ----- >>>> >>>> My problem: I'm consistently getting 'assertion failed' messages >>>> while using phpwiki. Examples follow: >>>> >>>> EXAMPLE 1 >>>> When saving a page I've been editing, I will often (not always) get >>>> an error message when I hit save: a page will display: >>>> >>>> lib/WikiDB.php:787: Fatal[0]: <br >>>> />/home/doyce/public_html/wiki/lib/WikiDB.php:787: : Assertion >>>> failed <br /> >>>> >>>> * Note 1: this doesn't always happen -- usually I get this error >>>> when I save a page to which I've added a WikiWord. The page DOES >>>> still save... if I refresh from the error message page, the 'reload' >>>> confirmation appears and the page loads correctly. >>>> >>>> * Note 2: the <br /> bits in the error message are not a result >>>> of me Viewing the source of the page... they actually display that >>>> way on the page. "View source" on this error message shows me that >>>> the page is specifically showing me the special html characters >>>> using ascii encoding. >>>> >>>> EXAMPLE 2 >>>> The 'Diff' button on the bottom of each page fails intermittently >>>> (about as often as I get the error message in Example 1, above, but >>>> not on the same pages. The error message (very similar to Example >>>> 1) reads: >>>> >>>> lib/WikiDB.php:787: Fatal[0]: <br >>>> />/home/doyce/public_html/wiki/lib/WikiDB.php:787: : Assertion >>>> failed <br /> >>>> >>>> EXAMPLE 3 >>>> On most of the pages on which Diff doesn't work, Page History also >>>> fails: >>>> >>>> lib/WikiDB.php (In template 'browse') (In template 'body') (In >>>> template 'html'):787: Fatal[0]: <br >>>> />/home/doyce/public_html/wiki/lib/WikiDB.php:787: : Assertion >>>> failed <br /> >>>> >>>> EXAMPLE 4 >>>> The RecentChanges page simple doesn't work at all. The error >>>> message reads: >>>> lib/WikiDB/backend/dumb/MostRecentIter.php (In template 'browse') >>>> (In template 'body') (In template 'html'):28: Fatal[0]: <br >>>> />/home/doyce/public_html/wiki/lib/WikiDB/backend/dumb/MostRecentIter.php:28: >>>> : Assertion failed <br /> >>>> >>>> EXAMPLE 5 >>>> RecentEdits also doesn't work at all. The error message is >>>> suspiciously similar to the RecentChanges message: >>>> >>>> lib/WikiDB/backend/dumb/MostRecentIter.php (In template 'browse') >>>> (In template 'body') (In template 'html'):28: Fatal[0]: <br >>>> />/home/doyce/public_html/wiki/lib/WikiDB/backend/dumb/MostRecentIter.php:28: >>>> : Assertion failed <br /> >>>> >>>> ----- >>>> >>>> I realize that most of these errors are probably connected to one or >>>> two screw ups in configuration on my part, and I'm perfectly willing >>>> to work through whatever I need to do to fix them -- I'm very >>>> impressed with PHPWiki as a whole and I look forward to working with >>>> it extensively in the future, so any help on these issues would be >>>> much appreciated. Thanks. >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.net email is sponsored by: IBM Linux Tutorials. >>>> Become an expert in LINUX or just sharpen your skills. Sign up for >>>> IBM's >>>> Free Linux Tutorials. Learn everything from the bash shell to sys >>>> admin. >>>> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click >>>> _______________________________________________ >>>> Phpwiki-talk mailing list >>>> Php...@li... >>>> https://lists.sourceforge.net/lists/listinfo/phpwiki-talk >>>> >>>> >>>> >>> >> >> >> > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System offering > advanced branching capabilities and atomic changes on 50+ platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > Phpwiki-talk mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk |