help!!

Discussion in 'Web Development & Web Hosting' started by danielbh, Mar 13, 2006.

  1. danielbh

    danielbh Bit Poster

    21
    0
    2
    I've been going round the bend trying to install PHP with Apache. I'm also trying to get MySql to work. I'm ruuning windows XP S.P. 2. I've been trying to install PHP 4.2.4 with Apache 2.x. When I try to access a PHP script through my browser it doesn't recognise the file!!!!

    With MySQL I try to use the Create Table command and enter the info then it says that there os no database!!!

    Help please someone-I am going mad here!
     
  2. d-Faktor
    Honorary Member

    d-Faktor R.I.P - gone but never forgotten.

    810
    0
    39
    how did you install it? did you use a wamp package, like xampp?
     
  3. danielbh

    danielbh Bit Poster

    21
    0
    2
    I've tried the different versionas from the official websites. Now I'm trying the WAMP5 version. MySQL console asks for a password and doesn't accept mine!?
     
  4. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    All my docs on this are at work, and it is some time since I set our systems up, so I'm a bit rusty.
    From memory - for Apache 2 you have to add in the php apache module to get apache to recognize that php is there.
    Also don't forget to enable any extension like .php in the config.

    Start with a simple script like this (called test.php):
    Code:
    <HTML>
    <HEAD><TITLE>PHP Test</TITLE></HEAD>
    <BODY>
    <? phpinfo() ?>
    </BODY></HTML>
    You can't create a table with no database there. You need to create a database to hold tables. The easy way is to use mysqladmin and type "create <name>".

    I suggest reading the docs on MySQL - it will get you going faster!

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  5. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    And <cough> this thread wants moving to the right area.....

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  6. d-Faktor
    Honorary Member

    d-Faktor R.I.P - gone but never forgotten.

    810
    0
    39
    wamp5? default sql user in wamp5 appears to be root, with no password. took me 1 minute to find on the wamp5 site... hinthint...
     
  7. d-Faktor
    Honorary Member

    d-Faktor R.I.P - gone but never forgotten.

    810
    0
    39
  8. Jakamoko
    Honorary Member

    Jakamoko On the move again ...

    9,924
    74
    229
    Moved and merged.

    Daniel, please don't cross-post the same question in multiple forums, thanks :)
     
    Certifications: MCP, A+, Network+
    WIP: Clarity
  9. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    Thanks Jak!

    Now I've had a moment to check a few things I see I was a bit out of date, and things have moved on. I'd not come across WAMP before! :oops:

    You will need to be a bit clearer as to which package you have installed, and what the current problems are!

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.