Posted on: 12/20/03 04:37pm
By: Anonymous (Tocotoco)
The paths are fundamental. It surprises me how difficult it is to find help on this.. I have solved 10 plus errors on the install for 1.3.8-1sr3 but the one that follows, I coulnd not, I need your help as to WHICH FILE NEEDS FIXING AND HOW.
Warning: main(/home/httpd/vhosts/homeya.com/httpdocs): failed to open stream: Success in /home/httpd/vhosts/homeya.com/httpdocs/public_html/lib-common.php on line 69
Fatal error: main(): Failed opening required '/home/httpd/vhosts/homeya.com/httpdocs' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/homeya.com/httpdocs/public_html/lib-common.php on line 69
Re:Warning: main failed to openpublic_html/lib-common.php on line 69
Posted on: 12/20/03 04:47pm
By: Dirk
I just answered this
here[*1] .
It surprises me how difficult it is to find help on this.
Excuse me? It's covered in the
FAQ[*2] , for example. Not to mention the postings all over the installation forum ...
In your case, you seem to have missed this comment just above the one line you changed in lib-common.php:
* Make sure to include the name of the config file,
* i.e. the path should end in .../config.php
bye, Dirk
Re:Warning: main failed to openpublic_html/lib-common.php on line 69
Posted on: 12/20/03 04:58pm
By: Anonymous (Tocotoco)
Thank you for your repplies. Not really the file lib.common.php was all along like this.
require_once('/home/httpd/vhosts/homeya.com/config.php' );
Now this is happening after going through al mysql stuff and just prior to success. Whould this have anything to do with the location of "ADMIN"?. In my case is under the public_html directory. (I still do not understand why you need httpdocs AND PUBLIC_HTM one after the other)
Thank you again
Re:Warning: main failed to openpublic_html/lib-common.php on line 69
Posted on: 12/20/03 05:14pm
By: Dirk
[QUOTE BY= Tocotoco] (I still do not understand why you need httpdocs AND PUBLIC_HTM one after the other)[/QUOTE]
Actually, you shouldn't. There's a lengthy paragraph in the installation instructions trying to explain that "public_html" is just a popular name for the public directory of a website (also called the document root) and that it may have a different name for you (e.g. "htdocs" or, in your case, "httpdocs").
So what you probably should do is to move everything from Geeklog's public_html directory into your httpdocs directory and fix the paths in config.php (notably $_CONF['path_html']) accordingly.
bye, Dirk
Warning: main failed to openpublic_html/lib-common.php on line 69
Posted on: 02/22/04 12:29am
By: jonimueller
Dirk, I'm bewildered by one thing: What is the specific reason to separate some of the folders/files into the non-public area? Is it a security issue? I am using a Fantastico-installed version of Geeklog. Everything was dumped into the directory I specified (http://www.ro-jo.net/geeklog/ and everything runs fine, but I am worried that the site can be hacked if there are items in there that shouldn't be viewed.
When I tried moving the "non public_html" folders to geekadmin (since my web host already had an admin directory), it hosed the site and I had to reinstall.
What was I doing wrong? And what is the harm in leaving everything in the public_html directory? (I'm not being facetious here, I genuinely want to know.)
My site is
here[*3] .
Thanks!
Joni
Warning: main failed to openpublic_html/lib-common.php on line 69
Posted on: 02/22/04 01:17am
By: Blaine
Any file in the public directory space is accessible to anyone and most likely readable. You really only need files in this directory that need to be accessed by a user directly by URL.
The web server can then include other PHP code via a file name and that can be outside the public space.
The files are separated this way to allow you to isolate the system files from the public files.
If all your files are in the public accessible directory I may be able to write a program and read your config.php. And that has your database username and password in it.
Warning: main failed to openpublic_html/lib-common.php on line 69
Posted on: 02/22/04 11:25am
By: vegeta9870
if you want to fix that problem, move config.php to a non-public directory. Then open config.php change the location of the $_CONF['path'] to /path/to/geeklog/(where you put config.php)
Then open lib-common.php and change:
include('/path/to/geeklog/') to where config.php is.
Warning: main failed to openpublic_html/lib-common.php on line 69
Posted on: 02/22/04 06:04pm
By: jonimueller
Thanks, guys, for your answer. This helps me out. I'll go ahead and do that this weekend so I will sleep a bit better!
I recall when I first tried to install geeklog on another site back in Nov. 2002, I did attempt to isolate the directories but I couldn't get geeklog to run ... or it did run, but with great difficulty. I now attribute that in part to the fact that I knew even less about what I was doing than I do now (if you can fathom that!).
Again, thanks a bunch. I'm really enjoying this program!