Web Hosting Talk







View Full Version : PHP Coin Help


Hughra
03-25-2004, 09:51 AM
When I install it i get Atrooy.php cannot be found at usr/local/apache/htpdocs. I installed it in the root directory, and the phpcoin direectory, along with the public_html directory, all the files are chmoded to 777. I even created a htpdocs folder in 2 diffent places with the file in it, and it still wont werk.

Executive
03-25-2004, 10:13 AM
I've never used PHP Coin but off the top of my head did you go through the config.php and make sure all settings are correct?

Hughra
03-25-2004, 10:15 AM
i did that...

Executive
03-25-2004, 10:17 AM
I believe they may have their own forum, might be another good place to ask.

middleground
03-25-2004, 12:16 PM
Originally posted by Executive
I believe they may have their own forum, might be another good place to ask.

That would be the best place to ask.... :)

As well as provide some more information as far a server OS, local install, etc...

The error is stating one directory structure /htpdocs/ and you're creating /public_html/ directories....???

All it is looking for is that the file be in the $_SERVER["DOCUMENT_ROOT"] location. If that value returned does not represent the true path of the site, then you've got other issues.

johonbravo
03-25-2004, 08:24 PM
I had no problems installing...and Their forum is VERY helpful. They answered all my questions 100%...but you may have to wait a couple hours as its not super active...But they always answered my questions. great support.

JamesCC
03-26-2004, 12:02 AM
Howdy there middleground


Did you edit the atroot.php?

Look for this line.

$_PACKAGE_DIR = 'your/phpcoin/directory/';

Plus this file has to be in the root directory not the public_html directory if you do not have access to the httpdocs directory then it aint gunna work .......... ;)

middleground
03-26-2004, 06:45 AM
OK- first an explanation:
The $_PACKAGE_DIR setting is relative to the location of the atroot.php file and does nothing in locating that file. This is all clearly explained in the file. As I noted the $_SERVER["DOCUMENT_ROOT"] parameter is used to locate the atroot.php file (which a simple look at the phpinfo.php will let you know what that setting is- but generally it is wherever you would plop the site index file. Typing in http://www.yourdomain.com/atroot.php should load a blank page, not a 404). This is all done so that if installed in default /phpcoin/ folder in the main site, absolutely nothing needs to be done as far as config for paths/urls. If one changes the installed directory to /fred/ or something, then the $_PACKAGE_DIR in changed to /fred. All pretty straight forward and covers 99.9% of all installs...

For the remaining intalls- there are (6) files in which the $_SERVER var is used. To make it work, simple edit these files and replace with a hardcoded path. The files are in at least a few post on the phpcoin forum.


Second- I have yet to see a setup that has both a /public_html/ AND a /httpdocs/ folder. From what I know this is generally the root directory and the specific name is defined by the control panel and server config....

Now the fact that one does not have access to the root folder of the domain is not really a phpcoin issue, but more of one of lack of control of your setup. Sorry but phpcoin assumes you at least can figure out the root directory and have access to it.

Not realy rocket science here....

NexDog
03-26-2004, 07:49 AM
Just can't shake the old spectre loose, eh MG? ;)