1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Damn PHP/Mysql, why the hell is it not working ?

Discussion in 'PHP' started by fatabbot, Sep 12, 2006.

  1. #1
    I'm trying to install PHP/apache/mysql on another pc, but damn so much frustration... After hours of trying incompatible php/apache i finally got that working, but now i cant get mysql to work in combination with php ! I use PHP Version 5.1.6 and Apache 2. As PHP 5 doesnt have mysql extension on by default, i uncommented extension=php_mysql.dll and restarted apache.
    Ok, so i make this page which echos phpinfo() and open it, all php info shows but NO MYSQL SECTION. Why ?? What did i forget ?
    It worked instantly on another pc...
    Anyone got any advice?
     
    fatabbot, Sep 12, 2006 IP
  2. Cybernaut

    Cybernaut Peon

    Messages:
    408
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Running on windows or Unix/Linux? (EDIT: it windows i guess from .ddl)
    PHP compiled with MySQL support or not?
    Have uncomented the respective AddModule/LoadModule lines or not?
     
    Cybernaut, Sep 12, 2006 IP
  3. fatabbot

    fatabbot Well-Known Member

    Messages:
    559
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    138
    #3
    Windows yes.
    For php i dowloaded the zip for windows:
    http://www.php.net/downloads.php
    and unzipped it in c:\php
    So i'm not sure if compiled with mysql support...


    in httpd.conf i added:

    LoadModule php5_module "c:/php/php5apache2.dll"
    AddType application/x-httpd-php .php
     
    fatabbot, Sep 12, 2006 IP
  4. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Any reason you're doing the installation and set up by hand as opposed to using an all-in-one installer like XAMPP from apachefriends.org?

    I got over trying to get these things working by myself years ago...
     
    TwistMyArm, Sep 12, 2006 IP
  5. fatabbot

    fatabbot Well-Known Member

    Messages:
    559
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    138
    #5
    Yeah i prefer to do it manually because that way i learn the most about it. Even though all the frustration makes me want to use something like XAMPP :p
    But i got it to work on another PC, so i cant handle the fact that it doesnt work on this one with the same steps!
     
    fatabbot, Sep 12, 2006 IP
  6. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yeah, I can understand that... like I say, though, I got over that pretty quickly :)

    Anyway, just off the top of my head, have you looked in your log files to see if there are any clues as to why it's not loading? I have a feeling it'll be in your Apache logs somewhere...
     
    TwistMyArm, Sep 12, 2006 IP
  7. Scriptona

    Scriptona Notable Member

    Messages:
    4,957
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    280
    #7
    I use XAMPP, always ready to use with ease
     
    Scriptona, Sep 12, 2006 IP