![]() |
PHP/MySql/PHPNuke Woes
Not sure if this belongs in this forum or in the networking one, but here goes.
I have just installed MySQL and PHP onto my Mac (MacOS 10.3.4), I've sucesfully installed PHP Nuke, and I can see it just fine on my local machine, I can log into it, so far so good. BUT when I try and access it from the another machine (on a different network) it says that it could not connect to percy.local (Yes my Mac is called Percy, don't ask why!). My Main site works fine and is browseable by any internet user, so I know that is set up properly. It's the home.mydomain.com/nuke/html which should go to the PHPNuke page I have set up that is causing me problems. How do I alter my configuration so that it will be browseable by users on the internet (eg:- home.mydomain.com). Many thanks, and sorry if this all sounds daft, but it's my first shot at installing all this from scratch, and I'm impressed that I have got this far. Just need a little push to get the final bit working! |
What are you typing into your local browser to view your nuke site?
|
192.168.0.3/nuke/html is what I am typing.
|
And your nuke installation sits in "/Library/WebServer/Documents/nuke/html" and not in "~/Sites" ?
Another question, have you changed settings of your firewall? |
Yeah it does, is that what is causing the problem?
|
No, not at all. This *IS* the right place. But you have not changed anything about your firewall?
|
I don't use the built in firewall, I'm behind a router anyway, so nothing has changed. I can't understand why the rest of my site works but this doesn't.
|
Quote:
|
I'm not sure what the IP address is, it's actually my mobile phone that I view it on (and yes it can see the rest of my site without a problem)
If I connect via another machine on the same network (192.168.0.2) that can view my site, but not the PHP Nuke portion. |
Quote:
|
I'm not an expert in terminal but I think it is 664? Anyway, it's the same as the default permissions on the main site.
|
Quote:
|
OK, I've done that on the directories, and did chmod 644 *.* for the files (I hope that has had the desired effect?) Will let you know when I can get someone to test it properly. I still can't connect to it from my phone, or via the other PC on the network. I don't think either of these options gives a reliable test. Will post an update as soon as I can, but thankyou for your help so far!
|
For some reason, when browsing the /nuke/html directory, you need to add the index.php to the end of it. I don't have this problem with my main site (which is hosted on a linux server) so I'm not sure why it affects Mac OS in this way, but one way or another the problem is (sorta) solved. Ideally I would like it if it worked in the same way, but I guess this will do! Many thanks for all your help and advice.
|
Quote:
The index.php thing has do with how apache has been set up on Macs by Apple. Locate your config for apache - which is: /etc/httpd/httpd.conf - make a backup and then try to find the following line with your favourite editor (pico or vi): Code:
DirectoryIndex index.html index.php |
OK, will that resolve the need for index.php at the end? If so please can you have a look and see if you can access my site? I've stopped and restarted the web sharing as well through the control panel after I made the changes (not sure if that was needed or not)
|
Quote:
|
Many thanks, the main site is home.iainbroughton.com and the PHP bit is home.iainbroughton.com/nuke/html/index.php (but hopefully now you won't need the index.php bit.)
|
Quote:
|
Thank you! :)
Thanks once again for all your time and kind help. Iain |
Oh dear, a new can of worms has opened, I get the message "There seems to be a problem with the MySQL server, sorry for the inconvenience.
We should be back shortly" when trying to access the nuke part of my site, but the SQL seems to be up and running (I've tried stopping and restarting it, rebooting etc...) I'm all out of ideas now (short of a re-install which I REALLY don't want to do!) |
Problem solved, something had killed the database, but all is working well now!
|
| All times are GMT -5. The time now is 01:14 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.