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

    Configuring apache/mysql/php

    I have installed these before but needed to upgrade to php 5.4.1. However, I had problems so re-installed MySQL 5.5.28 (64 bit version) [the Apache server was already installed in c:\apache and working and the service was starting automatically).

    This installed (in c:\MySQL) okay and the service started okay on rebooting the system (with my.ini in the root folder).

    I then installed php 5.4.1 into c:\php.

    I copied the php.ini-development file to c:\windows and renamed it php.ini and added the following lines to php.ini

    doc_root = "c:\apache\htdocs"
    extension_dir = "c:\php\ext"
    extension = "php_mysql.ini"
    I then added the following lines to httpd.conf (in c:\apache\conf)

    LoadModule php5_module "C:/PHP/php5apache2_2.dll"
    AddType application/x-httpd-php .php
    PHPIniDir "C:/PHP"
    However, when I run phpinfo.php (that calls phpinfo() ) it confirms that I am running php 5.4.1. But running a test script mysql.php that simply connects to mysql, fails.

    Can anyone please shed any light on where I have made a mistake. As I said, I have installed these previously with no (well little!!!) problems.

  2. #2
    New Coder
    Join Date
    Sep 2010
    Thanked 0 Times in 0 Posts
    Okay - found my mistake....apologies. I had entered my password on MySQL incorrectly. However, when going back to square one and re-installing everything, I have fallen at the first hurdle. On installing Apache 2.2 the system reports that it has installed correctly but the pop-up dos box states....

    httpd.exe: Could not reliably determine the server's fully qualified domain name
    , using for ServerName
    (OS 10013)An attempt was made to access a socket in a way forbidden by its acces
    s permissions. : make_sock: could not bind to address
    no listening sockets available, shutting down
    Unable to open logs.

    Of course the Apache Service will not start but I don't understand the error message or what I need to do to resolve the situation. Can anyone help please?
    Last edited by rps; 08-04-2013 at 03:44 PM.

  3. #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,668 Times in 2,637 Posts
    Unless its a major change, you can typically get away with just updating a specific component of the apache/mysql/php chain. The only thing I see as "kinda" wrong, is that doc_root isn't really required when you're building a module for the PHP.
    The second error I wouldn't worry about the first part. It's simply detecting no valid domain and reverting to an IP address. 192.168/16 is an internal subnet. If it actually configures against that, you may need to remove it if your machine is DHCP (which it could very well be). I wouldn't think that its stupid enough to bind an ip address though, so that would probably toss that quite regularly. I'd assume it should cause no real problems otherwise.
    The second one is your problem. It cannot establish a socket on port 80 to listen to. Either there is already something listening on port 80 (quite a number of applications do by default) or you have a firewall tool blocking your connection attempt. Check your netstat -abo and look for the :80 in use. You can also use the netstat -ao | find ":80 ", and take the associated pid and check the tasklist for the associated program.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


Posting Permissions

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