View Full Version : CMS Hack install help
s17e1
01-14-2005, 11:50 AM
First let me apologize for my ignorance :P
I'm having a bit of trouble installing this script. i haven't even been able to run it fully yet:
Warning: main(classes/mysql.php): failed to open stream: Permission denied in /home/black-or/public_html/e107/CMS_Forum_Hack/cms_forum_hack.php on line 76
Fatal error: main(): Failed opening required 'classes/mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/black-or/public_html/e107/CMS_Forum_Hack/cms_forum_hack.php on line 76
I would appreciate any insight yall might have. I chmod'ed all the files I thought needed access.
Any ideas?
Thanks!
Patrick
01-14-2005, 05:07 PM
You did upload the entire CMS_Forum_Hack folder didn't you?
s17e1
01-14-2005, 05:55 PM
As far as i'm aware, yes I did. I extracted all the contents, set chmod and tried to run the install.php. That correct?
I haven't seen any kind of installation prompt.
Patrick
01-14-2005, 06:24 PM
Can you confirm that CMS_Forum_Hack/classes/mysql.php is on your server (the other files it complains about as well)?
s17e1
01-14-2005, 10:10 PM
Here is my classes directory:
/ public_html / e107 / CMS_Forum_Hack / classes / (Current Folder)
cms-e107-0.616.php 22 k 600
cms-phpnuke-7.3.php 16 k 600
file_access.php 3 k 600
forum-ibf-1.3.php 17 k 600
mysql.php 1 k 600
Patrick
01-15-2005, 10:29 AM
CHMOD everything in your classes folder to 0644.
s17e1
01-15-2005, 01:35 PM
Looks like the same error:
Warning: main(classes/mysql.php): failed to open stream: Permission denied in /home/black-or/public_html/e107/CMS_Forum_Hack/cms_forum_hack.php on line 76
Fatal error: main(): Failed opening required 'classes/mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/black-or/public_html/e107/CMS_Forum_Hack/cms_forum_hack.php on line 76
Classes folder: 700
cms-e107-0.616.php 22 k 644
cms-phpnuke-7.3.php 16 k 644
file_access.php 3 k 644
forum-ibf-1.3.php 17 k 644
mysql.php 1 k 644
CMS_Forum_Hack folder: 755
classes 700
GPL.txt 15 k 600
README.txt 5 k 600
cms_forum_hack.php 30 k 777
install.php 2 k 777
install_uninstall_files.zip 2 k 600
uninstall.php 4 k 777
I don't have the faintest idea :huh:
s17e1
01-15-2005, 04:37 PM
I guess it's this line from cms_forum_hack.php
require_once($CMS_FORUMS_HACK['hack']['abs_path'] . "classes/mysql.php");
I also tried running the uninstall.php but i get the same error.
Patrick
01-15-2005, 05:19 PM
Try opening up cms_forum_hack.php and setting the script's absolute path manually. Do not forget the trailing slash.
s17e1
01-15-2005, 06:47 PM
Hmmm, again pardon my ignorance :)
// Absolute Path to this hack
// Visit the included abs.php in a browser for help determining this value.
$CMS_FORUMS_HACK['hack']['abs_path'] = "";
// Absolute Path to your CMS script
$CMS_FORUMS_HACK['cms']['abs_path'] = "";
// Absolute Path to your Forums script
$CMS_FORUMS_HACK['forum']['abs_path'] = "";
// URL to this hack
// With trailing slash
$CMS_FORUMS_HACK['hack']['hack_url'] = "";
// URL to your cms
// With trailing slash
$CMS_FORUMS_HACK['cms']['cms_url'] = "";
// URL to your forums
// With trailing slash
$CMS_FORUMS_HACK['forum']['forum_url'] = "";
$CMS_FORUMS_HACK['forum']['user'] = "";
$CMS_FORUMS_HACK['forum']['pass'] = "";
$CMS_FORUMS_HACK['forum']['name'] = "";
$CMS_FORUMS_HACK['forum']['host'] = "";
$CMS_FORUMS_HACK['forum']['prefix'] = "";
// Forum type
$CMS_FORUMS_HACK['forum']['type'] = "ibf-1.3";
$CMS_FORUMS_HACK['cms']['user'] = "";
$CMS_FORUMS_HACK['cms']['pass'] = "";
$CMS_FORUMS_HACK['cms']['name'] = "";
$CMS_FORUMS_HACK['cms']['host'] = "";
$CMS_FORUMS_HACK['cms']['prefix'] = "";
// CMS type
$CMS_FORUMS_HACK['cms']['type'] = "phpnuke-7.3";
// Modifications already installed
// Leave this set to false. The script will change it when mods have been installed.
$CMS_FORUMS_HACK['hack']['config_installed'] = false;
I need to manually put in the path to what? Everything? Or just to the "CMS Script" and "Forum Script". Also, what scripts are both of those refering too?
Sorry, I'm pretty new at this.
Patrick
01-16-2005, 01:13 PM
$CMS_FORUMS_HACK['hack']['abs_path'] = ""; is what you would want to set.
You will need to set it to your absolute path to the script folder, including the trailing slash.
s17e1
01-16-2005, 02:02 PM
Tried many variations of:
$CMS_FORUMS_HACK['hack']['abs_path'] = "http://www.black-orchid/e107/CMS_Forum_Hack/";
came up with this:
Warning: main(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/black-or/public_html/e107/CMS_Forum_Hack/cms_forum_hack.php on line 76
Warning: main(http://www.black-orchid/e107/CMS_Forum_Hack/install.php/classes/mysql.php): failed to open stream: Permission denied in /home/black-or/public_html/e107/CMS_Forum_Hack/cms_forum_hack.php on line 76
Fatal error: main(): Failed opening required 'http://www.black-orchid/e107/CMS_Forum_Hack/install.php/classes/mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/black-or/public_html/e107/CMS_Forum_Hack/cms_forum_hack.php on line 76
thanks
Patrick
01-16-2005, 06:13 PM
That is not your absolute path, that is your URL.
place the following into a file called abspath.php and put it into your forum-news folder. It should give you your absolute path.
echo dirname($_SERVER['SCRIPT_FILENAME']);
s17e1
01-16-2005, 06:58 PM
Oh i see what you mean now. Lol sorry, i'm really a newbie :)
Didn't change anything, hmm.
Warning: main(/home/black-or/public_html/e107/CMS_Forum_Hack/classes/mysql.php): failed to open stream: Permission denied in /home/black-or/public_html/e107/CMS_Forum_Hack/cms_forum_hack.php on line 76
Fatal error: main(): Failed opening required '/home/black-or/public_html/e107/CMS_Forum_Hack/classes/mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/black-or/public_html/e107/CMS_Forum_Hack/cms_forum_hack.php on line 76
Patrick
01-16-2005, 08:26 PM
I have run out of ideas. It doesn't make any sense.
The error is reporting that your file isn't there or that it doesn't have access to it. You say yourself that it is indeed there.
I am sorry, I am out of answers. You may want to contact your webhost. They will probably be able to help you with this problem better than I can.
s17e1
01-16-2005, 10:27 PM
Ok, Thanks for your help.
I'll see what else I can come up with.
s17e1
01-16-2005, 11:06 PM
Doh! Well I deleted the directory and extracted a new one. And it worked! I got the pretty gui script and filled in my info.
I put in the wrong db name and got an error, so I went back and fixed it. Tried to go forward again and got the same error.
I couldn't get the error to go away so I tried deleting the directory again. Now all I get is a 404 Forbidden.
I need sleep or some more coffee :P I just seem to have the worst luck.
heyboy
01-20-2005, 04:40 PM
Does this transfer the user posts/threads from e107 forum to IPB forum?!?!
Btw
have any1 tested this hack with E107 0.617?
Patrick
01-20-2005, 05:44 PM
To your first question: no.
To your second question: I haven't.
heyboy
01-23-2005, 07:34 AM
any future idea to make it transfer thread/posts?
Patrick
01-23-2005, 10:04 AM
That is a clever idea, but if I were to do something like that it wouldn't be part of this hack. It would be a separate script altogether.
Right now I am in the process of completely rewriting the script in order to:
1. Incorporate redirection
2. Separate installation into cleaner / easier process
3. Create better structured code for faster updates and deployment.
Not sure when I will finish. I have the e107 side coded but I do not have the backend, PHP-Nuke, or IPB fully developed yet.
Gundumfx
08-01-2006, 03:58 PM
i believe the reason for this is the underscores you have in the absolute path, rename the hack folder to a name with no spaces then reupload everything and repeat the process, then once you are done filling everything in make sure ALL your information is correct the first time around
you should be fine from there
Polarny
08-07-2006, 06:40 PM
I have few problems with using this Hack. Everything is installing without errors. When I go cross my site, there is now problem. But logging in doesn't work for e107.
It means, that when I try to log in I only log in to IPB - not to e107.
First this I saw is that I have to install this to CMS_Forum_Hack. When I install to other directory I found in few places, that there is path with hardcoded "CMS_Forum_Hack". So second time I installed to right folder (CMS_Forum_Hack) but nothing change. The same.
I was looking for any solition, but nothing. One thing comes to my mind - can you tell me if I change cookie name from default to my own it can be that? I cannot check it because simply I don't remember default coockie name (if can be found in Settings->Security & Protection - if can someone post default cookie here it will be helpfull to check it).
I am using IPB 2.1.6 and e107 0.7.5 on:
- Apache2,
- PHP5,
- MySQL 5.
Any idea what is wrong (if no cookie)? Any idea how to try tracking this error?
Patrick
08-07-2006, 08:07 PM
This is an OLD thread. Please use the new sticky thread to report problems related to the new files (I actually can't figure out if you are using the new files or not since you posted in this thread).
Just post in the new thread again and I will take a look at it. Make sure you are using the sticky thead's files as well.
CLOSING TOPIC.
Powered by vBulletin™ Version 4.0.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.