 |
 |
web sharing suddenly stops working!!
|
 |
|
 |
|
Grizzled Veteran
Join Date: Apr 2000
Location: Athens, Greece
Status:
Offline
|
|
Hello there!
I'm using web sharing all the time to stream content from my mac to my ps3. It was always working flawlessly with no issues whatsoever. Today there's no way I can connect to from my ps3 and any other device as well. It's not a password error message I'm just getting a "could not connect to the server" error.
I opened up the apache 2 server log and I'm getting a variety of errors. I'm not really sure though what they mean.
If anyone has any ideas please let me know!!
Here's the log
"[Sat Dec 05 22:33:07 2009] [notice] caught SIGTERM, shutting down
[Sat Dec 05 22:33:32 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
mod_bonjour: Skipping user 'dk79' - cannot read index file '/Users/dk79/Sites/index.html'.
[Sat Dec 05 22:33:32 2009] [notice] Digest: generating secret for digest authentication ...
[Sat Dec 05 22:33:32 2009] [notice] Digest: done
[Sat Dec 05 22:33:32 2009] [notice] Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 configured -- resuming normal operations
[Sat Dec 05 22:36:20 2009] [error] [client 192.168.1.3] File does not exist: /Library/WebServer/Documents/favicon.ico, referer: http://192.168.1.3/~dk79/PS3/
[Sat Dec 05 22:36:21 2009] [error] [client 192.168.1.3] File does not exist: /Library/WebServer/Documents/favicon.ico, referer: http://192.168.1.3/~dk79/PS3/
[Sat Dec 05 22:36:51 2009] [notice] caught SIGTERM, shutting down
[Sat Dec 05 22:37:25 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd: apr_sockaddr_info_get() failed for dk79.local
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
mod_bonjour: Skipping user 'dk79' - cannot read index file '/Users/dk79/Sites/index.html'.
[Sat Dec 05 22:37:25 2009] [notice] Digest: generating secret for digest authentication ...
[Sat Dec 05 22:37:25 2009] [notice] Digest: done
[Sat Dec 05 22:37:25 2009] [notice] Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 configured -- resuming normal operations
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
The permissions for your document root are off, which is what this means:
cannot read index file '/Users/dk79/Sites/index.html'.
Assuming you don't need any specific permissions in your site, say for upload directories and stuff like that, you could do a:
sudo chmod -R 755 ~/Sites
to correct this. Once you have done so restart Apache and check your log file for more errors.
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Apr 2000
Location: Athens, Greece
Status:
Offline
|
|
Did what you suggested but nothing really happened.
I'm not getting any more errors but still no go.
I seem to be able to login through my ps3 momentarily but when I hit refresh I'm losing the small icons and after a second refresh I get the can't connect to the server message.
Trying through my iphone I can't even login....
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
What port is the web server running as? Have you changed this from the default? What are your logs showing you now? What do you get when you run in your terminal:
ps aux | grep http
Is your OS X firewall turned on?
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Apr 2000
Location: Athens, Greece
Status:
Offline
|
|
I think I haven't changed the port the web server is running. I wouldn't know how to do that...
The only error I'm getting now is the following
[Sat Dec 05 23:38:39 2009] [error] [client 192.168.1.2] File does not exist: /Library/WebServer/Documents/dk79
When I run the command you mentioned (ps aux) I'm getting this
_www 365 0.0 0.0 2451620 1688 ?? S 11:18PM 0:00.01 /usr/sbin/httpd -D FOREGROUND
_www 361 0.0 0.0 2451620 804 ?? S 11:18PM 0:00.00 /usr/sbin/httpd -D FOREGROUND
root 360 0.0 0.2 2451620 9688 ?? Ss 11:18PM 0:00.28 /usr/sbin/httpd -D FOREGROUND
dk79 444 0.0 0.0 2435032 532 s000 S+ 11:40PM 0:00.00 grep http
_www 380 0.0 0.0 2451620 1648 ?? S 11:23PM 0:00.00 /usr/sbin/httpd -D FOREGROUND
And the firewall is turned off.
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Is there a folder called "dk79" inside /Library/WebServer/Documents? I'm assuming this is supposed to be whatever the web app is that you want to access?
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Apr 2000
Location: Athens, Greece
Status:
Offline
|
|
No there's no such folder.
Do you think I should create one just to see what happens?
Dk79 is my user name. The websharing address is 192.168.1.3/~dk79.
Do you think it needs that folder in order to access the website?
I'll create the folder just to see what will happen.
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Apr 2000
Location: Athens, Greece
Status:
Offline
|
|
Created the folder but nothing happened...
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
What are you trying to serve with your web server? What URL are you using to access your site?
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Apr 2000
Location: Athens, Greece
Status:
Offline
|
|
I'm using it to stream content to my ps3. And that is it!
The full url is 192.168.1.3/~dk79/ps3.
The ps3 folder is in the dk79/Sites folder.
Hope this clarifies things.
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
In that case, your ps3 folder should be in:
~/Sites/dk79/ps3
and you will need to verify that your user_dir Apache module is enabled. Alternatively, you can put ps3 into:
/Library/WebServer/Documents/dk79
and access this via this URL:
http://192.168.1.3/dk79/ps3
This assumes that the IP address of your machine is 192.168.1.3. Have you verified this? Is this IP static or dynamic? If dynamic, you should set it to a manual address or else tell router to reserve 192.168.1.3 for your Mac if its DHCP server supports this.
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Apr 2000
Location: Athens, Greece
Status:
Offline
|
|
Originally Posted by besson3c
In that case, your ps3 folder should be in:
~/Sites/dk79/ps3
and you will need to verify that your user_dir Apache module is enabled.
That's where the ps3 folder is.
How would I go about verifying that my user_dir Apache module is enabled? With the conf file thing?
If that's it then yes it's enabled.
In the other case, I wouldn't find it reasonable to put files in the /Library/WebServer/Documents/dk79.
It's more logical to have everything nice and tidy in my sites folder in my user account.
Especially when this thing worked a day ago.
I tried using media link just as quick alternative to watch a movie tonight but that doesn't work as well!! (it worked before). I'm getting a DLNA error (2101).
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Evidence would suggest that the userdir module is *not* enabled if you are using the URL you provided with the tilda (~) and getting error messages in your logs about not finding the folder in /Library/WebServer/Documents. The Apache configuration file is in /etc/httpd/httpd.conf.
You should have these lines in file, although not one after another...
LoadModule userdir_module libexec/httpd/mod_userdir.so
AddModule mod_userdir.c
<IfModule mod_userdir.c>
UserDir Sites
</IfModule>
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Apr 2000
Location: Athens, Greece
Status:
Offline
|
|
For some strange reason the router has lost the reserved web address for the computer which was causing all these problems.
Now that I've reserved the address again everything is working properly...
Thanks for reminding me to check it out.
Man you saved me from hours and hours of messing about!!!
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
No problem, I guess I should have clued in that the Apache error messages you were getting were just startup errors, and not access errors.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|