Forum

 

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
php.ini
1 March, 2010
9:22 pm
Mindy
Enthusiast
Forum Posts: 43
Member Since:
18 December, 2008
Offline

I recently upgraded my client's wordpress and sermon browser because there was some itunes elements not working correctly. Now, he is unable to upload sermons above 8MB, where before he could without any problems. The options page is showing this message:

Warning: The maximum file size you can upload is only 10240k. Please change upload_max_filesize to at least 15M in php.ini.
Warning: The maximum file size you send through the browser is only 8192k. Please change post_max_size to at least 15M in php.ini.
Warning: The maximum time allowed for any script to run is only 30 seconds. Please change max_execution_time to at least 600 in php.ini.
Warning: The maximum time allowed for an upload script to run is only 60 seconds. Please change max_input_time to at least 600 in php.ini.

The second message completely makes sense because it says it cannot send more than 8MB through the browser upload system. However, these error messages were there before I did the upgrade and he never had a problem before. I'm wondering if I did some sort of a hack that I don't remember?

Any help would be so appreciated since he wanted to upload that sermon today.

Thanks!

3 March, 2010
2:27 pm
Mindy
Enthusiast
Forum Posts: 43
Member Since:
18 December, 2008
Offline

I figured out how to fix the problem. I added a .htaccess file to the root wordpress directory that had this inside:

php_value upload_max_filesize 15M
php_value post_max_size 15M
php_value max_execution_time 600
php_value max_input_time 600

I must have done this before on the original version that we had and just forgot about it. Hope it helps someone else!

22 March, 2010
5:20 pm
siemensj
Member
Forum Posts: 4
Member Since:
22 March, 2010
Offline

I tried creating a php.ini file and putting that code in it and then putting that in my root directory and I still get the warning.

Could you take me through step by step on how to create the php.ini file? Do I just create a new note pad doc and save it as .htaccess?

I would really like to get this fixed, any help would be appreciated.

22 March, 2010
5:28 pm
Ben Miller
Moderator
Forum Posts: 383
Member Since:
18 June, 2009
Offline

I believe that the instructions for this are different for different web hosts, web servers, etc. Your best bet is probably to contact your web host if you are having trouble. Sometimes they disable your ability to make changes like this.

Ben Miller
Pathways Church, Appleton, WI, USA
22 March, 2010
5:30 pm
Mindy
Enthusiast
Forum Posts: 43
Member Since:
18 December, 2008
Offline

Your hosting company is the one who controls your php.ini file. You can ask them to change the settings according to your error messages. But if they will not, then you will need to copy and paste my above code into NoteTab and save it as .htaccess . Then, upload it to your server in the main Wordpress directory/folder. If you want, I can email you the file and all you have to do it upload it. Not all word programs are fit for website code, so the one you have might not be appropriate. Just let me know.

22 March, 2010
6:40 pm
DmdStar
Guru
Forum Posts: 84
Member Since:
19 November, 2009
Offline

I simply asked our web host to loosen the PHP restrictions, as well as asking them to give me the php.ini file. They agreed, noting that if it appeared we were taking advantage, they might take action. I assured them that as a church site, our podcasts wouldn't be getting prime attention.

They agreed, and placed a php.ini in the root of the site, which I'm able to edit at will.

Matt Schlueter, Multimedia Director
Dodgeville United Methodist Church -- Dodgeville, WI
10 August, 2010
2:23 am
dobro7
Member
Forum Posts: 3
Member Since:
10 August, 2010
Offline

I tried the workaround listed above and it did not work. In fact it crashed the site. I put the original .htaccess file back and the site was good.

I need a workaround for the PHP.ini max file size and time. Is there not a way to do this with ftp or something.

I can upload the sermons via ftp and then find them in the Sermon Browser, but I can not upload them via the sermon browser interface.

Any ideas?

10 August, 2010
1:08 pm
Mindy
Enthusiast
Forum Posts: 43
Member Since:
18 December, 2008
Offline

When you tried the workaround code for the .htaccess file did you replace the other .htaccess code that was in the original/default .htacess or did you add the workaround code to what was already there? If you simply replaced it, then I can see where the sight might have had problems.

Having said that, I am not 100% positive that the workaround works for all hosting companies. It worked for me in the above situation, but when I tried it with another hosting company, I had some issues trying to get it to work.

10 August, 2010
1:25 pm
dobro7
Member
Forum Posts: 3
Member Since:
10 August, 2010
Offline

I added the code to the original .htaccess file. Is there a way to just bypass the php.ini and use ftp protocol?

I appreciate the quick responses!

Thanks,

10 August, 2010
1:42 pm
Ben Miller
Moderator
Forum Posts: 383
Member Since:
18 June, 2009
Offline
10

dobro7,
php.ini is controlled by your hosting company. Some hosts allow you to make changes, others do not. The procedure for making changes is different for each host.
The rules that mindy put into the .htaccess file will not work for every host. It is up to the host to allow or not allow those rules.

If you want to upload from your browser using the WordPress control panel, your best bet is to talk to your hosting company and ask them what you can do.

I'm not sure what you are asking about the ftp protocol, but certainly you can upload your sermons using ftp and avoid all of the php rules.

Ben Miller
Pathways Church, Appleton, WI, USA
10 August, 2010
1:47 pm
dobro7
Member
Forum Posts: 3
Member Since:
10 August, 2010
Offline
11

Yes, thank you for the reply. I have spoken with my host and they will not allow it.

As far as FTP protocol – I was thinking there might be a way to change the WP control panel to ftp the files up to the directory, there for bypassing the PHP restrictions.

I guess I will have to continue using an FTP client though. Just trying to make it easier on the church for uploading sermons.

Thanks again for the quick replies.

10 August, 2010
6:26 pm
DmdStar
Guru
Forum Posts: 84
Member Since:
19 November, 2009
Offline

Might be worth doing some webhost shopping to see if you can find a host that will work with you on larger web uploads.

Matt Schlueter, Multimedia Director
Dodgeville United Methodist Church -- Dodgeville, WI
Forum Timezone: Europe/London

Most Users Ever Online: 40

Currently Online: elderp, vivian78, 0be1
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

malpan - 2453

jogen - 2440

VanWatterson - 652

GeraldSebring - 364

LucasWoltman - 362

RandellFeenstra - 362

Member Stats:

There have been 7 guest posters

There are 1936 members

There are 1 moderators

There are 1 admins

Forum Stats:

Groups: 1

Forums: 2

Topics: 971

Posts: 3748

Newest Members: twinton, ellison13579, Daigh, mchunful, jesua, LGRG Design

Moderators: Ben Miller (383 )

Administrators: Mark Barnes (425)

 

Comments are closed.