Ga naar inhoud

Phpbundel traagheid


anoniem

Aanbevolen berichten

Haai mensen, Ik heb een probleempje met de phpbundel die je via de computertotaal site kon krijgen. Op zich een ideaal ding, echt waar. Alleen heb ik nu een systeempje gebouwd en ergens lokaal draaien en hier krijg ik heel vaak timeouts om de een of andere reden. Ik kan me haast niet voorstellen dat het aan m'n code ligt, ik ben redelijk ervaren met php en mysql, dus ik zoek eigenlijk de oorzaak ergens in die phpbundel. Iemand die soortgelijk probleem wel eens is tegengekomen en er iets op heeft gevonden?
Link naar reactie
[quote:5399c2452a]Hoe kan je het nou als cgi draaien? Dan moet je eerst perl installeren en dat zit niet in de bundel... [/quote:5399c2452a]Als je nou voortaan eerst eens opzoekt wat cgi percies is voor je onzin gaat lopen rondbazuinen... _________________ Wiep Corbier: Ik heb even gechecked wat je zei Bill en je hebt gelijk (en maak hier a.u.b. geen sig van!). [ Dit Bericht is bewerkt door: Bill Gates op 2002-02-19 13:41 ]
Link naar reactie
Uit de handleiding die elke ervaren php-er zou hebben moeten gelezen cq. weten te vinden: [quote:06422cc4d8] Installing PHP on Windows with Apache 1.3.x There are two ways to set up PHP to work with Apache 1.3.x on Windows. One is to use the CGI binary (php.exe), the other is to use the Apache module dll. In either case you need to stop the Apache server, and edit your srm.conf or httpd.conf to configure Apache to work with PHP. It is worth noting here that now the sapi module has been made more stable under windows, we recommend it's use above the CGI binary, since it is more transparent and secure. Although there can be a few variations of configuring PHP under Apache, these are simple enough to be used by the newcomer. Please consult the Apache Docs for further configuration directives. If you unziped the PHP package to c:php as described in the Manual Installation Steps section, you need to insert these lines to your Apache configuration file to set up the CGI binary: ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php .phtml Action application/x-httpd-php "/php/php.exe" Note that the second line in the list above can be found in the actual versions of httpd.conf, but it is commented out. Remember also to substitute the c:/php/ for your actual path to PHP. Warning By using the CGI setup, your server is open to several possible attacks. Please read our CGI security section to learn how to defend yourself from attacks. If you would like to use PHP as a module in Apache, be sure to move php4ts.dll to the windows/system (for Windows 9x/Me) or winnt/system32 (for Windows NT/2000/XP) directory, overwriting any older file. Then you should add the following two lines to you Apache conf file: LoadModule php4_module c:/php/sapi/php4apache.dll AddType application/x-httpd-php .php .phtml After changing the configuration file, remember to restart the server, for example, NET STOP APACHE followed by NET START APACHE, if you run Apache as a Windows Service, or use your regular shortcuts. Note: You may find after using the windows installer for Apache that you need to define the AddModule directive for mod_php4.c in the configuration file (httpd.conf). This is done by adding AddModule mod_php4.c to the AddModule list, near the beginning of the configuration file. This is especially important if the ClearModuleList directive is defined. Failure to do this may mean PHP will not be registered as an Apache module. [/quote:06422cc4d8] [ Dit Bericht is bewerkt door: Jurriaan R op 2002-02-19 15:00 ]
Link naar reactie
[quote:3fe6cca041] Op 19-02-2002 14:10, schreef t_avenger: of wordt dat handmatig alles installeren enzo dan..? [/quote:3fe6cca041] Ik ben sowieso een voorstander van zelf installeren, dan kan je alles naar je eigen wensen installeren/instellen. PS: installeer php wel als module, is sneller Je kunt ook een andere phpbundel proberen, bijv phptriad.
Link naar reactie
Even tussendoor: Wanneer lopen de scripts traag? A) altijd B) alleen als ik connect naar mysql C) weet niet D) geen van bovenstaande antwoorden is juist Het is al een tijdje terug, maar ik dacht dat er een optie was bij het opstarten van mysql waardoor connecten in sommige gevallen versneld kon worden, "--skip-name-resolve" ofsoiets. Misschien iets om uit te proberen cq. na te zoeken?
Link naar reactie

Om een reactie te plaatsen, moet je eerst inloggen

Gast
Reageer op dit topic

×   Geplakt als verrijkte tekst.   Herstel opmaak

  Er zijn maximaal 75 emoji toegestaan.

×   Je link werd automatisch ingevoegd.   Tonen als normale link

×   Je vorige inhoud werd hersteld.   Leeg de tekstverwerker

×   Je kunt afbeeldingen niet direct plakken. Upload of voeg afbeeldingen vanaf een URL in

  • Populaire leden

    Er is nog niemand die deze week reputatie heeft ontvangen.

  • Leden

    Geen leden om te tonen

×
×
  • Nieuwe aanmaken...