The following error was retrieved from the Web server: Faile

General discussion forum for the Zend Server

Re: The following error was retrieved from the Web server: Faile

Postby elkolonel on Sat Nov 21, 2009 6:32 pm

It does'nt work.
I'm desesperate, I have try many things.

Do you have another idea ?

Bellow, response of command :

apachectl -k stop
Warning: DocumentRoot [/usr/docs/dummy-host.example.com] does not exist
Warning: DocumentRoot [/usr/docs/dummy-host2.example.com] does not exist
httpd (pid 19119?) not running


apachectl -k start
Warning: DocumentRoot [/usr/docs/dummy-host.example.com] does not exist
Warning: DocumentRoot [/usr/docs/dummy-host2.example.com] does not exist
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
elkolonel
 
Posts: 7
Joined: Fri Mar 20, 2009 4:48 pm

Re: The following error was retrieved from the Web server: Faile

Postby zvika on Mon Nov 23, 2009 11:06 am

Hello elkolonel

I see that a socket is not created and the 2 document roots are not accessible / not exist,
are you running the apachectl from root / sudo?

UPDATE:
In second review, this seems to be the default document root of system Apache.
Did you try to start Zend Apache using /usr/local/zend/bin/zendctl.sh start (or start-apache specifically) ?
Zvika Dror
Zend Support Team
User avatar
zvika
Zend Global Support
 
Posts: 780
Joined: Sun Dec 14, 2008 9:48 am

Re: The following error was retrieved from the Web server: Faile

Postby elkolonel on Mon Nov 23, 2009 11:56 pm

Good evening everybody,

yes it seems, I'm on the wrong way. But, I have used now good command and have always the same problem.

I've launched this :
Code: Select all
fblanc:bin fblanc$ sudo /usr/local/zend/bin/zendctl.sh stop
Stopping Zend Server 4.0.6 ..

httpd (no pid file) not running
/usr/local/zend/bin/apachectl stop [OK]
Stopping Zend Server GUI [Lighttpd] [OK]
Shutting down MySQL
. SUCCESS!
Stopping Java bridge [OK]

Zend Server stopped.


and after :
Code: Select all
fblanc:bin fblanc$ sudo /usr/local/zend/bin/zendctl.sh start
Starting Zend Server 4.0.6 ..

(48)Address already in use: make_sock: could not bind to address [::]:10088
/usr/local/zend/bin/apachectl start [OK]
spawn-fcgi: child spawned successfully: PID: 33876
Starting Zend Server GUI [Lighttpd] [OK]
[23.11.2009 23:47:59 SYSTEM] watchdog for lighttpd is running.
[23.11.2009 23:47:59 SYSTEM] lighttpd is running.
Starting MySQL
. SUCCESS!
Starting Java bridge [OK]
[23.11.2009 23:48:00 SYSTEM] watchdog for java_daemon is running.
[23.11.2009 23:48:00 SYSTEM] java_daemon is running.

Zend Server started...


But this line ((48)Address already in use: make_sock: could not bind to address [::]:10088
), seems said it can not start.

And in the web GUI, I have this message :
Failed to access Web server. Please make sure that the Web server is running and listening to the correct port


In my httpd.conf under /usr/local/zend/apache2/conf/, the file beginning by :
Code: Select all
#
ServerRoot "/usr/local/zend/apache2"

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 10088


finally, in log I have this :
[Mon Nov 23 23:47:58 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]


Sorry, but If you have an idea, can you help me, please ?

Fred Blanc
elkolonel
 
Posts: 7
Joined: Fri Mar 20, 2009 4:48 pm

Re: The following error was retrieved from the Web server: Faile

Postby zvika on Tue Nov 24, 2009 4:47 pm

Hello

It seems from first look Apache cannot bind to port 10088 so it might be already taken by former Apache process or another

execute
# zendctl.sh stop-apache
# ps aux | grep apache (check if /usr/local/zend/bin/apache2 is still there - kill any leftover process)
# netstat | grep 10088 (locate any process holding this port)
# zendctl.sh start-apache

Please post back with the results
Zvika Dror
Zend Support Team
User avatar
zvika
Zend Global Support
 
Posts: 780
Joined: Sun Dec 14, 2008 9:48 am

Re: The following error was retrieved from the Web server: Faile

Postby elkolonel on Tue Nov 24, 2009 5:23 pm

Thank you very much.
That's the solution...

;)
elkolonel
 
Posts: 7
Joined: Fri Mar 20, 2009 4:48 pm

Re: The following error was retrieved from the Web server: F

Postby marloutor on Tue Nov 29, 2011 6:03 pm

Normally there isn't a conflict, but if you are changing the default configuration there are sometimes conflicts on which ports are being listened to and you can accidentally call the default commands in the terminal which will effect the wrong thing, i.e. apachectl instead of /usr/local/zend/apache2/bin/apachectl
marloutor
 
Posts: 5
Joined: Tue Nov 29, 2011 5:13 pm

Re: The following error was retrieved from the Web server: F

Postby doogle on Wed Nov 28, 2012 9:35 am

Same problem with Mac Mountain Lion. After install things worked but then the server stopped working with error, "Failed to access Web server. Please make sure that the Web server is running and listening to the correct port". Has anyone figured this one out? Any suggestions? I am new to Mac, so kinda going through growth pains. However, I really want to use Zend Server on this machine.

Thanks for anyone who can help.

-Doogs
doogle
 
Posts: 15
Joined: Sun Dec 06, 2009 6:01 pm

Re: The following error was retrieved from the Web server: F

Postby zvika on Wed Nov 28, 2012 10:53 am

Hi Doogs

Please check the Apache error log and if relevant (attach to TCP port issue) - try the recipe I gave 3 years ago ;)

Let me know any results.
Zvika Dror
Zend Support Team
User avatar
zvika
Zend Global Support
 
Posts: 780
Joined: Sun Dec 14, 2008 9:48 am

Previous

Return to Zend Server

Who is online

Users browsing this forum: No registered users and 13 guests