1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Uploading a file to forums - error

Discussion in 'Troubleshooting and Problems' started by Precision, Jan 30, 2012.

  1. Precision

    Precision Member

    I just changed the specifications on uploading files. I set it the file limit to 100MB (highest file i have is 60 MB). When i try to upload the file, it gets to 100% then gives me an error that says "There was a problem uploading your file." I also added the extension .exe, so I shouldn't have a problem. I don't understand whats wrong? I even tried it with a 10MB file, still experiencing the same error. However, the 3MB file worked.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. Precision

    Precision Member

    Okay thanks i'll take a look at it. I just wanted to put a couple files up, as I'm waiting for the Downloads mod to come out soon. Thanks brogan
     
  4. Precision

    Precision Member

    Dumb question :p, whats the file path for php.ini?​
     
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Visit:

    admin.php?tools/phpinfo

    That will give you the location of the file. For example:

    Screen shot 2012-01-31 at 10.34.51 PM.png
     
  6. Precision

    Precision Member

    My php.ini path says this:

    Configuration File (php.ini) Path= " /etc "

    However, when i go to the 'etc' folder, there is no php.ini file in there, even if i show hidden files?

    I have a file named 'ftpquota' and a 'worldofdiscussions' folder, and thats all.
     
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You don't see a "Loaded Configuration File" on the phpinfo page?
     
  8. Precision

    Precision Member

    Says:

    Loaded Configuration File: ' /etc/php.ini '

    its not there though
     
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Maybe you are looking in the wrong location. Are you logged in as root?
     
  10. Precision

    Precision Member

    i'm sorry, what do you mean by logged in as root?
     
  11. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You can only access /etc as root. If you are on a dedicated or VPS server then you should have root access. For other types of servers like shared servers you don't get that level of access and cannot edit the PHP configuration.
     
  12. Precision

    Precision Member

    oh, my plan is considered a "shared plan" but i did purchase a Dedicated IP, if that matter at all?
     
  13. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You can't access the php.ini file on a shared server.

    You can try changing your PHP settings by editing the library/config.php file in XF. You can use code like this:

    Code:
    ini_set('name_of_setting', 'value');
    
    This works sometimes. But some hosts don't allow this.
     

Share This Page