Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Can't find php.ini

  1. #1
    DavidV is offline Member
    Join Date
    Aug 2006
    Posts
    8

    Question Can't find php.ini

    Hi everyone. I'm a newbie on this forum. I've been looking all over the place, but haven't been able to find the answer to my problem. I can't seem to find the php.ini file. I've logged in as root on my server and can't find it under /etc. I've logged in under my domain and couldn't find anything under /local/lib. Can anyone here help?

    I'm on a Linux box. PHP 4.3.9

    I'm trying to be able to add users.

    Thanks.

  2. #2
    stevec is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,100

    Default Re: Can't find php.ini

    Hi,

    redhat should run the updatedb program daily (at least it used to a while back when I last used that distro). That means you can instantly search for filesnames using the command 'locate'.

    type "locate php.ini" and it will list all possible locations. Note: the results are from when the updatedb command was last run - probably last night - so it won't reflect recent new files.

    Saying that though - I can't see how editing php.ini will let you add users.

  3. #3
    DavidV is offline Member
    Join Date
    Aug 2006
    Posts
    8

    Default Re: Can't find php.ini

    Thanks for the help. I was able to find it and edit the file. I actually needed to increase the file upload size. You're right, this doesn't help in adding other users. I need to upgrade PHP for that.

    Although I've increased the upload size, I still get this warning message in the Module Loader section of the Admin area:
    Warning: Your PHP configuration must be changed to allow files of at least 6MB to be uploaded. Please modify the upload_max_filesize value in your php.ini located at: /usr/local/lib/php.ini

    Any idea why that could be?

  4. #4
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Can't find php.ini

    Hi,

    Go to Admin -> Diagnostic Tool, then check only phpinfo() in the advanced options, and execute it. Then downlod the result file, unzip and open it by a browser then you can see all of PHP settings. Find the varibale "upload_max_filesize" and see if it's correctly set.
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  5. #5
    DavidV is offline Member
    Join Date
    Aug 2006
    Posts
    8

    Default Re: Can't find php.ini

    Hi,

    Thanks for the help. It shows that the upload_max_filesize is still set at 2M. I'm sure I had modified it. I also noticed in my /lib directory, there were 4 php.ini files there. I'll double-check to make sure each of them was saved with a higher max amount.

    Thanks again.

  6. #6
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Can't find php.ini

    Quote Originally Posted by DavidV
    Hi,

    Thanks for the help. It shows that the upload_max_filesize is still set at 2M. I'm sure I had modified it. I also noticed in my /lib directory, there were 4 php.ini files there. I'll double-check to make sure each of them was saved with a higher max amount.

    Thanks again.
    Hi,
    In the same phpinfo() file, there is a line "Configuration File (php.ini) Path" that shows where your server is looking at.
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  7. #7
    stevec is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,100

    Default Re: Can't find php.ini

    A quick check - did you restart apache - or at least, reload the config? Just editing the php.ini file will not cause it to be reloaded.

  8. #8
    DavidV is offline Member
    Join Date
    Aug 2006
    Posts
    8

    Default Re: Can't find php.ini

    Ok. I tried it again and I'm still having the same problem. I did restart Apache. I haven't reloaded the config. How do you do that?

  9. #9
    ruchida's Avatar
    ruchida is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Feb 2005
    Location
    Japan
    Posts
    1,375

    Default Re: Can't find php.ini

    Quote Originally Posted by DavidV
    Ok. I tried it again and I'm still having the same problem. I did restart Apache. I haven't reloaded the config. How do you do that?
    Where is the "Configuration File (php.ini) Path" pointing? Have you found a correct php.ini?
    Ryuhei Uchida
    Help Forum Moderator
    Calendar 2.0
    http://blogs.itmedia.co.jp/ruchida/

  10. #10
    stevec is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,100

    Default Re: Can't find php.ini

    Reloading would have no different effect if you've restarted apache. I expect you might have multiple php.ini files (use locate command) or the memory limit line might still be commented out (often, in config files, the config line is set with the default value but commented out - so the default is used but you can see what to change).
    Last edited by stevec; 2006-08-18 at 11:59 AM.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •