You can simply create a text file and call it php.ini . Make sure the file has the text encoding “Unicode no BOM”, as that will work best for both linux and windows. Use an FTP client to make a new file on the server and that will generate a file with the correct permissions and text encoding.
Put just this line in it:
memory_limit = 64M
But that will not raise your memory allocation if the host doesn’t allow individual php.ini files in accounts which override the server php.ini, which sounds like is the case, since they don’t allow .htaccess to override the server. And it’s doubtful they will change your php.ini file for you.
Usually bumping memory in wp-config.php is sufficient, and there’s no need to edit .htaccess. Many hosts allow individual php.ini files. You’re on a very restrictive host. I’d change hosts.
Related Posts:
- Set a maximum upload count for users on a specific user role
- Is there a limit on the number of attachments?
- HTTP Error after finishing uploading a video that is bigger than 64 MB -> After raising the upload limit manually in the wp-config file
- WordPress Media Library – Upload space used
- Limit image upload
- How would I change the 10 MB limit to 5 GB in this script?
- PHP error when trying to upload .mp3 files via Media Library [closed]
- Set different max upload size limits based on file type/extension
- Video limit about wordpress
- Limit attachment caption characters
- Can’t upload files 1MB+ [closed]
- How does WP media uploader create the 3 different sized images, and how can I duplicate it
- How to assign multiple file-mime-types to extension?
- Is it possible to reorganize the WordPress uploads directory?
- Create image formats with different qualities when uploading
- Which filters or actions to use after a media upload and delete?
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- How to restrict images in v3.5 Media Library modal to only those from a specific post id?
- Allow CSV files to be uploaded
- How to add more upload directories?
- Multisite, upload images directly to Amazon S3
- How can you limit the number of images / videos that can be uploaded to a WordPress post
- Failure upgrading / updating site to WordPress 4.7
- Impose a Maximum Limit on Image height and width upload size
- Force wordpress to see uploads folder media
- Frontend Simple Local Avatar upload
- Disable TinyMCE Drag and Drop
- wordpress upload http error?
- Looks like image resize is not working well
- Allowing all/different file type uploads
- resize images not crop
- How Can I pass an image file to wp_handle_upload?
- Upload image from a URL and assign it as a Featured Image to a Custom Post Type?
- Setting wp_temp_dir and permissions not working for “Missing A Temporary Folder” error
- wp_temp_dir does not change the /tmp temporary default directory
- How to upload all media to one folder, with no year/month subfolders
- Any way to define WP_UPLOADS_URL (like WP_CONTENT_URL)?
- upload files dynamically to user folders
- How to protect media directory with .htaccess?
- How to delete uploads not in media library?
- How to decrease the file size upload limit?
- Why does SVG upload in Media Library fail if the file does not have an XML tag at the beginning?
- Site icons with alpha channel for self-hosted WordPress blog network
- How can I allow upload of ttf or otf font files when hooking `upload_mimes` doesn’t work
- Can I stop wordpress generating media sizes
- I made a website using WordPress, but the server is ColdFusion, how can I make it work?
- Using subdomain to upload media/images etc on 2 different blogs
- Unable to create directory uploads/2018/12. Is its parent directory writable by the server?
- Can I upload a file to the site so that it is not accessible via an HTML page?
- why am i getting the ‘fatal error’ msg when uploading photos within specified MB?
- Stop WordPress from generating redundant image size
- Media library only shows for admin. Doesn’t show editor or below [closed]
- Upload featured image from front end using media-upload.php
- Get File Object from wp.Uploader
- Capability to prevent upload of files
- wp_handle_upload: get custom checkbox value from media uploader
- Edit User Profile From Front End
- How can I upload to wp media library by foundation zurb ajax
- HTTP Error When Uploading Images with HTTPS?
- Saving file to disk receiving fopen error
- Check for file extension or mime type fails
- Error when upload images larger than 1024px [closed]
- A link (not in the post) to download a specific PDF file
- uploaded images not going to /uploads folder
- Setting image upload absolute path?
- Correctly using the root directory for media uploads?
- Populate a custom attachment metadata field with data from the image’s EXIF data?
- Change file name on upload in Media Page
- What is the URL pattern for image thumbnails + sizes?
- limit media upload to once a day
- How to download files to WordPress?
- How to detect when a file has been uploaded?
- wp-content/uploads returns a 404
- Cant upload larger than 100MB
- PDF Upload from Input Error
- Removing extra large generated images disables all crops
- MIME types not recognized by media library
- How to allow .xls file uploads?
- Upload automatically html files
- Updating the attachment from front end doesn’t show the new change
- Bulk upload images in upload folder does not show in media library
- Is there some way to find if media items are used anywhere on the site?
- Frontend media shows “An error occurred in the upload. Please try again later.”
- File Upload Management
- WP_Custom_Media_Control | Give ID to media file
- WP Add Media Button – Can I set the default size to Original/Full Size
- Can i add flickr,imgur etc. up-loader for my WP upload media button?
- How to split my uploaded media into directories?
- Fatal error: Allowed memory size of bytes exhausted (tried to allocate 36 bytes)
- get the post thumbnail returns the full size
- All files unattached in Media Library
- WordPress media upload multiple images
- Media Upload Directory to MMYY instead of YYYY/MM
- Is there a way to force Featured image to show as attachement?
- how upload images and videos to specific folder like wp-content\uploads\folder-name
- Problems with defining UPLOADS constant
- Auto shortlink for file uploads
- Obtaining detailed error information from Media file upload process
- Is it possible to restrict the number of media uploads (photos) per user?
- How to restrict product access to personal user uploads in WordPress