alexville Posted February 13, 2011 Share Posted February 13, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/227533-php-parsing-error/ Share on other sites More sharing options...
alexville Posted February 15, 2011 Author Share Posted February 15, 2011 Bump. Please help anyone. Quote Link to comment https://forums.phpfreaks.com/topic/227533-php-parsing-error/#findComment-1174702 Share on other sites More sharing options...
Infinitive Posted February 15, 2011 Share Posted February 15, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/227533-php-parsing-error/#findComment-1174715 Share on other sites More sharing options...
alexville Posted February 15, 2011 Author Share Posted February 15, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/227533-php-parsing-error/#findComment-1174723 Share on other sites More sharing options...
Infinitive Posted February 15, 2011 Share Posted February 15, 2011 Well I didn't expect that! Just so we're not overlooking anything, you're bouncing the web server after each change, right? Quote Link to comment https://forums.phpfreaks.com/topic/227533-php-parsing-error/#findComment-1174734 Share on other sites More sharing options...
alexville Posted February 15, 2011 Author Share Posted February 15, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/227533-php-parsing-error/#findComment-1174737 Share on other sites More sharing options...
Infinitive Posted February 15, 2011 Share Posted February 15, 2011 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? Quote Link to comment https://forums.phpfreaks.com/topic/227533-php-parsing-error/#findComment-1174738 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.