Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2002
    Location
    United Kingdom
    Posts
    1,236

    how do u execute php files?

    ok i have installed the following

    apache 1.3.26
    php 4.2.2
    mysql v.xxx

    ok, with all these installed this is where i am stuck. I have read the manual for php, and looked at apache documentation.

    when i go to a .php page with apache, i just get the code, as if php wasn't installed

    what do i do to apache to make them execute?

    thanx

  2. #2
    Join Date
    Jun 2001
    Location
    Chicago, IL
    Posts
    1,953
    Without seening any httpd code, I will assume that you have not added the addhandlers to apche to tell it to execute .php files as php. Why not show some code.
    Chicago Electronic Cigarettes: Tobacco Free, Smoke Free. 3 E-Cig Models, 11 flavors, and accessories.
    http://www.chicago-ecigs.com

  3. #3
    Join Date
    Jun 2002
    Location
    United Kingdom
    Posts
    1,236
    i havent added anything to the config file as i thought that maybe when you installed php it configured apache automatically.

    what do i have to add the to config file.

    i would copy and paste it, but its a bit big

  4. #4
    Join Date
    Jun 2001
    Location
    Chicago, IL
    Posts
    1,953
    That should be listed in the install file, what to add.
    Chicago Electronic Cigarettes: Tobacco Free, Smoke Free. 3 E-Cig Models, 11 flavors, and accessories.
    http://www.chicago-ecigs.com

  5. #5
    Join Date
    Mar 2002
    Posts
    1,003
    matt, you can't be going around unix forums and wht and post the same questions over and over. People have told you that the answer is right in the INSTALL file. They even tell you what to put inside the httpd.conf file. There are millions of great tutorials about basic server installations.

  6. #6
    Join Date
    Oct 2001
    Location
    san diego
    Posts
    256
    add this to httpd.conf
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php .php

    then restart apache:
    /etc/rc.d/init.d/httpd restart

  7. #7
    Whenever installing any sort of package, you should definately read any and all files named README, INSTALL, HOWTO, or the like. The skill of knowing how to find information is the most valuable skill you can acquire for this business.

  8. #8
    Join Date
    Jul 2002
    Location
    Atlanta, Georgia
    Posts
    339
    Originally posted by jahsh
    add this to httpd.conf
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php .php

    then restart apache:
    /etc/rc.d/init.d/httpd restart

    or, simply


    AddType application/x-httpd-php .php .php3 .php4 .phtml

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •