HELP ... what the changes in php.ini ?!

Author Message

Selmah Maxim

Wednesday 04 June 2003 1:56:46 am

Hi...

My all old scripts report errors, and i think it`s becoz of the changes i had done in php.ini which ezp3 request, and i don`t remember what is this changes .... where to find them ?!?!?

thx in advance !

Tony Wood

Wednesday 04 June 2003 2:20:46 am

Selmah,

These are the standard set of changes specifically for eZ

PHP.INI

short_open_tag = On
safe_mode_include_dir = PHP_
memory_limit =24M
magic_quotes_gpc = Off
file_uploads = On
upload_max_filesize = 20M
post_max_size = 20M
short_open_tag = On
register_globals = On

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Selmah Maxim

Wednesday 04 June 2003 2:55:37 am

Hi tony ..

I found old php.ini on my system, and i had copied on the exists one, after renamed, after that i had reinstall ezp3, the requested settings is :

safe_mode
register_globals
magic_quotes_gpc
magic_quotes_runtime

the safe_mode_include_dir value is nothing, but ezp3 work normal, also register_globals is off !

about register_globals :
---------
; You should do your best to write your scripts so that they do not require
; register_globals to be on; Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
-----------

should i change it ?!

Jan Borsodi

Wednesday 04 June 2003 5:45:57 am

eZ publish was design to work without register globals and also we've tried to ensure that short_open_tag is not needed.
This means you should be able to use:

short_open_tag = Off
register_globals = Off

If you find any places where short_open_tag must be On please let us know and we will fix it.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Tony Wood

Wednesday 04 June 2003 6:36:43 am

Jan is right,

Try the above then lock down, as much as you can, but at least you'll have a site running. If you can have globals off.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Brendan Pike

Tuesday 15 July 2003 9:07:01 pm

Can someone tell me if making these changes will interfere with eZpublish 2.2.x sites hosted on the same server?

What can safely be done to achieve better performance without causing trouble on the 2.2 sites?

Particulary:
register_globals
php_value register_globals

Thanks

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Jan Borsodi

Wednesday 16 July 2003 2:08:58 am

It's possible to disable some php features using a .htaccess file, ie. you can do this per site.

try adding
php_value register_globals 0
to a .htaccess file in your ezp 3 root.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Takuya Misawa

Wednesday 12 January 2005 5:17:58 am

At the installation, I was told by the setup program to add the following commands into .htaccess since I don't know where php.ini on my server is (I'm on Globat). However, after adding these commands or lines, whatever you name them, every visit I make to my site shows HTTP 500 Internal server error.

php_value register_globals 0
php_value magic_quotes_gpc 0

Can I just forget about those settings and continue?
What are the disadvantages of not configuring them in the future?

Thanks!

--
Takuya Misawa
CEO at OPENUP dot JP

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.