test
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • Phill Moderator
    #139900

    Many people experience problems when installing templates. Some of these are due to permissions ie. the ability for the server to write to a particular directory. Many problems are down to restrictions set in the php.ini file by your host.

    Many of these restrictions are put in place to keep load down on a shared server or for security reasons. Som hosts however, allow you to change certain things. Below are listed the most common items to check when you have problems with your Joomla install or if you have problems installing a template or module etc.

    Things to check:

    1. max_input_time- 60 seconds is the default time limit for uploading files.

    This time limit includes the time it takes for the files to upload, so if you exceed this limit, the file will not even parse, and the browser will not get a response. You can workaround this by trying to upload smaller or fewer files, or you can try uploading over broadband. The best solution, of course, is to increase the time limit to something more in line with your needs.

    2. upload_max_filesize – 2MB is the default limit for individual files.

    3. post_max_size – 8MB is the default limit for post requests.

    4. memory_limit – 8MB is the default size.

    5. PHP’s LimitRequestBody – 512KB default limit. (mainly an issue on Redhat/Apache systems. Found in /etc/http/conf.d)

    In general, upload_max_filesize < post_max_size < memory_limit in order for uploads to function properly. Joomla may warn you if a file exceeds upload_max_filesize, but it cannot warn you if the total size of all the files exceeds the post limit or the memory limit.

    6. max_execution_time – Default of 30 seconds.

    If this is the issue, you will get a warning about the maximum execution time being exceeded. This error can occur if you are trying to upload an abnormally large number of files. You may increase this setting in php.ini, or you may attempt to set the time limit in the script if the server permits.

    The time limit may be changed by adding the following declaration near the beginning of the file:
    set_time_limit(x);

    where x is the number of seconds you desire. A setting of 0 removes the time limit restriction. Remember that this call is subordinate to the setting in php.ini, so you cannot use it to overcome a restriction there. More information can be found in the PHP manual:

    http://us4.php.net/manual/en/function.set-time-limit.php

    If you have root access you are allowed to edit the existing php.ini file on your server. Many people have trouble finding this.

    One simple way to find this is to creae a file call phpinfo.php in notepad or other text editor and in it put the following code.

    <?php phpinfo(); ?>

    Upload this to your server and browse to it. You will then have sidplayed all of your php settings and a lot of information you will probably never need.

    Remember that when you have finished it is a security risk to leave this file on your system so please delete it.

    If you alread have joomla installed you can also see these setting from the help menu in the Joomla admin panel.

    Bear in mind that any changes you make will not take effect until you restart apache on many systems but not all.

    On Debian/Ubuntu systems you can run the command below to do this.

    So what do you do if you do not have root access

    This depends on your host but many do allow certain commands to be run in your own php.ini file. Where you put this depends on your host so you will have to ask them.

    To create a custom php.ini file simply use a text editor and save the file as php.ini.

    Here is an example of what I have had to put in one of my friends sites due to limits imposed by his host.

    max_execution_time = 60 ; Maximum execution time of each script, in seconds
    max_input_time = 90 ; Maximum amount of time each script may spend parsing request data
    memory_limit = 32M ; Maximum amount of memory a script may consume (32MB)

    Once done, upload it to wherever you host suggests.

    Arvind Chauhan Moderator
    #299899

    Hey Phil,

    Thats great info you have compiled. Its certainly helpful, and i think this should go to tutorials section and marked sticky. This info is worth not only for installing templates but also for installing various components such as CB and photo galleries, which needs to resize or generate thumbnails.

    Regards

    arvind

    ccvpguy Friend
    #301568

    Hi Phill, I encountered few weeks ago the problem you outlined while trying to upload some MP3 files. I increased the “upload_max_filesize – 2MB”, No luck.. I will provide later tonigt the Error message and Audio player I am using.

    Thnx

    Phill Moderator
    #301723

    Without an error message it is hard to say. It could be that your server is timing out while uploading so try increasing max_input_time.

    ccvpguy Friend
    #301740

    Hi Phill;

    Here is the error I am getting ERROR! Make sure you only upload an (.mp3) file and that the file size is within your server limits (your server settings indicate that upload_max_filesize = 64M).
    UnMP3 – the mp3 player for Joomla! 1.5 version 1.1

    Here is the mp3 player i am using: http://www.unmp3.com/

    The file I am uploading is mp3 format.

    Also, I used your codes…

    All I did was install the module and I tried to upload the mp3 files from my audio folder,

    I am not sure i f i have to do anything else..

    Ps, I am using Wamp>>localhost

    Thnx

    scotty Friend
    #301750

    If you are using WAMP then just copy and paste the files directly into the destination folder. There is no point really in guiding you through server config for WAMP as a live server environment will almost certainly be configured very different.

    ccvpguy Friend
    #301812

    Thank you Scotty, Any other Audio player you can suggest, like something easy to use.

    I picked up this audio player because it is easy to use and no need to do any configuration..

    Regards

    iguinee Friend
    #362600

    Has there been any solution to your problem?

    I am facing the same problem. My max file iseze is 100MB.

    The file I am trying to upload is just over 400KB. And it’s not uploading.

    <em>@ccvpguy 124872 wrote:</em><blockquote>Hi Phill;

    Here is the error I am getting ERROR! Make sure you only upload an (.mp3) file and that the file size is within your server limits (your server settings indicate that upload_max_filesize = 64M).
    UnMP3 – the mp3 player for Joomla! 1.5 version 1.1

    Here is the mp3 player i am using: http://www.unmp3.com/

    The file I am uploading is mp3 format.

    Also, I used your codes…

    All I did was install the module and I tried to upload the mp3 files from my audio folder,

    I am not sure i f i have to do anything else..

    Ps, I am using Wamp>>localhost

    Thnx</blockquote>

    scotty Friend
    #362927

    What is the actual PHP error you are getting?

    If you go to your Joomla Admin>Help>System Info>PHP Information and search for ‘upload_max_filesize’ it will tell you what the max upload is. (This is the same as Phils PhpInfo tip above).

    With some hosts you will need to tell apache in the .htaccess file where your custom php.ini file is located. You can also have more than one custom php.ini.

Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 9 replies, has 5 voices, and was last updated by  scotty 14 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum