anoniem Geplaatst: 19 februari 2002 Delen Geplaatst: 19 februari 2002 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? Quote Link naar reactie
anoniem Geplaatst: 19 februari 2002 Auteur Delen Geplaatst: 19 februari 2002 Het kan er best aan liggen dat het niet de nieuwste versie is van apache, php, en mysql. Quote Link naar reactie
anoniem Geplaatst: 19 februari 2002 Auteur Delen Geplaatst: 19 februari 2002 hmm, dat klinkt ook vreemd. bedoel, oudere versies van php en mysql hebben toch ook gewoon gewerkt? Dit zit er in: PHP 4.04pl1 Apache 1.3.19 phpMyAdmin2.01 MySQL 3.23 + win GUI Lijkt me in principe toch niet eens zo belachelijk oud? Quote Link naar reactie
anoniem Geplaatst: 19 februari 2002 Auteur Delen Geplaatst: 19 februari 2002 Ik heb dezelfde phpbundel thuis draaien (op win ME en XP) en geen problemen. Draai je het als cgi of isapi? Probeer dat anders eens te wisselen Quote Link naar reactie
anoniem Geplaatst: 19 februari 2002 Auteur Delen Geplaatst: 19 februari 2002 [quote:b169bb338d] Op 19-02-2002 12:20, schreef Jurriaan R: Draai je het als cgi of isapi? [/quote:b169bb338d] Hoe kan je het nou als cgi draaien? Dan moet je eerst perl installeren en dat zit niet in de bundel... :smile: Quote Link naar reactie
anoniem Geplaatst: 19 februari 2002 Auteur Delen Geplaatst: 19 februari 2002 [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 ] Quote Link naar reactie
anoniem Geplaatst: 19 februari 2002 Auteur Delen Geplaatst: 19 februari 2002 maar wat is het onderscheid tussen die 2 dan? kep het gewoon gedaan op de standaard manier volgens die bundel, nix raars aan gedaan verder volgens mij.. Quote Link naar reactie
anoniem Geplaatst: 19 februari 2002 Auteur Delen Geplaatst: 19 februari 2002 Simpel gezegd: bij de cgi manier wordt de php parser bij ieder request geladen, en anders wordt de parser al bij het starten van Apache geladen (en hoeft dus niet iedere keer opgestart te worden) en dat werkt stukken sneller. Volgens mij gebeurd het bij de phpbundel op de 2e manier, dus daar zal het niet aan liggen dan. Quote Link naar reactie
anoniem Geplaatst: 19 februari 2002 Auteur Delen Geplaatst: 19 februari 2002 [quote:348ba4e0ab] Op 19-02-2002 13:44, schreef Bill Gates: ...Volgens mij gebeurd het bij de phpbundel op de 2e manier, dus daar zal het niet aan liggen dan. [/quote:348ba4e0ab] Dan hadden er wel meerdere last van gehad. Quote Link naar reactie
anoniem Geplaatst: 19 februari 2002 Auteur Delen Geplaatst: 19 februari 2002 dus je bedoelt dat het daar stiekem toch goed aan kan liggen? zo ja: is er een simpele manier om dat in die bundel te veranderen of wordt dat handmatig alles installeren enzo dan..? of zijn er nog andere opties waar het aan kan liggen? Quote Link naar reactie
anoniem Geplaatst: 19 februari 2002 Auteur Delen Geplaatst: 19 februari 2002 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 ] Quote Link naar reactie
anoniem Geplaatst: 19 februari 2002 Auteur Delen Geplaatst: 19 februari 2002 [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. Quote Link naar reactie
anoniem Geplaatst: 19 februari 2002 Auteur Delen Geplaatst: 19 februari 2002 [quote:1aab697e2f] Op 19-02-2002 14:59, schreef Jurriaan R: Uit de handleiding die elke ervaren php-er zou hebben moeten gelezen cq. weten te vinden:[/quote:1aab697e2f]De ervaren PHP'er weet dat PHP onder Windows stukken trager is en neemt dus Linux/Unix en installeerd het daar :wink: Quote Link naar reactie
anoniem Geplaatst: 19 februari 2002 Auteur Delen Geplaatst: 19 februari 2002 dat is ook zo :smile: Quote Link naar reactie
anoniem Geplaatst: 20 februari 2002 Auteur Delen Geplaatst: 20 februari 2002 ...dat neemt niet weg dat het onder Windows niet mogelijk is :smile: (en serieus, ga jij als je normaal alleen windows gebruikt alleen om te testen een linux server opzetten? :smile:) Ik heb die bundels niet geprobeerd, maar heb alles zelf geinstalleerd. Heb een P133 staan met Win2K en Apache/MySQL/PHP, draait goed... Quote Link naar reactie
anoniem Geplaatst: 20 februari 2002 Auteur Delen Geplaatst: 20 februari 2002 [quote:0cf03ee97c]en serieus, ga jij als je normaal alleen windows gebruikt alleen om te testen een linux server opzetten?[/quote:0cf03ee97c]Ja. Quote Link naar reactie
anoniem Geplaatst: 20 februari 2002 Auteur Delen Geplaatst: 20 februari 2002 *zucht* feit blijft dat het onder Windows perfect draait. Natuurlijk hoor je mij niet zeggen dat je in een productieomgeving Windows moet gaan draaien, maar als testserver is het ruim voldoende... Quote Link naar reactie
anoniem Geplaatst: 20 februari 2002 Auteur Delen Geplaatst: 20 februari 2002 Ik zeg toch niet dat je geen Windows kan gebruiken als testomgeving? Ik zeg alleen dat [b:202f58398f]ik[/b:202f58398f] het op een Linux server test. Quote Link naar reactie
anoniem Geplaatst: 20 februari 2002 Auteur Delen Geplaatst: 20 februari 2002 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? Quote Link naar reactie
anoniem Geplaatst: 20 februari 2002 Auteur Delen Geplaatst: 20 februari 2002 [quote:9ac5ad4171] Even tussendoor: [/quote:9ac5ad4171] Ja.. ga jij de vraag even lekker proberen op te lossen.. tsss Quote Link naar reactie
Aanbevolen berichten
Om een reactie te plaatsen, moet je eerst inloggen