Hey everyone. I am fairly new to PHP, but i'm getting the hang of it. I am running Mandrake 10.1 with Apache2, PHP5, MySQL4. I got everything set up and running fine and have been working with PHP files just fine without a php.ini file. However, now i need to start working with sessions, so i need to have php.ini to set the session.save_path. My phpinfo() says php.ini is located in the /usr/local/php5/lib directory, but when i look it isn't really there. So i put the php.ini file in that directory for it to find. But when i do that, PHP no longer parses the code. I can view the source of the page and actually see the PHP code. The php.ini i am using is exactly from php.ini-recommended. If i recompiled and told it where to look for that file, would it fix the problem? Probably not. Anyone have any thoughts? Thanks
If it worked before, you already had a php.ini file, you can't run php without it. So remove the extra copy and search on your box where it is. http://www.computerhope.com/unix/ufind.htm