Web Hosting Forum | Lunarpages

Author Topic: Problems with new WordPress install  (Read 8147 times)

Offline orengrad

  • Newbie
  • *
  • Posts: 3
Problems with new WordPress install
« on: December 27, 2015, 02:53:52 PM »
New installation of WordPress 4.4.  No apparent problems with the install process itself.  Two issues right off the bat after launching WordPress:

First, I cannot upload image files - I get a the following message...

"An error occurred in the upload. Please try again later."

The Media Library shows a generic file icon but there is no apparent way to display the image.

Second, I cannot download new themes.  I get the following message...

"Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 95641 bytes) in /home/oreng3/public_html/westofwestonrd/wp-admin/includes/file.php on line 680"

Various discussions on the WordPress support forum suggest the possibility of issues associated with server settings.  Any suggestions on where to look in that respect would be much appreciated.

Offline MrPhil

  • Senior Moderator
  • Berserker Poster
  • *****
  • Posts: 6225
Re: Problems with new WordPress install
« Reply #1 on: December 27, 2015, 07:03:41 PM »
WP 4.4 suggests PHP 5.6, but says it will run on as early as PHP 5.2.4. I think all LP servers are at least PHP 5.3, with all in the process of being updated to PHP 5.6, but it might not hurt to check what's currently on your server. Lots of people have run WP on LP servers, but I have no idea about WP 4.4 (the latest).

What permissions did you end up with? Directories should normally be 755 (except for public_html itself) and files are normally 644 (444 for certain "read only" files). If the installation process left directories or files "world writable" (e.g., 777 or 666) that will fail on LP servers (although I think you will get a 500 error). By the way, is this a Linux or Windows server you're on?

Quote
suggest the possibility of issues associated with server settings
Can you be specific about what they say to check for, and suggested solutions?
Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-

Offline orengrad

  • Newbie
  • *
  • Posts: 3
Re: Problems with new WordPress install
« Reply #2 on: December 27, 2015, 08:27:31 PM »
cPanel tells me that the server is running Linux, and PHP 5.3.28.  Permissions look to be in order - 755 on directories, 644 on files.

My bad - I shouldn't have said "server settings".  I've seen some discussion at wordpress.org about PHP memory allocation, with some suggestions.  Inserting...

define('WP_MEMORY_LIMIT', '64M');

...into WordPress's wp-config.php file dn't fix it.

Inserting...

php_value memory_limit 64M

...into the .htaccess file prevented WordPress from booting at all.

Finally, so far as I know I don't have access to fiddle with php.ini.

Offline MichaelT

  • Support
  • Jabba the Hutt
  • *****
  • Posts: 579
Re: Problems with new WordPress install
« Reply #3 on: December 27, 2015, 10:00:11 PM »
php_value memory_limit 64M settings need to go into a custom php.ini (http://wiki.lunarpages.com/Php.ini_settings) or you'll get 500 Internal Server or other errors. The actual entry would be something like memory_limit = 128M., You will also want to add the .htaccess entry mentioned in http://wiki.lunarpages.com/Create_php.ini to make sure the adjustments propagate through your subfolders.

Offline orengrad

  • Newbie
  • *
  • Posts: 3
Re: Problems with new WordPress install
« Reply #4 on: December 27, 2015, 10:07:59 PM »
Michael, thanks for replying.  As it happens, while you were posting I was nosing around in the Lunarpages Wiki, found the pages on PHP and learned about creating php.ini from scratch, with the associated mods to .htaccess.

I put a 64M limit setting into a php.ini file which I copied into my public_html directory, also inserted the required additional lines to .htaccess, and that seems to have done the trick.

Thanks again to you, and also to MrPhil, for taking the time to help.  Much appreciated!

Offline MichaelT

  • Support
  • Jabba the Hutt
  • *****
  • Posts: 579
Re: Problems with new WordPress install
« Reply #5 on: December 28, 2015, 05:10:26 AM »
Good to hear. Since we run suphp on the shared servers, the PHP flags need to be located in the custom php.ini as opposed to the .htaccess.

 

Share |