Hi All,
I have installed MediaCore for testing purposes a months ago and everything was ok.
After some time, I come to that installation again, and...I don't know what I do on server, the page media' and 'categories' are not working anymore...getting 500 error message, Admin page I just can see the login page, after that I get a 500 error too...
The main page is ok, I still can watch videos, but when I click in categories, I get a 500 error...
I guess the problem is in .htaccess ou mediacore.fcgi
This is my code: Someene can help-me?
<br />
# .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 .fcgi
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]
#RewriteRule ^api/(.*)$ mediacore.fcgi/api/$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
#RewriteCond %{REQUEST_FILENAME} !-d < This line is breaking my installation too, with this, nothing work...even using [OR] after !-f.....
RewriteRule ^(.*)$ mediacore.fcgi/$1 [L]
And this is the MediaCore.fcgi :
<br />
#!/home1/iigdjapa/mediacore_env/bin/python
#I don't remember why this piece of code is here, but without this, nothing can work...
import site
site.addsitedir('/home1/iigdjapa/lib/python2.6/site-packages')
python_egg_cache = '/home1/iigdjapa/MediaCore-0.9.0/data/python-egg-cache'
deployment_config = '/home1/iigdjapa/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
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()