Upload file problems in PHP + Linux

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kamlai@gmail.com

    #1

    Upload file problems in PHP + Linux

    I'm using PHP + apache2 in Linux platform. I found that the
    upload_max_file size has only 2M. I want to increase this limit but I
    don't know where can I set it.

    I'm using Linux so I don't have php.ini file. Please help. Thanks.

  • Erwin Moller

    #2
    Re: Upload file problems in PHP + Linux

    kamlai@gmail.co m wrote:

    Hi kamlai,
    [color=blue]
    > I'm using PHP + apache2 in Linux platform. I found that the
    > upload_max_file size has only 2M. I want to increase this limit but I
    > don't know where can I set it.[/color]

    In php.ini

    [color=blue]
    >
    > I'm using Linux so I don't have php.ini file. Please help. Thanks.[/color]

    Why don't you have php.ini in Linux?
    I think you have it somewhere. :-)
    Try: locate php.ini

    Regards,
    Erwin Moller

    Comment

    • Iván Sánchez Ortega

      #3
      Re: Upload file problems in PHP + Linux

      kamlai@gmail.co m wrote:
      [color=blue]
      > I'm using Linux so I don't have php.ini file. Please help. Thanks.[/color]

      Really? What's in your /etc/php directory then? ...

      --
      ----------------------------------
      Iván Sánchez Ortega -ivansanchez-arroba-escomposlinux-punto-org


      Proudly running Debian Linux with 2.6.12-1-686 kernel, KDE3.4.2, and PHP
      5.0.5-2 generating this signature.
      Uptime: 15:33:14 up 17:57, 1 user, load average: 0.24, 0.28, 0.26

      Comment

      • rich@newsguy.com

        #4
        Re: Upload file problems in PHP + Linux

        In article <434d0198$0$110 74$e4fe514c@new s.xs4all.nl>, Erwin Moller says...[color=blue]
        >
        >kamlai@gmail.c om wrote:
        >
        >Hi kamlai,
        >[color=green]
        >> I'm using PHP + apache2 in Linux platform. I found that the
        >> upload_max_file size has only 2M. I want to increase this limit but I
        >> don't know where can I set it.[/color]
        >
        >In php.ini
        >
        >[color=green]
        >>
        >> I'm using Linux so I don't have php.ini file. Please help. Thanks.[/color]
        >
        >Why don't you have php.ini in Linux?
        >I think you have it somewhere. :-)
        >Try: locate php.ini
        >
        >Regards,
        >Erwin Moller[/color]

        If the locate db isn't up-to-date you might need to use find to scan all the
        directories. If it doesn't show up using locate you might try this...

        find / -name "php.ini"

        Rich
        --
        Newsguy -- http://newsguy.com

        Comment

        Working...