Jump to content

PHP Parsing Error :'(


Recommended Posts

Hello,

 

I'm so mad at PHP right now... I'm trying to run a php shell file from SSH but when I run it I get thrown this error from PHP:

 

root@server1 [/home/alexvill/www/3.0/socketchat]# ./socketShell.php
PHP:  Error parsing /usr/local/lib/php.ini on line 811

 

On line 811 of that php.ini file this is what occurs:

 

url_rewriter.tags = a=href,area=href,frame=src,input=src,form=,fieldset=

 

I have no idea what is wrong with this line. I have added quotes to it and that causes my whole site to get 500 errors.

 

If anyone can help me out I would be so grateful!

 

Here are the lines before that and after:

 ; session.use_trans_sid: (ini file field description not available)
session.use_trans_sid = 0

; url_rewriter.tags: (ini file field description not available)
url_rewriter.tags = a=href,area=href,frame=src,input=src,form=,fieldset=

; sybase.allow_persistent: (ini file field description not available)
sybase.allow_persistent = On

 

 

 

 

 

Link to comment
Share on other sites

Not an expert but any unbalanced assignment that goes "something=," is generally asking for trouble.

 

Here's my own line, try using it:

 

url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

 

And if it's still a problem, just comment the line out with a semicolon at the front.  It only matters anyway if you're using session IDs but not using cookies.

Link to comment
Share on other sites

Not an expert but any unbalanced assignment that goes "something=," is generally asking for trouble.

 

Here's my own line, try using it:

 

url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

 

And if it's still a problem, just comment the line out with a semicolon at the front.  It only matters anyway if you're using session IDs but not using cookies.

 

Thank you,

Well I tried what you suggested and I still receive the same error as before. And the weridest part is when I try to put quotes around the a=href,area=href,frame=src,input=src,form=fakeentry part like you suggested it totally makes every PHP page on my website Error 500. Even commenting out that line makes every page Error 500! This is insane :C

Link to comment
Share on other sites

Well I didn't expect that!

 

Just so we're not overlooking anything, you're bouncing the web server after each change, right?

 

Yes. I tried both restarting apache through cPanel and then restarting the whole VPS. It still spits out an Error 500 error after changing that one line.

 

I'm so confused.

Link to comment
Share on other sites

http://support.modwest.com/content/5/313/en/how-do-i-use-the-url_rewritertags-setting-for-php.html

 

The url_rewriter.tags setting is very picky. You must have the double quotes, and it is best to remove any spaces between the commas and tag atribute pairs. For example the following works well: "a=href,area=href,frame=src,input=src,form=fakeentry,fieldset=". Remember to include the double quotes and not to include any spaces.

 

So I was wrong about the unbalanced assignment being a problem but it really does want you to use quotes.  And if both quotes and commenting it out have separately given the same result, we might have to consider something else being at fault.  Has your error_log revealed any new information? 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.