1

Topic: PHP Help

i install and configure everything, but still when i go to a .php extension site, it just all appears as text, pls help :9 (I have Win XP Home Edition)

/\_________/\
\/ '|  ()  |'  \/
    ---|---    <I'm stronger than you
       / \
     _|  |_

Re: PHP Help

Did you read and follow the installation documentation for PHP?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3

Re: PHP Help

yes! i did EVERYTHING!

/\_________/\
\/ '|  ()  |'  \/
    ---|---    <I'm stronger than you
       / \
     _|  |_

4 (edited by rambi 2004-03-07 01:49)

Re: PHP Help

Maybe its my firewall? :S

EDIT: Nope

/\_________/\
\/ '|  ()  |'  \/
    ---|---    <I'm stronger than you
       / \
     _|  |_

5

Re: PHP Help

What server have you installed?

6

Re: PHP Help

Make sure you have Apache running, and the PHP extensions installed. If this were linux, I would say "Make sure you check your services". But because this is win, I have to say, check MScofig.

Do, or do not.

Re: PHP Help

Which version of Apache and PHP are you running? What install documentation did you follow? Did you restart Apache after you made changes to httpd.conf?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

8

Re: PHP Help

Apache - 1.3.29

PHP - 4.3.4

The one on PHP.net

Yes

Listen, otherwise, i think its working, cuz when i start apache it sez
" Apache/1.3.29 <Win32> PHP/4.2.4 Running..... "

Maybe its sumthing wrong about th address im typing, cuz i type the address, and it ends with a .php, though it just appears like a bunch of text.

/\_________/\
\/ '|  ()  |'  \/
    ---|---    <I'm stronger than you
       / \
     _|  |_

Re: PHP Help

Are you sure the httpd.conf file is right?

10 (edited by rambi 2004-03-07 16:35)

Re: PHP Help

Yup, shud i send it to u via email? tongue

EDIT: If u want me to, tell me ure email address cuz u cant send files thru this email thingy at PunBB

/\_________/\
\/ '|  ()  |'  \/
    ---|---    <I'm stronger than you
       / \
     _|  |_

11 (edited by rambi 2004-03-07 17:14)

Re: PHP Help

Please help! I really need a forum!

EDIT: When I configure Apache, do i do a module or CGI COnfig? (I tried both tongue)

/\_________/\
\/ '|  ()  |'  \/
    ---|---    <I'm stronger than you
       / \
     _|  |_

12 (edited by rambi 2004-03-07 17:35)

Re: PHP Help

IM About to rip all my hir out!! I Do EVERYTHING but it still appears as a bunch of text when i go to the .php extension site!

Edit: Can anyone post a windows httpd.conf file wich uses c:/php/ as the directory? smile

/\_________/\
\/ '|  ()  |'  \/
    ---|---    <I'm stronger than you
       / \
     _|  |_

Re: PHP Help

Did you add a line like this in the mod_mime section?

AddType application/x-httpd-php .php

"Programming is like sex: one mistake and you have to support it for the rest of your life."

14

Re: PHP Help

yup

/\_________/\
\/ '|  ()  |'  \/
    ---|---    <I'm stronger than you
       / \
     _|  |_

15

Re: PHP Help

<IfModule mod_mime.c>

    #
    # AddType allows you to tweak mime.types without actually editing it, or to
    # make certain files to be certain types.
    #
    AddType application/x-tar .tgz

    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    # Despite the name similarity, the following Add* directives have nothing
    # to do with the FancyIndexing customization directives above.
    #
    AddEncoding x-compress .Z
    AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    #AddType application/x-compress .Z
    #AddType application/x-gzip .gz .tgz
     AddType application/x-httpd-php .php

/\_________/\
\/ '|  ()  |'  \/
    ---|---    <I'm stronger than you
       / \
     _|  |_

16 (edited by Frank H 2004-03-07 18:02)

Re: PHP Help

a silly question, but hav eyou restarted apache since you changed it in the conf file?
(just to rule out a simple mistake) smile

Edit:saw that you had written that you had above... I think ... but it's always to be sure wink

17 (edited by rambi 2004-03-07 18:01)

Re: PHP Help

Of course!

EDIT: I do all this in IEXPLORER rite?

/\_________/\
\/ '|  ()  |'  \/
    ---|---    <I'm stronger than you
       / \
     _|  |_

18

Re: PHP Help

now i totally ruined it, lol, when i load apache it sez,

Unkown(): Unable to load dynamic library 'c:/windows\php_*.dll' - The specified module could not be found

Ok, i see what i did, but WHERE is that mistake? I searched for it in php.ini and httpd.conf, its not in anyof those, help pls

/\_________/\
\/ '|  ()  |'  \/
    ---|---    <I'm stronger than you
       / \
     _|  |_

19

Re: PHP Help

an sumone pls send me their whole php and apache folder? tongue:P:P PLS

/\_________/\
\/ '|  ()  |'  \/
    ---|---    <I'm stronger than you
       / \
     _|  |_

20

Re: PHP Help

is it cuz its freewebs.com and its free? :S  dunno, im totally messed up, just sumone pls send it to me sumhow, PLEAE sad:(:( I really erally really need a forum

/\_________/\
\/ '|  ()  |'  \/
    ---|---    <I'm stronger than you
       / \
     _|  |_

Re: PHP Help

No wonder you aren't getting anywhere. Slow down! You just posted 5 messages in a row. You really have to stop doing that.

Explain in steps what you did when installing PHP. Don't link to some install guide, write it down for us.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

22 (edited by rambi 2004-03-07 20:18)

Re: PHP Help

Ok, *takes deep breaths*

1.I Install PHP on PHP.net using the Zip Package to C:\php

2.I Install Apache 2.0 to C:\Program Files\Apache Group\Apache2

3.Follow the instruction to configure Apache2.0 to work with PHP

4.Restart the Apache Server

5.Takes deep breaths and meditates

6.Goes to the site with the install.php

7.Almost rips hair out 'cause it's still a bunch of text

smile

EDIT: Would Xitami work, oh ya, I tried that too smile It doesn't work smile

/\_________/\
\/ '|  ()  |'  \/
    ---|---    <I'm stronger than you
       / \
     _|  |_

Re: PHP Help

I thought you were running Apache 1.3. Oh well, exactly what changes did you make to httpd.conf? It would be great if you could post both the unaltered and the alterered version of your httpd.conf.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

24 (edited by rambi 2004-03-07 20:38)

Re: PHP Help

The whole thing?This is all i added (copied and pasted from php.net)

; For PHP 4 do something like this:
LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php

I puit the loadmodule at the end of the loadmodule list and the addtype at the end of the addtype list, thats all........

/\_________/\
\/ '|  ()  |'  \/
    ---|---    <I'm stronger than you
       / \
     _|  |_

Re: PHP Help

Ok, that appears to be OK. Hmm, try adding the AddType at the end of the file instead.

"Programming is like sex: one mistake and you have to support it for the rest of your life."