SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict ozmart2004's Avatar
    Join Date
    Feb 2004
    Location
    Albury, NSW, Australia
    Posts
    215
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Zend PHP/Apache question

    Sry if this is a dumb question, but.... I have Zend Studio client & server installed, as well as PHP5 and Apache 1.3 on my WinXP machine.

    Dumb question #1

    I downloaded PHP5.03 and unzipped it into C:/PHP and configured it manually as per the install instructions. However when I look at the Server Config gui that shows mw my phpinfo() it say that PHP v4.3 is installed. What gives? Is this just an arror by that app or could the installation somehow have reverted to V4??


    Dumb question #2

    In IIS you put your asp files inside a certain folder and then make it part of the server through the Windows interface. What do you do with Apache? How do I make my website folder or files be 'on' the server so that they will run properly?


    Hope I've made it clear. appreciate any advice.
    Thks
    Martin

  2. #2
    SitePoint Wizard cranial-bore's Avatar
    Join Date
    Jan 2002
    Location
    Australia
    Posts
    2,634
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Q1
    Not sure if you have tried this, but once you have Q2 resolved and can execute PHP files create one with the following code and view it in your browser.
    PHP Code:
     <?php
     phpinfo
    ();
     
    ?>
    You can then see if it contradicts what your GUI said.

    Q2

    Once you have installed apache put the .php files into the apache > htdocs directory.
    Then open your browser and head to http://localhost/myfile.php and you should see the PHP rendered page.

    Before this will work though you need to tell apache to have PHP handle .php files.
    In your httpd.conf file (Apache > conf) add something like this to the bottom (changing the path to suit your setup):
    Code:
       LoadModule php5_module "c:/server/php5/php5apache.dll"
       AddType application/x-httpd-php .php
       AddType application/x-httpd-php-source .phps
       SetEnv PHPRC C:/WINDOWS
    For more comprehensive setup instructions though Kevin Yanks article here on sitepoint about Building your own DB driven website with PHP and MySQL is well worth the read.

  3. #3
    SitePoint Addict ozmart2004's Avatar
    Join Date
    Feb 2004
    Location
    Albury, NSW, Australia
    Posts
    215
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey thks.

    I figured out that the Zend app installed the cgi of PHP 4, without asking me one way or the other. The whole point was to install it so that i could use PHP5.

    I discovered the htdocs directory. I suppose I just bang my files in there but I need to know a little bit more about how to set up discreet sites/directories in there, so I'll have a look at the reference you suggested.

    Do you know of any other "Apache for Dummmies" type resources?

    Cheers


Bookmarks

Posting Permissions

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