Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Make a php.ini file? 
 
ImSoExcited
Jr. Member
 
Total Posts:  16
Joined:  2008-05-10
 

I uhhh… kind of lost my php.ini file.  Lol.  Apparently this is used to fix several problems so I’m hoping that by actually having one I can fix some of the problems I’m having.

Could anyone please explain how to make or provide a sample code for a php.ini file and/or an explanation of what exactly a php.ini file does?

I’m relatively new to php so I’m not too sure what everything really does.

Basically I’m having a few problems at the moment.  One error keeps coming up regarding a lack of memory (always using up all 32mb of memory though) when either trying to show a product or trying to check out.

Another error is involving the mail being sent out from the wrong address, which I will refer to this thread to:
http://www.magentocommerce.com/boards/viewthread/9341/

And then something which may be a problem as well or may just be speculation… I’m using Hostmonster which is run in pretty much the same way as Dreamhost....nevermind… I’m thinking of BlueHost… but I’ve posted the link anyway because I’m missing the php.cgi file that is says custom php.ini users should have.
http://www.magentocommerce.com/wiki/fixes/url-not-accessible-for-dreamhost-and-others-using-custom-php.ini

Any help would be greatly appreciated. smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
ImSoExcited
Jr. Member
 
Total Posts:  16
Joined:  2008-05-10
 

Really… I just need a sample php.ini file to start… It’s not asking much.  Edit out any parts you feel may be private if you need to.  I just need something to start with. :(

 
Magento Community Magento Community
Magento Community
Magento Community
 
Crucial
Enthusiast
 
Avatar
Total Posts:  770
Joined:  2007-11-07
Phoenix, AZ
 

A php.ini file changes the default (or server assigned) directives that are given to PHP, like the memory limit. To create one, just open up Notepad or something similar and save it as php.ini. Upload that to the folder where your website’s files are.

I don’t know what you had in your INI file, but I can give you what Magento sets up in the .htaccess file (if your host has PHP running as a CGI binary, you’ll use an INI file, if you host has PHP running as an Apache module you can flag PHP directives in your .htaccess file).

memory_limit=64M
max_execution_time
=18000
magic_quotes_gpc
=off
suhosin
.session.cryptua=off

You can learn more about what you can put in your INI file from here:

https://www.washington.edu/computing/web/publishing/php-ini.html
http://us2.php.net/ini.core

Here’s a complete, default PHP.INI file:

http://cvs.php.net/viewvc.cgi/php-src/php.ini-dist?view=co

 
Magento Community Magento Community
Magento Community
Magento Community
 
ImSoExcited
Jr. Member
 
Total Posts:  16
Joined:  2008-05-10
 

Excellent!  Thank you very much!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top