Hi all,
I'm trying to install MediaCore 9 in Hostmonster shared hosting for 3 days, looking in help section, googleing pages, following tutorials, asking help from HostMonster support, and I still can't get it working!
HostMonster: PHP5 + MySQL + Python2.4 and 2.6 natively + FastCGI
I'm not a expert in web, so I really need some help...someone?
Following the mediacore docs and other tutorials over the web, I have installed a custom python2.6.5, with setuptools, flup and virtualenv modules. After that, I followed the MC doc, up to step 5, then step 7 to create deployment file. So, I moved ahead to Apache mod_fcgi install, following carefully each step, and, when I try to load my system, I got a 500 error. Looking is Error Logs this is the 'cause':
'[Thu May 19 21:12:23 2011] [warn] [client 119.238.47.215] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Thu May 19 21:12:23 2011] [error] [client 119.238.47.215] Premature end of script headers: mediacore.fcgi
suexec failure: could not open log file
fopen: Permission denied'
And this one, I don't know if is a error from my website or not:
[Thu May 19 21:12:24 2011] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.
Looking is Support page, they said me: FastCGI is set up as a module that can be enabled via your .htaccess. You can add this line for enabling that:
`# Use PHP5CGI as default
AddHandler fcgid-script .php`
Changing that, nothing happened.
This is my mediacore.fcgi
#!/home1/iigdjapa/bin/python
python_egg_cache = '/home1/iigdjapa/MediaCore-0.9.0/data/python-egg-cache'
deployment_config = '/home1/iigdjapafrom /MediaCore-0.9.0/deployment.ini'
temp_dir = '/home1/iigdjapa/MediaCore-0.9.0/data/tmp'
# NOTE: Before running MediaCore, you will need to update the four paths
# above to point to the appropriate locations for your installation.
import os
import sys
os.environ['PYTHON_EGG_CACHE'] = python_egg_cache
os.environ['TMPDIR'] = temp_dir
if __name__ == '__main__':
from paste.deploy import loadapp
app = loadapp('config:'+deployment_config)
from flup.server.fcgi import WSGIServer
WSGIServer(app).run()
And this is my .htaccess file:
a# .htaccess file for installation of MediaCore with Apache/FastCGI
# See installation instructions at http://getmediacore.com/docs/install/apache-fastcgi.html
# For security reasons, Option followsymlinks cannot be overridden.
#Options +ExecCGI +FollowSymlinks
Options +ExecCGI +SymLinksIfOwnerMatch
# Use PHP5CGI as default
AddHandler fcgid-script .php
RewriteEngine On
# Create rewrite rules for media and podcast images
RewriteRule ^images/media/(.*)$ mediacore.fcgi/images/media/$1 [L]
RewriteRule ^images/podcasts/(.*)$ mediacore.fcgi/images/podcasts/$1 [L]
# Create rewrite rules for serving MediaCore's static content
RewriteRule ^(admin/)?(styles|images|scripts)/(.*)$ public/$1$2/$3 [L]
# Create rewrite rules for pointing mediacore requests to fastcgi script
RewriteRule ^mediacore\.fcgi(/.*)$ - [L]
# If the file requested doesn't exist on the filesystem, redirect to mediacore.fcgi
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ mediacore.fcgi/$1 [L]