473,392 Members | 1,330 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,392 software developers and data experts.

installed PHP and now Apache won't start

I installed Apache 2.2.3 per the instructions in the book I'm reading
'AJAX and PHP' by Darie et al. After installation, I confirmed that the
server was working. I then installed MySQL and PHP. After configuring
the system per the book's instructions, I now find that the Apache
server won't start.

How do I start to troubleshoot this problem? I haven't a clue at this
point. Any help would be greatly appreciated.

TIA,
David

Oct 18 '06 #1
9 13667
BTW, I'm on Windows XP.
===============================

da******@gmail.com wrote:
I installed Apache 2.2.3 per the instructions in the book I'm reading
'AJAX and PHP' by Darie et al. After installation, I confirmed that the
server was working. I then installed MySQL and PHP. After configuring
the system per the book's instructions, I now find that the Apache
server won't start.

How do I start to troubleshoot this problem? I haven't a clue at this
point. Any help would be greatly appreciated.

TIA,
David
Oct 18 '06 #2
da******@gmail.com wrote:
I installed Apache 2.2.3 per the instructions in the book I'm reading
'AJAX and PHP' by Darie et al. After installation, I confirmed that the
server was working. I then installed MySQL and PHP. After configuring
the system per the book's instructions, I now find that the Apache
server won't start.

How do I start to troubleshoot this problem? I haven't a clue at this
point. Any help would be greatly appreciated.

TIA,
David

What's in the Apache error log (apache/logs/error.log)?

--
*****************************
Chuck Anderson Boulder, CO
http://www.CycleTourist.com
*****************************
Oct 18 '06 #3
da******@gmail.com wrote in news:1161214995.087958.318360
@k70g2000cwa.googlegroups.com:
I installed Apache 2.2.3 per the instructions in the book I'm reading
'AJAX and PHP' by Darie et al. After installation, I confirmed that the
server was working. I then installed MySQL and PHP. After configuring
the system per the book's instructions, I now find that the Apache
server won't start.

How do I start to troubleshoot this problem? I haven't a clue at this
point. Any help would be greatly appreciated.

TIA,
David

I had the same problem the other day. I had PHP 5 and Apache 2.0
installed and upgraded to Apache 2.2.3 and it didn't work.

The problem is with Apache; they changed their API and that broke PHP,
at least on Windows XP.

Solution:

Go to http://snaps.php.net and download the latest PHP development
snapshot. It is stable (or so they say), but isn't the normal download.
Inside is a different version of the PHP dll needed to link PHP to
Apache. It is now php5apache2_2.dll.

1) Make sure php5ts.dll is in the Apache\bin folder
2) You MAY (or may not--I did) need to add the following line to Apache's
httpd.config file: Win32DisableAcceptEx (Apache runs at 100% CPU without
it on my system).
3) Make sure you set up your php.ini file per PHP's install.txt
instructions
4) Add the following lines to httpd.config (per PHP install.txt
instructions):

LoadModule php5_module "C:/directoryPHPIsIn/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/directoryPHPIsIn/"
AddType application/x-httpd-php-source .phps

That SHOULD get it to work. If not, let me know.
Oct 19 '06 #4
Still getting an error. Told that it can't find php5apache2.dll
specified in httpd.conf as follows (PHP stored in c:\php\):

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php/"
AddType application/x-httpd-php-source .phps

Yet I've confirmed it's there (along with the new php5apache2_2.dll).

Also, I should move php5ts.dll from windows/system32, right?

Thanks for your help!
David

Go to http://snaps.php.net and download the latest PHP development
snapshot. It is stable (or so they say), but isn't the normal download.
Inside is a different version of the PHP dll needed to link PHP to
Apache. It is now php5apache2_2.dll.

1) Make sure php5ts.dll is in the Apache\bin folder
2) You MAY (or may not--I did) need to add the following line to Apache's
httpd.config file: Win32DisableAcceptEx (Apache runs at 100% CPU without
it on my system).
3) Make sure you set up your php.ini file per PHP's install.txt
instructions
4) Add the following lines to httpd.config (per PHP install.txt
instructions):

LoadModule php5_module "C:/directoryPHPIsIn/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/directoryPHPIsIn/"
AddType application/x-httpd-php-source .phps

That SHOULD get it to work. If not, let me know.
Oct 19 '06 #5
sigh...

The same issues, over and over and over.

If you want a real solid install of Apache and PHP (with Perl, SSH,
mySQL, etc) then please take a look at...

web.torres.ws/walters_way

This outlines complete instructions to install all this stuff witout a
single file in the WINDOWS directory nor a key in the registry (I don't
cound ENV VARS, even though that's where their kept).

The first install takes a bit of time, about 20 minutes. But when your
done, you will know how things work nd how they go together. Back up is
a simple burn to a CD, and the restore is a simple copy from that CD
and reinsert the ENV VARS.

I hope to add SVN to the list soon.

Please take a look at my instructions. They may help you.

Walter

Oct 19 '06 #6
da******@gmail.com wrote:
I installed Apache 2.2.3 per the instructions in the book I'm reading
'AJAX and PHP' by Darie et al. After installation, I confirmed that the
server was working. I then installed MySQL and PHP. After configuring
the system per the book's instructions, I now find that the Apache
server won't start.

How do I start to troubleshoot this problem? I haven't a clue at this
point. Any help would be greatly appreciated.

TIA,
David
The folks on alt.apache.configuration will be a lot more help.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Oct 19 '06 #7
da******@gmail.com wrote in
news:11**********************@m73g2000cwd.googlegr oups.com:
Still getting an error. Told that it can't find php5apache2.dll
specified in httpd.conf as follows (PHP stored in c:\php\):

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php/"
AddType application/x-httpd-php-source .phps

Yet I've confirmed it's there (along with the new php5apache2_2.dll).

Also, I should move php5ts.dll from windows/system32, right?

Thanks for your help!
David
You need php5apache2_2.dll. php5apache2.dll is irrelevant as it will not
work.

Did you make sure that php5ts.dll and php_mysql.dll files were copied to
Apache2.2/bin directory?

Also, if you have firewall software, make sure that the programs aren't
blocked.

That's all I can think of...that's how I got it to work.

Otherwise you'll have to downgrade to a lower Apache version.

>
>Go to http://snaps.php.net and download the latest PHP development
snapshot. It is stable (or so they say), but isn't the normal
download. Inside is a different version of the PHP dll needed to link
PHP to Apache. It is now php5apache2_2.dll.

1) Make sure php5ts.dll is in the Apache\bin folder
2) You MAY (or may not--I did) need to add the following line to
Apache's httpd.config file: Win32DisableAcceptEx (Apache runs at
100% CPU without it on my system).
3) Make sure you set up your php.ini file per PHP's install.txt
instructions
4) Add the following lines to httpd.config (per PHP install.txt
instructions):

LoadModule php5_module "C:/directoryPHPIsIn/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/directoryPHPIsIn/"
AddType application/x-httpd-php-source .phps

That SHOULD get it to work. If not, let me know.
Oct 19 '06 #8
I hadn't seen any instrcution re php_mysql.dll. Copied it as you
suggested and now it works!!

Thanks so much!

Lone Clapper wrote:
da******@gmail.com wrote in
news:11**********************@m73g2000cwd.googlegr oups.com:
Still getting an error. Told that it can't find php5apache2.dll
specified in httpd.conf as follows (PHP stored in c:\php\):

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php/"
AddType application/x-httpd-php-source .phps

Yet I've confirmed it's there (along with the new php5apache2_2.dll).

Also, I should move php5ts.dll from windows/system32, right?

Thanks for your help!
David

You need php5apache2_2.dll. php5apache2.dll is irrelevant as it will not
work.

Did you make sure that php5ts.dll and php_mysql.dll files were copied to
Apache2.2/bin directory?

Also, if you have firewall software, make sure that the programs aren't
blocked.

That's all I can think of...that's how I got it to work.

Otherwise you'll have to downgrade to a lower Apache version.


Go to http://snaps.php.net and download the latest PHP development
snapshot. It is stable (or so they say), but isn't the normal
download. Inside is a different version of the PHP dll needed to link
PHP to Apache. It is now php5apache2_2.dll.

1) Make sure php5ts.dll is in the Apache\bin folder
2) You MAY (or may not--I did) need to add the following line to
Apache's httpd.config file: Win32DisableAcceptEx (Apache runs at
100% CPU without it on my system).
3) Make sure you set up your php.ini file per PHP's install.txt
instructions
4) Add the following lines to httpd.config (per PHP install.txt
instructions):

LoadModule php5_module "C:/directoryPHPIsIn/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/directoryPHPIsIn/"
AddType application/x-httpd-php-source .phps

That SHOULD get it to work. If not, let me know.
Oct 19 '06 #9
da******@gmail.com wrote in
news:11*********************@k70g2000cwa.googlegro ups.com:
I hadn't seen any instrcution re php_mysql.dll. Copied it as you
suggested and now it works!!
The PHP instructions are poorly written.

Basically, what the instructions say is that to use an extension you must
put the DLL file in a directory where PHP can find it. Then it offers
suggestions like the Windows system folder (\Windows or \Windows
\System32) or in the Apache\bin folder.

Glad you got it working.
>
Thanks so much!

Lone Clapper wrote:
>da******@gmail.com wrote in
news:11**********************@m73g2000cwd.googleg roups.com:
Still getting an error. Told that it can't find php5apache2.dll
specified in httpd.conf as follows (PHP stored in c:\php\):

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php/"
AddType application/x-httpd-php-source .phps

Yet I've confirmed it's there (along with the new
php5apache2_2.dll).

Also, I should move php5ts.dll from windows/system32, right?

Thanks for your help!
David

You need php5apache2_2.dll. php5apache2.dll is irrelevant as it will
not work.

Did you make sure that php5ts.dll and php_mysql.dll files were copied
to Apache2.2/bin directory?

Also, if you have firewall software, make sure that the programs
aren't blocked.

That's all I can think of...that's how I got it to work.

Otherwise you'll have to downgrade to a lower Apache version.

>

Go to http://snaps.php.net and download the latest PHP development
snapshot. It is stable (or so they say), but isn't the normal
download. Inside is a different version of the PHP dll needed to
link PHP to Apache. It is now php5apache2_2.dll.

1) Make sure php5ts.dll is in the Apache\bin folder
2) You MAY (or may not--I did) need to add the following line to
Apache's httpd.config file: Win32DisableAcceptEx (Apache runs at
100% CPU without it on my system).
3) Make sure you set up your php.ini file per PHP's install.txt
instructions
4) Add the following lines to httpd.config (per PHP install.txt
instructions):

LoadModule php5_module "C:/directoryPHPIsIn/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/directoryPHPIsIn/"
AddType application/x-httpd-php-source .phps

That SHOULD get it to work. If not, let me know.

Oct 20 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Kerry Neilson | last post by:
For the past couple of months, Idle won't start when I invoke it. I am at a complete loss for why this is. When this happens, they python command line still starts, and python works fine...
1
by: DaveJohnson12 | last post by:
I installed PWS 4.0 on my Windows 95 computer. It installed and ran nicely without any problems for several months. Then I stopped using it for a while. Now that I need it again it won't start. The...
5
by: Doug Kent | last post by:
Hi, I am using a STA thread to run a COM object. On a couple of machines the thread runs fine. On another machine the thread won't start, and no exceptions are thrown. This code is running...
1
by: Andrew Melton | last post by:
I had to reboot my RH9 server, now Postmaster won't start: I had to change my hostname recently, I am guessing that had something to do with it. I have tried modifying to the pg_hba.conf file to...
0
by: Chris Holmes | last post by:
When launching Access, I'm getting error message stating "a problem occured while Microsoft Access was communicating with the OLE Server or ActiveX control." After dismissing dialog box, another...
18
by: Rainer Queck | last post by:
Hello NG, I realized, that my application won't start, if a referenced assembly is missing. Basically this is understandable, but since I destribute my applictaion without a setup, it can...
1
by: =?Utf-8?B?amFkc3BvcnQ=?= | last post by:
Excel won't start. When clicking the icon (or any other excel files) I get the message Microsoft Excel for Windows has encountered a problem and needs to close (with the send error report option)....
2
by: Andre Ma | last post by:
Hi there, I tried to install MS SQL Server 2000 on my desktop computer after uninstalling a version 7 instance. Everything worked fine. Using Enterprise Manager I can manage databases and the...
1
by: MARYANN SCHOOLDEN | last post by:
I have downloaded Intel C++ Compiler professional edition and it won't start up. I don't know what I did wrong. I have Windows vista
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.