Forum Moderators: coopster

Message Too Old, No Replies

installing php with apache

         

kumarsena

2:22 am on Nov 23, 2003 (gmt 0)

10+ Year Member



i just installed apache and then installed php on my win2k system. but hn i start apache i get the follwoing error: cannot load php4apache.dll. its there in c:\php\sapi and this is what i added to my config

fileLoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php

i put the php.ini file in the c:\winnt folder.

any help on this issue?

thanks
kumar

Distel

2:33 am on Nov 23, 2003 (gmt 0)

10+ Year Member



I always go for the easy way out. I go to the site of easyphp where I download the latest version of that server. It contains Apache, PHP, and MySQL, and works flawlessly. Installation is no more than double-clicking the .exe and specifying the desired install directory. :)

kumarsena

2:38 am on Nov 23, 2003 (gmt 0)

10+ Year Member



thanks didn't know abt that one. downloading now.....

kumarsena

3:00 am on Nov 23, 2003 (gmt 0)

10+ Year Member



hey it works..thanks...brilliant..

one question tough..where do i put my webpages in order for them to work locally . they all contain php code..

thanks
kumar

Distel

3:08 am on Nov 23, 2003 (gmt 0)

10+ Year Member



In your install directory, you have a dir called "www". It already contains an index file, but you can chuck that out.

kumarsena

3:12 am on Nov 23, 2003 (gmt 0)

10+ Year Member



cool tnx

one more thing...:)

how do i configure php to recognise .php3 and other ext.
(i guess that would be loading the config file, rite...?)

thanks...
kumar

kumarsena

3:14 am on Nov 23, 2003 (gmt 0)

10+ Year Member



and what would the address be...? htt://localhost/../.. or somehting like that?

tnx
kuamr

Distel

3:24 am on Nov 23, 2003 (gmt 0)

10+ Year Member



The address of your local site will be [localhost...]

Regarding those extentions, I'm not sure where to do that exactly (I'm at work and don't have an EasyPHP running here), but I'm pretty sure it's a setting in the php.ini file you'll find in your Windows directory. Lemme see if I can dig something up.

Distel

3:33 am on Nov 23, 2003 (gmt 0)

10+ Year Member



OK, this should work I think (found it on another forum):

If you are running Apache edit the following line in httpd.conf : AddType application/x-httpd-php .php .phtml .php3

After adding .php3 here you will be able to run your old scripts.

kumarsena

3:54 am on Nov 23, 2003 (gmt 0)

10+ Year Member



cool,

tnx,

kumar

kumarsena

4:09 am on Nov 23, 2003 (gmt 0)

10+ Year Member



actually it was already done.....great this easyphp...

kumarsena

4:15 am on Nov 23, 2003 (gmt 0)

10+ Year Member



i just moved my entire web site over to the www folder, but no i get a requewst for username and password. this is probably due to the right settings, but how do i change it...any ideas?

tnx
kumar

kumarsena

4:18 am on Nov 23, 2003 (gmt 0)

10+ Year Member



ooops...my fault i had the .htaccess file in that folder too....

kumarsena

4:21 am on Nov 23, 2003 (gmt 0)

10+ Year Member



thank you distel.

thanks to you i now have a website running on my localhost, a long time wish...:)

kumar

Distel

4:29 am on Nov 23, 2003 (gmt 0)

10+ Year Member



No probs. I remember my own joy when I stumbled upon EasyPHP. Glad I could help. :)

kumarsena

2:46 pm on Nov 23, 2003 (gmt 0)

10+ Year Member



hey,

just wondering how to access the mysql database in easyphp. is there any gui interface for it..?
and..anyone know of a good tutorial site for mysql?

tnx
kumar

Distel

3:06 pm on Nov 23, 2003 (gmt 0)

10+ Year Member



Unfortunately, there comes no GUI interface with EasyPHP. You can access the database via PHP code or via the command line (accessible through the mysql.exe file you'll find in mysql\bin).

However, you might be interested in this topic:

[webmasterworld.com...]

For tutorials, it's always worthwile to check the official mysql website. Also, enter "mysql tutorial" in Google, and the first entry will get you to an excellent Webmonkey basic guide on how to combine mysql and php.

kumarsena

3:25 pm on Nov 23, 2003 (gmt 0)

10+ Year Member



thanks distel