R: [Phplib-users] Basic newbye question (php3)
Brought to you by:
nhruby,
richardarcher
From: Gaetano G. <giu...@se...> - 2003-07-31 14:06:17
|
Beside adding the DirectoryIndex directive, you should also verify that = PHP files are handled correctly by Apache. It seems like your webserver = is passing back the PHP files to the client without having them = interpreted by php. On windows you should do something like: LoadModule php4_module c:/php/sapi/php4apache2.dll AddModule mod_php4.c AddType application/x-httpd-php .php In linux it's almost the same, except for the module name. One more note: when accessing directories, always use the trailing = slash. Users usually don't do that, and it's the responsability of the = webmaster to configure Apache for working around this - there is a = directive for that, albeit I cannot rememebre it right now. Hope it helps, Gaetano P.S. This list is about phplib, not php + apache config problems... > -----Messaggio originale----- > Da: php...@li... > [mailto:php...@li...]Per conto di Angelo > Marcos Rigo > Inviato: gioved=EC 31 luglio 2003 15:50 > A: php...@li... > Oggetto: [Phplib-users] Basic newbye question (php3) >=20 >=20 >=20 > Hi=20 >=20 > I have mod_php 4.2.2 in apache 2.0 running in linux=20 > So i change the DirectoryIndex diretive in apache including=20 > index.php3=20 >=20 > but when i try to acces the page directory in my webserver=20 > this directory get listed=20 > when i clicl in any php3 file it open showing the code=20 >=20 > How can i fix it? >=20 > Thank=B4s in advance >=20 > =C2ngelo Marcos Rigo > Webmaster=20 > Col=E9gio Anchieta > Fone: (51) 3328.7455 Fax: (51) 3328.1120 > Visite nosso site: > http://www.colegioanchieta.g12.br >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet _072303_01/01 _______________________________________________ Phplib-users mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phplib-users |