The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Applications (http://hintsforums.macworld.com/forumdisplay.php?f=5)
-   -   PHP/MySql/PHPNuke Woes (http://hintsforums.macworld.com/showthread.php?t=24739)

ibroughton 06-13-2004 02:47 AM

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!

ulrichm 06-13-2004 04:43 PM

What are you typing into your local browser to view your nuke site?

ibroughton 06-14-2004 01:51 AM

192.168.0.3/nuke/html is what I am typing.

ulrichm 06-14-2004 02:36 AM

And your nuke installation sits in "/Library/WebServer/Documents/nuke/html" and not in "~/Sites" ?
Another question, have you changed settings of your firewall?

ibroughton 06-14-2004 02:41 AM

Yeah it does, is that what is causing the problem?

ulrichm 06-14-2004 02:45 AM

No, not at all. This *IS* the right place. But you have not changed anything about your firewall?

ibroughton 06-14-2004 02:57 AM

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.

ulrichm 06-14-2004 03:28 AM

Quote:

Originally Posted by ibroughton
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

What is the IP address of the other machine? Is it also 192.168.0.x?

ibroughton 06-14-2004 12:34 PM

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.

ulrichm 06-14-2004 03:43 PM

Quote:

Originally Posted by ibroughton
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.

What are the permissions on the nuke and on the html folder?

ibroughton 06-15-2004 01:41 AM

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.

ulrichm 06-15-2004 02:26 AM

Quote:

Originally Posted by phpnuke.org
The right permissions for PHP-Nuke are the following (for the base permissions, see Section 23.4.4 in the context of security):
  • Files: 644
  • Directories: 755

Only directories that require upload access (like the forum's avatar folder, if you allow avatar upload) should be set to 777 and files that get data written to them by the program should be set to 666.

Above is from the PHPNuke.org website. Please check if your folders, especially html and nuke have permissions 755. If you need to change the permissions, you can change them with chmod 755 foldername orchmod 644 filename.

ibroughton 06-15-2004 02:48 AM

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!

ibroughton 06-15-2004 11:38 AM

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.

ulrichm 06-15-2004 11:49 AM

Quote:

Originally Posted by ibroughton
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.

Good that part of it is solved.
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
If it is commented out or does not contain index.php, then make it look like above.

ibroughton 06-15-2004 02:35 PM

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)

ulrichm 06-15-2004 04:50 PM

Quote:

Originally Posted by ibroughton
If so please can you have a look and see if you can access my site?

Sure, give me your site's address. Either post it or send me a PM.

ibroughton 06-15-2004 04:52 PM

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.)

ulrichm 06-15-2004 04:59 PM

Quote:

Originally Posted by ibroughton
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.)

Nice Site! It works both ways (with and without index.php). I am glad it works now. Good luck with the rest of the site.

ibroughton 06-16-2004 12:56 AM

Thank you! :)
Thanks once again for all your time and kind help.

Iain

ibroughton 08-18-2004 03:26 AM

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!)

ibroughton 08-20-2004 02:50 AM

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.