So I have a shared hosting account that I use Coldfusion for. Unfortunately my hosting company disables the cfexectute tag on shared hosting environments, and I'm trying to use ffmpeg to convert videos to flv on the fly. So, I built the upload and conversion script in php. It works great on my local server, and after a day of being lost I finally found out that to load a .ini file from my webroot on the shared host, I need to name it php5.ini and not php.ini That's the backstory, and I only tell it because I'm sort of flying blind and I have no idea what you'll need to know.
So, I did my research on the ini file and I'm somewhat familiar with php, so I upload the following as my .ini file, run phpinfo and the values that I've changed are shown, which is key. Here's the .ini file
post_max_size = 100M
upload_max_filesize = 100M
max_execution_time = 3000
error_log = "D:\Hosting\6540121\html\errorlog.txt"
expose_php = On
max_input_time = 3000
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
memory_limit 300MB
extension_dir = "c:\php5\ext"
extension=php_mysql.dll
Granted, these are higher than the values I will need to use, I just set them high for testing. After this configuration I went from being able to upload a 3Meg video and convert it without a timeout to being able to do the same on an 8MB video. Problem is anything past that and I get a 500 error, one that my host tells me I can't get debug information on without writing an entire web.config file, and I'm not up for that at all. My question is, what is missing from this .ini file that may be causing the error. I've been working at this straight for two days (it took me 5 hours to realize why when I loaded this file I couldn't use mysql_query(), that's the extent of my knowledge.. I've since added the last two lines to that .ini file)
Please help me. I'm at such a loss, I'm so incredibly frustrated and I really don't want to have to upgrade to Virtual Dedicated hosting for $75 a month since I'm nowhere near needing that kind of hosting yet.
Thank you in advance to anyone who has a suggestion.
So, I did my research on the ini file and I'm somewhat familiar with php, so I upload the following as my .ini file, run phpinfo and the values that I've changed are shown, which is key. Here's the .ini file
post_max_size = 100M
upload_max_filesize = 100M
max_execution_time = 3000
error_log = "D:\Hosting\6540121\html\errorlog.txt"
expose_php = On
max_input_time = 3000
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
memory_limit 300MB
extension_dir = "c:\php5\ext"
extension=php_mysql.dll
Granted, these are higher than the values I will need to use, I just set them high for testing. After this configuration I went from being able to upload a 3Meg video and convert it without a timeout to being able to do the same on an 8MB video. Problem is anything past that and I get a 500 error, one that my host tells me I can't get debug information on without writing an entire web.config file, and I'm not up for that at all. My question is, what is missing from this .ini file that may be causing the error. I've been working at this straight for two days (it took me 5 hours to realize why when I loaded this file I couldn't use mysql_query(), that's the extent of my knowledge.. I've since added the last two lines to that .ini file)
Please help me. I'm at such a loss, I'm so incredibly frustrated and I really don't want to have to upgrade to Virtual Dedicated hosting for $75 a month since I'm nowhere near needing that kind of hosting yet.
Thank you in advance to anyone who has a suggestion.