Page 1 of 1

Ctracker and /dh/cgi-system/php.cgi

PostPosted: Wed Sep 26, 2007 4:45 pm
Author: Goofman
Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: Yes
Your knowledge: Advanced Knowledge
Board URL: http://www.rangerforums.com/test

PHP Version:
MySQL Version:


What was done before the problem appeared?
Upgrading From 140 to 141


What was done to try to solve the problem?
Searching <img>



De.scription and Message

Just going thru some of the ctracker logs and changing cade and for the life of me I can't find this file. Anyone know where it is? I don't have a dh folder at all in my root, which is where I assume it should be.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Script-Filename: /dh/cgi-system/php.cgi
----------------

Request-Method: POST

Matching rule: and
In variable: coppa_mail

Matching rule: into
In variable: coppa_mail

Matching rule: mail
In variable: coppa_mail

Matching rule: _php
In variable: logo_image

Matching rule: _php
In variable: logo_image

Possible solution:
------------------

#
#-----[ OPEN ]------------------------------------------
#
/dh/cgi-system/php.cgi

#
#-----[ FIND ]------------------------------------------
#
define('IN_PHPBB', 1);

#
#-----[ AFTER, ADD ]------------------------------------------
#
define('CT_SECLEVEL', 'MEDIUM');
$ct_ignorepvar = array('coppa_mail','logo_image');

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Re: Ctracker and /dh/cgi-system/php.cgi

PostPosted: Wed Sep 26, 2007 6:11 pm
Author: CaNNon
Warning: Unexpected character in input: '' (ASCII=15) state=1 in /usr/local/dh/cgi-system/php.cgi on line 1318

Warning: Unexpected character in input: '' (ASCII=1) state=1 in /usr/local/dh/cgi-system/php.cgi on line 1318

Warning: Unexpected character in input: ' in /usr/local/dh/cgi-system/php.cgi on line 1318

Warning: Unexpected character in input: ' in /usr/local/dh/cgi-system/php.cgi on line 1318

Parse error: syntax error, unexpected T_STRING in /usr/local/dh/cgi-system/php.cgi on line 1319


Think you should open a ticket with your host, it's there I can run it. I would assume they have it hidden if you can't see the folder/file.

Re: Ctracker and /dh/cgi-system/php.cgi

PostPosted: Thu Sep 27, 2007 3:25 am
Author: Master Dwarf
I get the same thing. You have to be intuitive when you get that line. So if you are mssing with links and you're trying to debug, then the file you need to tweak code in is probably links.php. Not sure this helps, but I didn't want you to think you're the only one that got this code and said "what the hell..."

Re: Ctracker and /dh/cgi-system/php.cgi

PostPosted: Thu Sep 27, 2007 3:59 am
Author: CaNNon
Check this resource guys.

[url=http]http://hoohoo.ncsa.uiuc.edu/cgi/intro.html[/url]

Re: Ctracker and /dh/cgi-system/php.cgi

PostPosted: Fri Sep 28, 2007 6:01 am
Author: Goofman
Ok I found out that I could copy the file using shell to get the file into my root.

Code: Select all
 Prepare your site file environment  x.com = domains web-root folder$HOME = /home/username      1. Create a cgi-bin folder in the web-root of your site     mkdir $HOME/x.com/cgi-bin  [edit] Copy the php .cgi and .ini files       * PHP5     cp /dh/cgi-system/php5.cgi $HOME/x.com/cgi-bin/php.cgi   cp /etc/php5/cgi/php.ini $HOME/x.com/cgi-bin/php.ini       * PHP4     cp /dh/cgi-system/php.cgi $HOME/x.com/cgi-bin/php.cgi   cp /etc/php/cgi/php.ini $HOME/x.com/cgi-bin/php.ini    [edit] Set up the .htaccess file  The .htaccess file is located in your web-root     $HOME/x.com/.htaccess  Add this to run .php files with php cgi     AddHandler php-cgi .php   Action php-cgi /cgi-bin/php.cgi    [edit] Set the correct permissions     chmod 644 $HOME/x.com/.htaccess   chmod 755 $HOME/x.com/cgi-bin   chmod 750 $HOME/x.com/cgi-bin/php.cgi   chmod 644 $HOME/x.com/cgi-bin/php.ini    You can now modify $HOME/x.com/cgi-bin/php.ini to your heart's content!


Now when I try to open this file to do the edit I get funky characters in wordpad and Notepad just freezes up when I try it. I got a perl editor but it only displays about 6 characters in the file. I read that I should try to edit via ssh but I'm not proficient in what to do there. Anyone got an idea?

Re: Ctracker and /dh/cgi-system/php.cgi

PostPosted: Fri Sep 28, 2007 6:18 am
Author: CaNNon
Try this. [url=http]http://www.scintilla.org/SciTE.html[/url]

I use it for all my editing, it has drawbacks.. but it knows most rule sets and will pick for you.

Download the file unzip to a folder, create a short cut to scite.exe and your ready. <img>

Re: Ctracker and /dh/cgi-system/php.cgi

PostPosted: Fri Sep 28, 2007 6:49 am
Author: Goofman
That editor doesn't make it readable to me <img>
Just to give you an idea of what I'm looking at...
[flash=,:1nfjak6f]http://www.rangerforums.com/code.jpg[/flash:1nfjak6f]
Â

Re: Ctracker and /dh/cgi-system/php.cgi

PostPosted: Fri Sep 28, 2007 10:40 am
Author: CaNNon
I don't think that would be a .script, looks like it's compiled. You can't view/edit or work with it in any except as your host intended.

you sure your looking at the php.ini file cause the would be the config?

PostPosted: Fri Sep 28, 2007 12:13 pm
Author: Goofman
It said to open the php.cgi file.

I haven't looked at the ini file. I will go look.

PostPosted: Fri Sep 28, 2007 12:34 pm
Author: Goofman
Just as a side note this box pops up when I try to change the default style via General Admin. It doesn't pop up when I change it via extreme styles.

Re: Ctracker and /dh/cgi-system/php.cgi

PostPosted: Fri Sep 28, 2007 4:29 pm
Author: CaNNon
I think you may have read it to fast,
You can now modify $HOME/x.com/cgi-bin/php.ini to your heart's content!

PostPosted: Sat Sep 29, 2007 7:18 pm
Author: Goofman
Yea I know that part but the ctracker code had me edit php.cgi

PostPosted: Sun Sep 30, 2007 9:10 am
Author: Master Dwarf
"Goofman";p="28641" wrote:Yea I know that part but the ctracker code had me edit php.cgi
no no no...You don't go by that unless it's a php file and, if i'm not mistaken, the php.ini file needs to be edited so that it produces an intuitive error and NOT cgi.