0
Welcome Guest! Login
0 items Join Now

Praxis cannot run in the NS hosting

    • xinhua's Avatar
    • xinhua
    • Newbie
    • Posts: 4
    • Thanks: 0

    Praxis cannot run in the NS hosting

    Posted 11 years 9 months ago
    • I just uploaded the Praxis demo package onto the hosting purchasing from www.networksolutions.com ,the domain is 0343422.netsolhost.com/joomme/ , and you can see the following error report:

      Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /data/25/2/96/29/2585681/user/2835282/htdocs/joomme/libraries/gantry/core/utilities/gantrylesscompiler.class.php on line 397

      can anybody tell me how to solve this problem,thx!
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: Praxis cannot run in the NS hosting

    Posted 11 years 9 months ago
    • Check here -> Admin -> Site -> System Information -> PHP Information -> Core -> memory_limit
      and you will see it's probably set to 32MB
      When you see an error that reads “Fatal Error: Allowed memory size of xxxxxx bytes exhausted” either in browser or server logs , that means PHP has exhausted the max memory limit. Mostly, this is due to the insufficient memory allocated for the script which tried to allocate xx more. This is part of the error message generated on your server that says (tried to allocate xx bytes).
      Increase the "memory limit" to a size that totals over the amount you saw in the error.
      Generally for Joomla 64Mb is a good number and if your running a lot of extensions, like RokGallery, 128Mb would be preferable.
      So generally, there are three methods:
      Editing the php.ini file (recommended)
      For Linux Web Hosting and Dedicated Website Servers running PHP as a CGI
      Every installation of PHP has a default or global php.ini file for the default PHP settings. Normally it is suggested to leave the default or global php.ini file unaltered and to simply create your own php.ini file wherever needed to override the default settings. You can create the php.ini file using a text editor and saving the file to the folder where the settings should apply. Please note that using a php.ini file to override the default settings will only alter the PHP settings for all PHP files in the directory where it is saved. This means that any PHP files in subfolders will not recognize the changes you've made in the php.ini file. You will have to copy the file to any subdirectories needed.
      Write each directive along with its value on separate lines. Lines starting with a hash symbol (#) are comment lines and have no effect on the settings within the file.
      An example:
      memory_limit = 64M
      upload_max_filesize = 10M
      post_max_size = 12M

      Make sure that post_max_size is larger than the upload_max_size.

      Editing the .htaccess file
      For Dedicated Website and Linux Root Servers where PHP is running as an Apache module.
      The .htaccess file is used to set Apache Web Server settings but can also be used to set php directives when used as a module. The settings in .htaccess file are recursive meaning that the settings within the .htaccess file will apply to all PHP files within the directory where it is saved as well as subdirectories. There is no default .htaccess file be default unless one was included with a Web Application install (such as Joomla, Wordpress, etc.) If not already created, you will have to create the .htaccess file using a text editor and save the file to the folder where the settings need to be applied. Please note that the dot(.) preceding the .htaccess file signifies it as a hidden file.
      Write each directive along with its value on separate lines. Lines starting with a hash symbol (#) are comment lines and have no effect on the settings within the file.
      An example:
      php_value memory_limit "64M"
      php_value upload_max_filesize "10M"
      php_value post_max_size "12M"
      Again, make sure that post_max_size is larger than the upload_max_size.

      Some hosters offer you the ability to change your php settings in the Cpanel or Plesk panel for your account, such as HostGator:
      Making Changes via cPanel's php.ini QuickConfig utility in the "Software/Services" section of your cPanel.
      1.Login to cPanel.
      2.Click on php.ini QuickConfig in the "Software/Services" section.
      3.Enable QuickConfig if not already enabled.
      4.Change the settings that you want to change.
      5.Click the Save Changes button to save your changes.

Time to create page: 0.076 seconds