Home > Php Error > Php Error Parsing /usr/local/zend/etc/php.ini

Php Error Parsing /usr/local/zend/etc/php.ini

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed File(/usr/local/apache/htdocs/example.com/private/modules/real_estate/config/condos.php) is not within the allowed path(s): (.:/tmp/:/var/tmp/:/usr/local/apache/htdocs/example.com/images/:/home/example/www/images/) in /usr/local/apache/htdocs/example.com/private/cron/update.php on line 43 I do not get this error running the script in a browser, which is confusing to me - Board index The team • Delete all board cookies • All times are UTC [ DST ] Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group Log in or Sign This is what is in the console (I'm sure the correct script is executing, and all it does for now is check if a required file exists): Here is the line Check This Out

Stay logged in Toggle Width Home Contact Us Help Terms and Rules Privacy Policy Top Company About Us Our Leadership Giving Back Contact Become a Partner Careers Products cPanel Features WHM Thanks a lot. –Wesley Murch Jul 13 '11 at 20:32 2 I just wanted to pitch in that if you're using php via command-line as a server scripting language (i.e Human vs apes: What advantages do humans have over apes? What is the main spoken language in Kiev: Ukrainian or Russian?

Code: url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset=" Still getting a parse error. Example #2 Getting a syntax error when using double quotes $ php -r "$foo = get_defined_constants();" PHP Parse error: syntax error, unexpected '=' in Command line code on line 1 Parse php apache command-line share|improve this question edited Jul 13 '11 at 18:54 asked Jul 13 '11 at 17:50 Wesley Murch 67.3k24128178 1 Are you using the same php.ini file for The PHP start and end tags () are not needed and will cause a parse error if present.

This is a known problem where it overwrites your php.ini with a file like you have now. NightStorm, Apr 20, 2006 #5 jprice New Member Messages: 4 well I semmed to fix the php.ini file I think, but zend still isn't working on my server [[email protected] /]# apachectl Has the acronym DNA ever been widely understood to stand for deoxyribose nucleic acid? One way to do that is to copy your current php.ini file to another directory - say into "/usr/local/Zend/etc/php_cli/php.ini" or a more convenient directory.

chillax, Apr 20, 2006 #4 NightStorm Guest 0 Zend uses a symlink for php.ini. This option won't find fatal errors (like undefined functions). Contact Us Help Weekly Digest Home Top RSS Terms and Rules Passing a filename with an absolute path will not use the system's library search path.

If PHP is not working correctly, it is advisable to use the command php -i and see whether any error messages are printed out before or in place of the information Use -- args when first argument starts with - or script is read from stdin --ini Show configuration file names --rf Show information about function . --rc Show information Available as of PHP 5.4.0. --ri --rextinfo Show the configuration information for the given extension (the same information that is returned by phpinfo()). They should likely be at the bottom of the file.

I suggest doing: mv /etc/php.ini /etc/php.ini.bad and then mv /etc/php.ini.bak (or whatever plesk backed it up as) /etc/php.ini Look at the date to see which ini backup file was modified when https://talk.plesk.com/threads/zend-problem-after-upgrade.65162/ Since the variable $foo is unlikely to be defined, it expands to nothing which results in the code passed to PHP for execution actually reading: $ php -r " = get_defined_constants();" I suggest doing: mv /etc/php.ini /etc/php.ini.bad and then mv /etc/php.ini.bak (or whatever plesk backed it up as) /etc/php.ini Look at the date to see which ini backup file was modified when DirectAdmin 2013 JBMC Software current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list.

Added in PHP 5. -R --process-code PHP code to execute for every input line. http://newmexicosupercomputer.com/php-error/php-error-parsing-usr-local-lib-php-ini-on-line-788.html you can try this: rm ZendOptimizer-3.3.3-linux-glibc23-x86_64.tar.gz ./build zend Reply With Quote 03-27-2011,09:22 PM #3 seachen View Profile View Forum Posts Verified User Join Date Feb 2007 Posts 486 [[email protected] ~]#php -v the actual path should be /usr/local/Zend/etc/php.ini, which Plesk did not understand (go figure), so it deleted the symlink holder at /etc/php.ini and created a simplictic and useless one in it's place. More information: This is my CLI output from php --ini: Configuration File (php.ini) Path: /usr/local/lib Loaded Configuration File: /usr/local/Zend/etc/php.ini Scan for additional .ini files in: (none) Additional .ini files parsed: (none)

At least, it was for me. chillax, Apr 20, 2006 #2 jprice New Member Messages: 4 this is my entire /etc/phi.ini file memory_limit = "32M" include_path = "\".:\"" short_open_tag = "On" file_uploads = "On" safe_mode = "On" You can view the changelog to see when a case hits a set version at http://go.cpanel.net/changelog You can view your existing cPanel version using this command: Code: cat /usr/local/cpanel/version You can this contact form Navigation  Message Index Next page Go to full version Register Help Remember Me?

This option is only available if PHP was compiled with Reflection support. PHP: Error parsing /usr/local/lib/php.ini on line 827 Discussion in 'General Discussion' started by Nicarlo, Apr 17, 2011. Like this is it Zend not running ?

Example #8 --rc example $ php --rc Directory Class [ class Directory ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] {

No, create an account now. Thanks Tristan. #10 tank, Apr 29, 2011 (You must log in or sign up to post here.) Show Ignored Content Loading... This strangely enough happened when i enabled ioncube php. Obviously you don't want to do this in cases where you're handling user input, keep those as restricted as possible. –Haravikk May 24 '14 at 15:38 @Haravikk your comment

You have been warned!

Note: -r is available in the CLI SAPI, but not in the CGI SAPI.

Note: This option is only intended for very basic code, so If you are using vi(m) to edit the file you can type /\[Zend\] and hit enter which should take you to the area you want to be. Log in with Facebook Log in with Twitter Log in with Google Your name or email address: Do you already have an account? navigate here I've tried to reinstall zend but it didn't fix the problem.

Cheers #2 Nicarlo, Apr 17, 2011 tank Well-Known Member Joined: Apr 12, 2011 Messages: 236 Likes Received: 0 Trophy Points: 16 Location: Chicago, IL cPanel Access Level: Root Administrator Well Note: This option does not work together with the -r option.

-v --version Example #5 Using -v to get the SAPI name and the version of PHP and Zend $ the actual path should be /usr/local/Zend/etc/php.ini, which Plesk did not understand (go figure), so it deleted the symlink holder at /etc/php.ini and created a simplictic and useless one in it's place.