php.ini files

Joined: 02/11/2007
User offline. Last seen 4 years 28 weeks ago.

Ok - quick question - sorry again if it's basic! I'm not really a fully fledged geek yet - just a wanna be geek who is trying to pick things up. So - here goes.

I need to change the maximum file upload size allowed on my websites. I believe the way to do this is through the php.ini file but I don't know where this it!

Is it something I need to contact my host about or should I be able to find it somewhere? Or, better yet, can I make a new 'part' to a php.ini file within a new php.ini within the directory I want to use for uploads (kinda like a .htaccess file for directory)

Hope that wasn't all complete rubbish.
Any suggestions appreciated!

A.

G&G Moderator
Darrin's picture
Joined: 01/29/2007
User offline. Last seen 3 weeks 3 days ago.
Im not the final answer to

Im not the final answer to this thats for sure. Im not fully geekafied (is that a word?) myself. I think some hosting providers dont give access to the php.ini file. So you may have to contact them. Or it may just be a hidden file and your not able to view it. Might want to checkout http://www.geeksandgod.com/episode31

Not much help I know.

Joined: 02/11/2007
User offline. Last seen 4 years 28 weeks ago.
Thanks!

Thanks techmate.

I have contacted my host, but as is always the case I player around again after posting this message and emailing my host and found I can over ride the php.ini settings within my .htaccess file. At the moment I can only do this to a limit of 4mb upload size.

I can't decide if this means I need to work on making the audio that will be on my site smaller or if I should keep looking and find a new way of doing the php.ini over ride.

I really must learn to wait another 20 minutes or so before posting on message boards!

Also - I see you are going from Wordpress to Drupal. I am in the same boat. I'm really having to make myself not think "How can I make Drupal work like Wordpress" but think "What do I want my site to do, how can I make Drupal do that"! Or better still - "What does the church want the site to do, how can..."

It's a fun challenge.

Thanks again for the comment.

--
Andy Hoyland
andy@stjb.org.uk
http://www.stjb.org.uk

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
User offline. Last seen 21 weeks 6 days ago.
php.ini file

Getting to the php.ini file may be a problem. If you are on one of those low cost shared hosts they very likely won't let you have access to it. In a lot of cases they put you at 2meg for uploads and there is nothing you can do about it. If you want to know if you have access to it ask the host.

There is an alternative to using the php.ini file in some cases.

I think the best place for more info on this is in the drupal handbook... http://drupal.org/node/97193. This talks about what needs changing and where you can change it.

Also, if you aren't allowed to change it with your host there may be an alternative. Let us know if you can't and what you are looking to upload.

Matt Farina
Geeks and God Co-Host
www.mattfarina.com

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
User offline. Last seen 21 weeks 6 days ago.
Audio Upload Module

Andy,

Check out the audio upload module that comes with the audio module. It lets you make a directory, ftp your mp3 (or whatever) to it, then go into a browser in drupal and create a node with that mp3 attached. It's a work around for people who can't upload large files.

Matt Farina
Geeks and God Co-Host
www.mattfarina.com

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com

G&G Podcast Host
Rob Feature's picture
Joined: 06/01/2006
User offline. Last seen 10 weeks 1 day ago.
More than me...

Hey Andy...
Well, you're more geek-ified than I am, at least...I never knew what the php.ini file did or where it was...I'm just a pseudo-geek, I don't even claim to be close the real thing (somehow I just ended up on a podcast with geek in the title...I just let MF pick up my slack). I'm just one of those art-dorks posing as a geek.... :)

-Rob Feature
Geeks and God Co-Host
www.bobchristenson.com

-Rob Feature
Geeks and God Co-Host
www.mustardseedmedia.com

Joined: 02/11/2007
User offline. Last seen 4 years 28 weeks ago.
Thanks....

Erm... Not too sure whether to say thanks for that or not!!

The balance of you two guys on the podcast comes across really well though - it would be a pretty dull podcast if you were both fully fledged geeks (no offence intended MFer)...

With the upload of larger files - I'd like, ideally, for the people who are updating the site not to have access to the ftp side of things - so I will wait to see what my host says!

Thanks for the links and tips.

--
Andy Hoyland
andy@stjb.org.uk
http://www.stjb.org.uk

Joined: 02/11/2007
User offline. Last seen 4 years 28 weeks ago.
That's great!

Thanks for that link MFer (am I allowed to call you that?!) I got the first part right - I was changing the upload_max_file but I wasn't changing the post_max_size. It seems the maximum fild upload is never allowed to be more than half the maximum post size so no matter how high I was setting the file upload I was stuck at 4mb as I hadn't changed the post size.

All sorted now - I appear to be able to upload 10mb files at the moment.

Yet again - thanks for the links and tips!!

--
Andy Hoyland
andy@stjb.org.uk
http://www.stjb.org.uk

G&G Moderator
Darrin's picture
Joined: 01/29/2007
User offline. Last seen 3 weeks 3 days ago.
Audio set up is my hardest part

Im trying and I just cant seem to get the module working the way I want. Thats where Im stuck at currently. I want to be able to make a page in this format. Where currently in John and 1 Timothy. I want a separate John and 1 Timothy page. Each page have a list of all the studies including study guides and commentary for each study. I cant get that player to work for the life of me. Any steps on how to do this will really be appreciated.

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
User offline. Last seen 21 weeks 6 days ago.
What isn't working?

I am a little unclear on your question. What isn't working? Is the player just not showing up? Or is it something else?

Matt Farina
Geeks and God Co-Host
www.mattfarina.com

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com

G&G Moderator
Darrin's picture
Joined: 01/29/2007
User offline. Last seen 3 weeks 3 days ago.
Seems like a difficult

Seems like a difficult module to grasp. I seemed to get it working for one test. But it doesnt show up in IE it seems.

This seems like the easiest way to do it http://www.macloo.com/examples/audio_player/ but sure a lot of coding to place everytime. Seems like there should be an easier way.

I recall I tried this player in word press and it was very easy. I just filled in the title, location of the file, size, type, etc.. and it put it there just like that along with a link to download the file. It was a breeze.

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
User offline. Last seen 21 weeks 6 days ago.
Still not sure what the problem is

I am still not sure what the problem is. Can you tell me what isn't working?

I would recommend installing the audio module, getID3 module (read directions as you need to grab the getID3 library), and if needed the audio import module.

Then, when they are installed go to /admin/settings/audio to setup the audio module and /admin/settings/audio/players to setup your flash player.

The getID3 module will let you grab the information from teh ID3 tag like author, length, etc. If you don't want to grab it from the audio file you can manually put it in.

Where is the difficulty? I would like to help but I don't see what the problem is. Can you please explain what you are trying to do and what is happening?

Matt Farina
Geeks and God Co-Host
www.mattfarina.com

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com

G&G Moderator
Darrin's picture
Joined: 01/29/2007
User offline. Last seen 3 weeks 3 days ago.
Going to try it again.

Since I removed it. I dont cant recall all the exact details that were happening for me. Out of frustration I gave up pretty quickly and moved on to other aspects of drupal. I will try it again and pay more attention to the steps I take and post back my results. Thanks for the tips.