Page 1 of 1

Apache does start with errors. MySQL does not start.

PostPosted: 13. July 2007 11:29
by udovdm
Hoi,

Apache does start, but with errors. MySQL does not start.

I have XAMPP 1.6.2 on Windows 98 SE (dutch). I tried the installer on C:/program files/xampp and C:/xampp. Now I am using the Selfextracting 7-ZIP archive in C:/xampp. All of them give the same result.

:arrow: When I start Apache using apache_start.bat it's output is
Code: Select all
Diese Eingabeforderung nicht waehrend des Running beenden
Bitte erst bei einem gewollten Shutdown schliessen
Please close this command only for Shutdown
Apache 2 is starting ...

I can access //localhost/xampp/ so Apache and PHP are working, :D
but C:\xampp\apache\logs\error.log displays some errors:
Code: Select all
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\xampp\\php\\ext\\php_imap.dll' - Een apparaat dat op het systeem is aangesloten, werkt niet.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\xampp\\php\\ext\\php_pgsql.dll' - Een apparaat dat op het systeem is aangesloten, werkt niet.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\xampp\\php\\ext\\php_svn.dll' - Kan een van de vereiste bibliotheekbestanden van deze toepassing niet vinden.\r\n in Unknown on line 0
[Fri Jul 13 11:39:18 2007] [notice] Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.2 configured -- resuming normal operations
[Fri Jul 13 11:39:18 2007] [notice] Server built: Mar  5 2007 11:23:00
[Fri Jul 13 11:39:18 2007] [notice] Parent: Created child process -571639
[Fri Jul 13 11:39:20 2007] [notice] Child -571639: Child process is running
[Fri Jul 13 11:39:20 2007] [notice] Child -571639: Acquired the start mutex.
[Fri Jul 13 11:39:20 2007] [notice] Child -571639: Starting 250 worker threads.
[Fri Jul 13 11:39:22 2007] [notice] Child -571639: Listening on port 443.
[Fri Jul 13 11:39:22 2007] [notice] Child -571639: Listening on port 80.


:arrow: When I start the XAMPP Control Panel Application, it displays an warning about a directory mismatch, but I don't know where to correct it. I can start Apache by clicking on the 'Start' button with the following output:
Code: Select all
XAMPP Control Panel Version 2.5 (9. May, 2007)
Windows 4.10 Build 2222 Platform 1  A
Current Directory: C:\xampp
Install Directory:
*** WARNING: Directory mismatch ***
Status Check OK
Busy...
Apache started [Port 80]

Apache is started, but there is not green label with Running in it. The 'Start'-button doesn't change to 'Stop' as shown in the [url=http://images.apachefriends.org/images/1161.jpg]installation manual
[/url].
If I click on 'Status' it displays the following: state=0 but thread=lc :?
Code: Select all
XAMPP Application Status 0.0.0.0
  apache State 0 Service 0 Start 0 Thread lc Op 0 Port 80
   mysql State 0 Service 0 Start 0 Thread 0 Op 0 Port 3306
     ftp State 0 Service 0 Start 0 Thread 0 Op 0 Port 21
 mercury State 0 Service 0 Start 0 Thread 0 Op 0 Port 25


The following has been appended to C:\xampp\apache\logs\error.log:
Code: Select all
[Fri Jul 13 11:55:19 2007] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Fri Jul 13 11:55:19 2007] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Fri Jul 13 11:55:19 2007] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Fri Jul 13 11:55:19 2007] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Fri Jul 13 11:55:22 2007] [notice] Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.2 configured -- resuming normal operations
[Fri Jul 13 11:55:22 2007] [notice] Server built: Mar  5 2007 11:23:00
[Fri Jul 13 11:55:22 2007] [notice] Parent: Created child process -683923
[Fri Jul 13 11:55:24 2007] [notice] Child -683923: Child process is running
[Fri Jul 13 11:55:24 2007] [notice] Child -683923: Acquired the start mutex.
[Fri Jul 13 11:55:24 2007] [notice] Child -683923: Starting 250 worker threads.
[Fri Jul 13 11:55:25 2007] [notice] Child -683923: Listening on port 443.
[Fri Jul 13 11:55:25 2007] [notice] Child -683923: Listening on port 80.


//localhost/xampp/status.php gives: :D
Code: Select all
MySQL database                 DEACTIVATED
PHP                            ACTIVATED
HTTPS (SSL)                    ACTIVATED
Common Gateway Interface (CGI) ACTIVATED
Server Side Includes (SSI)     ACTIVATED
SMTP Service                   DEACTIVATED
FTP Service                    DEACTIVATED



After all this I can't get MySQL started using the control panel, mysql_start.bat, or WinMySQLadmin. It could be that this is because Apache isn't working properly. Let me know if you need to know more. :roll:

Registery:
Code: Select all
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Apache2.2]
"ImagePath"="\"C:\\PROGRAM FILES\\XAMPP\\APACHE\\BIN\\APACHE.EXE\" -n Apache2.2 -k runservice"
"DisplayName"="Apache2.2"
"Description"="Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.2"
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Apache2.2\Parameters]
"ConfigArgs"=hex(7):00,00

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EventLog\Application\MySQL]
"EventMessageFile"=hex(2):43,3a,5c,58,41,4d,50,50,5c,4d,59,53,51,4c,5c,42,49,\
  4e,5c,4d,59,53,51,4c,44,2d,4e,54,2e,45,58,45,00
"TypesSupported"=dword:00000007


:?: Does anyone know what might be wrong, or needs to be checked?

Thanks for any reply,
Udo

Re: Apache does start with errors. MySQL does not start.

PostPosted: 18. July 2007 02:49
by Eric Pement
udovdm wrote:Apache does start, but with errors. MySQL does not start.

I have XAMPP 1.6.2 on Windows 98 SE (dutch).

Here is what I would do. Use the php_info() function to find out which Configuration File (php.ini) is actually in use to configure PHP. Then open up that particular "php.ini" file with a good text editor and look for the strings "file", "path" and "dir" (case-insensitive).

You will come across some irrelevant matches, but on my php.ini file, I found several wrong paths and directories. I changed them and that fixed a problem that I had with MySQL loading properly.

I also manually inspected "c:/Program Files/xampp/mysql/bin/my.cnf" (a config file) with my text editor to make sure that the directories and paths are set properly. In my case, the slashes for the directories are "forward slashes" (/), so I have settings like so:

Code: Select all
   # The MySQL server
   [mysqld]
   basedir="C:/Program Files/xampp/mysql"
   tmpdir="C:/Program Files/xampp/tmp"
   datadir="C:/Program Files/xampp/mysql/data"

Those are 2 suggestions that might help. I should add that I also use forward slashes "/", not the "" in the path settings in my php.ini file, and it works as I need right now. HTH.

Re: Apache does start with errors. MySQL does not start.

PostPosted: 08. August 2007 13:15
by udovdm
Hi Eric,

I tried Apache again 2 weaks ago, but it won't start anymore. http://localhost/ gives no responce. :(
Without it I can't see what init-file PHP is using, can I?

PHP.exe works fine as I can see setup_xampp.bat runing install.php.
I can call PHPinfo() with it.
Code: Select all
C:\XAMPP\php\php.exe -n -d output_buffering=0 phpinfo.php > phpinfo.txt

Result. phpinfo.txt line 11+12:
Code: Select all
Configuration File (php.ini) Path => 
Loaded Configuration File => (none)

I also tried it with the installer, but it gave the same results.

I tried it on an other PC with Windows XP, and it works fine. I think it is a Windows 98 problem.

Udo

PostPosted: 18. August 2007 17:09
by marbac17
Hallo to everyone

With the first time installation of XAMPP 1.6.3 on Windows 98 SE , it happens exactly the same to me today : MySQL does not start .

I tried to check and act the suggestions posted here but unfortunately with no result .

At the moment I don't know what to do .

If anyone can give a little help many thanks

marbac17