kumarsivarajan / pampa-j

Automatically exported from code.google.com/p/pampa-j
0 stars 0 forks source link

Apache does not start #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In 1 PC out of 10 Apache was not able to start.
The main difference between this PC and others is that it has been
reinstalled from the scratch and not activated yet.

To solve the missed Apache problem I had to cut and paste the php5ts.dll
file from PAMPA/php.32 directory to PAMPA/apache.32/bin

After doing this, everything worked as expected (the module could not find
the php dll) but if this problem still persist, please tell me if Apache
does not start even after copying the php5ts.dll file into
C:\WINDOWS\System32 folder, thank you

Original issue reported on code.google.com by andrea.g...@gmail.com on 26 Jan 2009 at 10:08

GoogleCodeExporter commented 8 years ago
i've tried under windows 2000, apache didn't start; i've copied  the php5ts.dll 
file
into C:\WINDOWS\System32 folder; didn't work neither

when i tried "manually" to start apache, i've got this:
P:\>D:\pampa\PAMPA\apache.32\bin\httpd.exe -f D:\pampa\PAMPA\config\httpd.conf -
k start
no listening sockets available, shutting down
Unable to open logs

do you see a way to make it work?

Original comment by vell...@gmail.com on 28 Jan 2009 at 2:45

GoogleCodeExporter commented 8 years ago
Please set debug=true in PAMPA/config/pampa.ini file, then launch PAMPA and, 
after it
has created debug apache.bat file into main directory, close it.
At that point double click on dos.bat, which contain a call to cmd to be in 
prompt,
then write apache and tell me which error you receive.

I would like to remind that PAMPA is completely stand alone and path portable, 
so you
cannot emulate manually used strings to start up its processes, strings showed 
when
debug variable is true for each required process.

Thank you

Original comment by andrea.g...@gmail.com on 28 Jan 2009 at 10:47

GoogleCodeExporter commented 8 years ago
I m unable to start the PAMPA ---Failed to connect -- Firefox can't establish a
connection to the server at 127.0.0.1:85.

I followed your debugging process and i get this error:
C:\>httpd.exe: Syntax error in -C/-c directive: Cannot load
C:/PAMPA/php.32/php5apache2_2.dll into server: This application has failed to 
start
because the application configuration is incorrect. Reinstalling the 
application may
fix this problem.

Any ideas?

Original comment by g.christ...@gmail.com on 8 Apr 2009 at 10:33

GoogleCodeExporter commented 8 years ago
does the C:/PAMPA/php.32/php5apache2_2.dll file exists? which Operating System? 
(full
version please)

Original comment by andrea.g...@gmail.com on 8 Apr 2009 at 12:30

GoogleCodeExporter commented 8 years ago
Yes php5apache2_2.dll does exist.

OS: Win XP SP3

Thanks

Original comment by g.christ...@gmail.com on 9 Apr 2009 at 12:04

GoogleCodeExporter commented 8 years ago
Did you forget to auth Apache at first unlock request?

Original comment by andrea.g...@gmail.com on 9 Apr 2009 at 1:47

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
To be honest that's what I was thinking the problem might be, but I never 
received a
prompt to unlock apache only for mysql i think.

To eliminate this possibility i disabled the firewall but still i get the same
problem....

Original comment by g.christ...@gmail.com on 9 Apr 2009 at 3:32

GoogleCodeExporter commented 8 years ago
I am in the same configuration and I have no problems at all.
It is really difficult to understand what is going there since 80% of Pampa 
users had
no problems with XP SP3.
Please download again the full archive, unpack in the Desktop (a different 
folder)
and try to launch PAMPA.exe.
If you still have problems, try to change Apache and MySQL ports (89 for 
Apache, 3309
for MySQL) and tell me if something happen ... thank you

Original comment by andrea.g...@gmail.com on 9 Apr 2009 at 3:47

GoogleCodeExporter commented 8 years ago
I have the same problem with 'failed to connect'. I tried to change apache port,
disable php, mysql and ajax, disable firewall without success. Tested 5 PC: 3 
with
XPProSP3 (it works), 2 netbooks with XPHomeSP3 (it does not work). Maybe is it a
XPHome problem?
thank you 

Original comment by valerio....@gmail.com on 16 Apr 2009 at 10:10

GoogleCodeExporter commented 8 years ago
Actually only problems I know is with XP Home Edition ... but at the same time 
it
works in one XP SP3 Home Edition I have tried recently.

Can you pelase try to copy both php5apache2_2.dll and php5ts.dll into System32
folder? I guess that is the problem

Original comment by andrea.g...@gmail.com on 16 Apr 2009 at 11:35

GoogleCodeExporter commented 8 years ago
Please, before you copyt there, try to copy both php5ts.dll and 
php5apache2_2.dll
into PAMPA/apache.32/bin folder and let me know if this solved the problem. 
Thank you

Original comment by andrea.g...@gmail.com on 16 Apr 2009 at 11:36

GoogleCodeExporter commented 8 years ago
unfortunately, apache connection still fail.
Copied php5ts.dll and php5apache2_2.dll in PAMPA/apache.32/bin and restarted, 
then
copied in System32 folder and restarted but without success
thank you

Original comment by valerio....@gmail.com on 17 Apr 2009 at 7:15

GoogleCodeExporter commented 8 years ago
is the error always the same? is there any firewall? can you create a new 
Window User
and try there to launch the application? If you change the port it could be a
conflict, if it does not find the file you need to check the used string 
because if
path is correct there is something wrong in Apache (at this point).
More information you give me, quicker will be the fix. Thanks everybody for help

Original comment by andrea.g...@gmail.com on 17 Apr 2009 at 8:55

GoogleCodeExporter commented 8 years ago
>is the error always the same? 
yes, connection failed
>is there any firewall? 
zone alarm disabled
>can you create a new Window User and try there to launch the application? 
created a new admin user but connection always fail
>If you change the port it could be a conflict... 
tried with 80, 85 and 89
>if it does not find the file you need to check the used string because if
>path is correct there is something wrong in Apache (at this point).
How can I check the used string?
Thanks

Original comment by valerio....@gmail.com on 17 Apr 2009 at 9:36

GoogleCodeExporter commented 8 years ago
in PAMPA root, if you set debug=true in pampa.ini file inside config folder, you
should find some .bat file. Right click on apache.bat and edit to read the used
string such:
start /B PAMPA\apache.32\bin\httpd.exe -d "{fullpath}PAMPA\apache" -C 
"LoadModule
jaxer_module '{fullpath}PAMPA\jaxer.32\connectors\mod_jaxer.so'" -C "JaxerWorker
127.0.0.1 4327" -C "Alias /aptana '{fullpath}PAMPA\jaxer.32\aptana'" -C "Alias
/public '{fullpath}PAMPA\apache.32\htdocs\public'" -C "Alias
/jaxer/framework/clientFramework_compressed.js
'{fullpath}PAMPA\jaxer.32\framework\clientFramework_compressed.js'" -C "Alias
/jaxer/framework/clientFramework.js
'{fullpath}PAMPA\jaxer.32\framework\clientFramework.js'" -c "Include
'{fullpath}PAMPA\config\jaxer.conf'" -C "LoadModule php5_module
'{fullpath}PAMPA\php.32\php5apache2_2.dll'" -C "PHPIniDir
'{fullpath}PAMPA\config\php.ini'" -C "addtype application/x-httpd-php .php .phps
.php5 .php4 .phar" -C "Listen '85'" -C "ServerName 'PAMPA'" -C "ServerAdmin
'pampa@portable.wamp'" -C "DefaultType 'text/html'" -C "LogLevel 'warn'" -C 
"PidFile
'{tmppath}PAMPA\PAMPA.exe.apache.pid'" -C "ErrorLog
'{tmppath}PAMPA\PAMPA.exe.apache.log'" -C "DocumentRoot
'{fullpath}PAMPA\apache.32\htdocs'" -C "ServerRoot '{fullpath}PAMPA\apache.32'" 
-C
"Alias /icons/ '{fullpath}PAMPA\apache.32\icons\'" -C "ScriptAlias /cgi-bin/
'{fullpath}PAMPA\apache.32\cgi-bin\'" -f "{fullpath}PAMPA\config\httpd.conf" 

Original comment by andrea.g...@gmail.com on 17 Apr 2009 at 10:01

GoogleCodeExporter commented 8 years ago
P.S. I am assuming your Windows Home Edition is 32 bit ... 

Original comment by andrea.g...@gmail.com on 17 Apr 2009 at 10:02

GoogleCodeExporter commented 8 years ago
WinHome is 32bit.
This is the used string, it seems full paths are correct (E: is a pendrive, I 
also
tried to copy PAMPA folder into C:\):
start /B PAMPA\apache.32\bin\httpd.exe -d "E:\Pampa\PAMPA\apache" -C "LoadModule
jaxer_module 'E:\Pampa\PAMPA\jaxer.32\connectors\mod_jaxer.so'" -C "JaxerWorker
127.0.0.1 4327" -C "Alias /aptana 'E:\Pampa\PAMPA\jaxer.32\aptana'" -C "Alias 
/public
'E:\Pampa\PAMPA\apache.32\htdocs\public'" -C "Alias
/jaxer/framework/clientFramework_compressed.js
'E:\Pampa\PAMPA\jaxer.32\framework\clientFramework_compressed.js'" -C "Alias
/jaxer/framework/clientFramework.js
'E:\Pampa\PAMPA\jaxer.32\framework\clientFramework.js'" -c "Include
'E:\Pampa\PAMPA\config\jaxer.conf'" -C "LoadModule php5_module
'E:\Pampa\PAMPA\php.32\php5apache2_2.dll'" -C "PHPIniDir
'E:\Pampa\PAMPA\config\php.ini'" -C "addtype application/x-httpd-php .php .phps 
.php5
.php4 .phar" -C "Listen '85'" -C "ServerName 'PAMPA'" -C "ServerAdmin
'pampa@portable.wamp'" -C "DefaultType 'text/html'" -C "LogLevel 'warn'" -C 
"PidFile
'C:\DOCUME~1\valerio\IMPOST~1\Temp\PAMPA\PAMPA.exe.apache.pid'" -C "ErrorLog
'C:\DOCUME~1\valerio\IMPOST~1\Temp\PAMPA\PAMPA.exe.apache.log'" -C "DocumentRoot
'E:\Pampa\PAMPA\apache.32\htdocs'" -C "ServerRoot 'E:\Pampa\PAMPA\apache.32'" -C
"Alias /icons/ 'E:\Pampa\PAMPA\apache.32\icons\'" -C "ScriptAlias /cgi-bin/
'E:\Pampa\PAMPA\apache.32\cgi-bin\'" -f "E:\Pampa\PAMPA\config\httpd.conf"

Original comment by valerio....@gmail.com on 17 Apr 2009 at 11:00

GoogleCodeExporter commented 8 years ago
ok, far enough ... now, can you pelase edit that file and change
-C "LoadModule php5_module 'E:\Pampa\PAMPA\php.32\php5apache2_2.dll'"
into
-C "LoadModule php5_module 'E:\Pampa\PAMPA\apache.32\bin\php5apache2_2.dll'"
and try to launch directly that file via double click?

Original comment by andrea.g...@gmail.com on 17 Apr 2009 at 11:39

GoogleCodeExporter commented 8 years ago
edited and launched, cmd window closes immediately and when I call 127.0.0.1:85 
I get
again the connection failed error

Original comment by valerio....@gmail.com on 17 Apr 2009 at 12:31

GoogleCodeExporter commented 8 years ago
well, create a dos.bat file and write inside cmd and save it. double click to 
be in
that folder. write in the console apache and press return so it will not close 
the
shell ... and tell me the error message, if any.
In the meanwhile I tried here in a XP Home SP3 PC and everything is ok ... 

Original comment by andrea.g...@gmail.com on 17 Apr 2009 at 12:49

GoogleCodeExporter commented 8 years ago
Here is the error:
E:\Pampa>httpd.exe: Syntax error in -C/-c directive: Cannot load E:/Pampa/PAMPA/
apache.32/bin/php5apache2_2.dll into server: Impossibile avviare l'applicazione
specificata. La configurazione dell'applicazione non \xe8 corretta. Una nuova in
stallazione dell'applicazione potrebbe risolvere il problema.

I double checked, the file php5apache2_2.dll exists in that directory...

Original comment by valerio....@gmail.com on 17 Apr 2009 at 1:47

GoogleCodeExporter commented 8 years ago
Ok, apparently is a common problem with that dll and Windows XP Home.
As last try, you could download the latest version from
http://windows.php.net/snapshots/
version VC9 thread safe PHP 5.3
http://windows.php.net/downloads/snaps/php-5.3-win32-VC9-x86-latest.zip
copy the latest php5apache2_2.dll from that zip into PAMPA and overwrite other 
one
(be sure you overwrite every place where you put that dll)
Let me know if it solved the problem, thank you

Original comment by andrea.g...@gmail.com on 17 Apr 2009 at 2:02

GoogleCodeExporter commented 8 years ago
not solved, I got the same error in cmd prompt. I think I'll try to use a 
virtual
machine with XPpro on my netbook.
thank you

Original comment by valerio....@gmail.com on 17 Apr 2009 at 2:19

GoogleCodeExporter commented 8 years ago
Hi,
I have the same problem. I work all day to try to resolve but nothing.
I Think that this problem is issued to Windos XP SP3 (my be the firewall), but 
I try
to disable any protection but PAMPA do not run jet.

The problem is that the HTTPD process will be terminate immediatly: PAMPA e 
MYSQL run
correctly, but without Apache.

Original comment by max.carr...@gmail.com on 16 Sep 2009 at 9:12

GoogleCodeExporter commented 8 years ago
"PAMPA does not require an installation. All you need to do is to create a 
folder, wherever you want, and to unpack the self-extracting archive into that 
folder. After that, double click on the PAMPA executable, unblock Apache, Jaxer 
and MySQL, if necessary, and wait for your browser, it should show directly the 
document root ready to be used ;-)"

I too can't run Pampa-j and I too got the same messages; but I simply felt 
myself so ignorant that I presumed to be the only one to have this problem. So 
I discovered an old Pampa 0.6 version into an old forgotten folder and... it 
runs heppily nto the same PC and into the same OS obviously. 

But, precisely, what means "unblock Apache, Jaxer and MySql if necessary" (yes, 
it seems necessary...) into the sentence I copied from the main page of the 
project? 

Alex brollo

PS: I need some so basic functions that I'm fully satisfied that my old Pampa 
hss been found and running.... but... run the newer version wopuld be great. :-(

Original comment by alex.bro...@gmail.com on 18 Jun 2010 at 2:33

GoogleCodeExporter commented 8 years ago
hi my name is vinay web developer at toolsacademy.net
i was able to find a solution to overcome the compatible issues with pampa-j.

here is the procedure.

1. please download the zip file of php-5.4.9-win32-vc9-x86.
2. if you had upgraded the pampa to pampa php 5.4.0 alpha 2.
3. in pampa folder go to apache32./bin/ then  libeay32.dll, php5ts.dll, 
ssleay32.dll .... find these files and replace these files with newer version 
present in 5.4.9 downloaded files.
4. then php32 folder replace complete ext folder with the newer version from 
downloaded files and also find php5apache2_2.dll and replace with newer version 
from php-5.4.9.
5. now restart the pampa server it runs fine in both xp sp3 and in win7.
thank you.

Original comment by vinaykan...@gmail.com on 10 Dec 2012 at 6:32

GoogleCodeExporter commented 8 years ago
use this upgrade for xp and win7 compatible

Original comment by vinaykan...@gmail.com on 12 Dec 2012 at 7:32

Attachments:

GoogleCodeExporter commented 8 years ago
I worked fine with pampa on winXP,
until I formatted my computer;
after that, pampa did not work anymore,
httpd was not able to start;
after many attempts, 
I found a solution:
I installed .NET framework 2.0
and pampa worked again!

Nicola Mancini

Original comment by nicola.m...@gmail.com on 11 Sep 2013 at 9:42