Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jan 2010
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question PHP 5.2.5 installation step by step (help needed)

    Hi

    Can anyone pls help me install PHP 5.2.5 manually on my system. I have installed already apache2.2.8 and it appears to be working just fine. But when I install php and test localhost/phpinfo.php on the web browser..the file cannot be found.

    It said in the tutorial I read that I need to copy php.ini.recommended file to php.ini file. How can I do this since its both just text file rather than a directory. Do I need to copy and paste the entire text inside the php.ini.recommended and paste it on php.ini. Or do I need to override the php.ini file so that its contents is that of php.ini.recommended? Pls help.


    My system is windows vista home premium.

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    I would recommend uninstalling apache and just install xampp it is Apache, PHP, MySQL and Perl all wrapped together and you don't need to worry about configuring any of them to work together.

    Unless you are doing this so you know how to set it up then we can help figure out the issue you are having.
    OracleGuy

  • #3
    New Coder
    Join Date
    Jan 2010
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes....
    i also want to know how to install it manually instead of using an installer. can anyone help me pls. Step by Step guide. Thanks

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    If you've got the two already, I'd say just keep going myself. I've always done this manually.
    1. Edit /path/to/apache/conf/httpd.conf
      1. Add (if not added):
        Code:
        LoadModule php5_module C:/Path/to/php5.2.5/sapi/php5apache2.dll
        Note that if you're on linux, use linux filepaths and executables. Also, I tend to keep these with the other LoadModule sections (I actually use ifDefine's to add different PHP versions, and combine it with defined values when creating apache services). Optionally define PHPINIDir directive to use a specific path for you're master ini file. If not specified, it will take the ini in the php directory.
      2. Ensure that DOCUMENTROOT has been repointed at the directory which you will serve you're pages from. Also ensure that SERVERROOT is pointing at you're apache directory (should have been configured during install automatically).
      3. Configure the AddType to add PHP:
        Code:
        AddType application/x-httpd-php .php
        Search for AddType, you should find one for application compressing (I believe this is available since Apache2.1). Just add the above below that line.
      4. Save the httpd.conf file.
    2. Edit PHP.ini located either in the php directory or you're specified source path in httpd.conf.
      1. Edit upload_tmp_dir to point at you're temporary upload directory.
      2. Uncomment any extensions that you would like to use and have libraries for. Common ones on development servers are: php_gd2.dll (.so), php_mbstring.dll, php_mysql.dll, php_mysqli.dll,
      3. Edit session.save_path to point to where you would like to save you're session files.
      4. Save php.ini
    3. Restart you're apache service. Take note of any errors you may receive; common errors generally refer to dll/so files that cannot be loaded for you're extensions. If necessary, comment out all extensions to ensure that it will load. Uncomment one at a time and restart you're service between each load.


    And you're done. Keep you're filepaths as frontslash separated (ie: C:/Path/to/stuff), this way you won't need to escape anything.

    Try that out, I think that covers it all.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #5
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here you,checked for apache_2.2.14-win32-x86-OpenSSL-0.9.8k, php-5.2.9-1-Win32 and mysql-essential-5.1.36-win32!good luck

    Code:
    http://rapidshare.com/files/333791729/Installing_Apache_PHP5_MySQL5_on_Windows.rar.html

  • #6
    Banned
    Join Date
    Jan 2010
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I am new to php I have also installed Apach server and php-5.2.9-1 whenever I am running my server
    at "http://localhost:8080/usebean /raj.php " page is opening but giving no output can you suggest me what may the reasons


  •  

    Posting Permissions

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