Jump to content

NicholasB

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

NicholasB's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ok found the solution elsewhere in this forum Thanks to Trent, localhost is the problem ... change it to 127.0.0.1:3306 and it works fine
  2. Thanks Trent, that worked for me too. (I'm sure that makes you fell much better
  3. I have Apache 2.2.17, PHP 5.3.3 & MySQL 5.1.51 Community, all working (on Windows 7 Home Premium) phpinfo reports mysqli is installed & working but the following command just hangs and times out $mylink = mysqli_connect('localhost', 'root', 'mypassword'); The username and password work fine with the mysql.exe client The messages I eventually get are, below. Any help appreciated, I don't even know what to check next. TIA Nick Warning: mysqli_connect() [function.mysqli-connect]: [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in C:\WebServer\Apache Software Foundation\Apache2.2\htdocs\Suds\includes\mysqltest.php on line 4 Warning: mysqli_connect() [function.mysqli-connect]: (HY000/2002): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\WebServer\Apache Software Foundation\Apache2.2\htdocs\Suds\includes\mysqltest.php on line 4 Fatal error: Maximum execution time of 30 seconds exceeded in C:\WebServer\Apache Software Foundation\Apache2.2\htdocs\Suds\includes\mysqltest.php on line 4
  4. Worked for me BUT I changed # PHP5 configuration LoadModule "C:/Server/PHP/php5apache2_2.dll" PHPIniDir "C:/Server/PHP" AddType application-x/httpd-php5 .php to # PHP5 configuration LoadModule php5module "C:/Server/PHP/php5apache2_2.dll" PHPIniDir "C:/Server/PHP" AddType application/x-httpd-php .php Thanks, many days of pain are over
  5. Ok rectified. I read a post further down. Solution is to use a folder such as C:\WebServer not the Apache default of program files x86
  6. I'm a newbie with PHP/Apache/MySQL but have succesfully installed it on 3 different Win XP systems (2 XP Pro, 1 XP Home), and have a few weeks experience getting simple examples to work. However, when I tried exactly the same installation on a Windows 7 PC, Apache just will not load PHP The Apache Monitor exe doesn't show it as running and php files do nothing I have altered php.ini as before, and httpd.conf (to see php folder & dll's and to use index.php as a default - same as I did on XP machines) I'm using Apache 2.2.17 (Win32) and PHP 5 (download = php-5.3.3-Win32-VC6-x86.zip) I've extracted to C:\PHP and modified INI file same as for the XP machines (following instructions from a book) Browsing to localhost shows the apache 'It Works' page but php will not work Just writing this I notice the PHP ZIP says 32bit and my Win 7 is 64 bit, but surely backward compatibility ??? Help appreciated ... TIA .... :'(
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.