(excuse my bad english)
i've installed mediacore on a windows server 2007.
if somebody want help ...
I'm preparing a tutorial to make this installation. coming next
Search Forums
19 posts Started 12 years ago by z2m Latest reply from Felix Schwarz
(excuse my bad english)
i've installed mediacore on a windows server 2007.
if somebody want help ...
I'm preparing a tutorial to make this installation. coming next
Awesome! I look forward to seeing how you did it.
-1- Files to download :
MediaCore 0.8.2
Python 2.7
SetupTools 0.6c11
PIL 1.1.7 for python 2.7
ElementTree for Python 2.7
cElementTree source files
Mingw-get ( needed to compile cElementTree )
MySQL 1.2.3 for python 2.7
-2- Unzip MediaCore in c:\mediacore
-3- Install Python in c:\python2.7
-4- Add tou your path c:\python27 and c:\python27\scripts
-5- Install setuptools
-6- Install PIL
-7- Install elementTree
-8- Unzip cElementTree in c:\cElementTree
-9- Unzip minGW in c:\minGW
-10- Add to your path c:\mingw\bin
-11- In a console window, execute :
cd c:\mingw\bin
mingw-get install mingw32-gdb
(This will install the catalog of mingw packages)
-12- execute now :
mingw-get install mingw32-gcc-v3-core
(this will install the gcc compiler)
-13- execute now :
cd c:\celementtree
python setup.py install build --compiler=mingw32
(this will compile and install the cElementTree package in python)
-14- Install mysql_for_python
-15- execute :
cd c:\mediacore
python setup.py develop
Now you can continue installation with the mediacore install doc
at the step 3 - Create the Database
To access MediaCore by a domain hosted by Apache :
-0- NB:
=> MediaCore is installed in c:\mediacore
=> we want mediacore works alone in http://www.mysite.com/media
-1- download mod_wsgi for apache 2.2 and python 2.7 and save it as apache_dir/modules/mod_wsgi.so
-2- Edit httpd.conf and add
LoadModule wsgi_module modules/mod_wsgi.so
-3- Edit httpd.conf (or other file) and add in the virtual host of http://www.mysite.com
# Make the url accessible (just in case it's not already)
<Location "/media">
Allow from all
</Location>
# Make the wsgi script accessible
<Directory "c:\MediaCore\deployment-scripts\mod_wsgi">
Order allow,deny
Allow from all
</Directory>
# Create exceptions for all static content
AliasMatch /media/(admin/)?(images|scripts|styles)(/?.*) c:\MediaCore\mediacore\public\$1$2$3
# Make all the static content accessible
<Directory "c:\MediaCore\mediacore\public\*">
Order allow,deny
Allow from all
</Directory>
-5- create 2 temp dirs :
c:\mediacore\data\tmp
c:\mediacore\data\python-egg-cache
-6- Edit c:\MediaCore\deployment-scripts\mod_wsgi\mediacore.wsgi and modify :
deployment_config = 'c:\mediacore\deployment.ini'
temp_dir = 'c:\mediacore\data\tmp'
-7- Edit c:\mediacore\deployment.ini ,
Find the line "#proxy_prefix="
Uncomment and modify it to ""proxy_prefix = /media"
-8- restart Apache
Hey z2m - thanks so much for posting this. We'll give it a shot in Windows and if it works we'll add it to the deployment documentation. Thanks for taking the time to post this back to the community, we really appreciate it.
A line is missing in step 3,
Before
# Make the url accessible (just in case it's not already)
<Location "/media">
Add
WSGIScriptAlias /media c:\MediaCore\deployment-scripts\mod_wsgi\mediacore.wsgi
Another error :
<Location "/media">
Order allow,deny
Allow from all
</Location>
I tried installing this on Windows XP, running xampp (apache). MediaCore now appears on localhost:8080, but the css is not working. In fact, no link is working. localhost:8080/media/* does not get me to the right location on my hard drive. The only pages that work are the five main ones, like master.html and error.html. Does anyone know where I've gone wrong?
I'm not on my development computer and i can't modify th deployment, so i can't verify my solution
open your deployment.ini
Search the line "proxy_prefix="
It must be proxy_prefix=/media
NOT #proxy_prefix=/media
sorry i would say the development.ini
z2m, I tried everything you listed above, and I have modified development.ini a number of times and tested those modifications to no avail. localhost:8080/media also takes me to the main mediacore page, but still without the css. Any subpages under that one do not work, except for one of the 5 main templates, like login.html (at localhost:8080/media/admin). It's a matter of redirecting /media to c:/mediacore/mediacore/public/*, and while I've tried adding what you have above to the httpd.conf file, something is missing.
can you post or mail the lines from your httpd about mediacore ?
WSGIScriptAlias /media c:\mediacore\deployment-scripts\mod_wsgi\mediacore.wsgi
<Location "/media">
Order allow,deny
Allow from all
</Location>
# Make the wsgi script accessible
<Directory "c:\mediacore\deployment-scripts\mod_wsgi">
Order allow,deny
Allow from all
</Directory>
# Create exceptions for all static content
AliasMatch /media/(admin/)?(images|scripts|styles)(/?.*) c:\mediacore\mediacore\public\$1$2$3
# Make all the static content accessible
<Directory "c:\mediacore\mediacore\public\*">
Order allow,deny
Allow from all
</Directory>
in the email, i've received something like that::
& lt;Location "/media" & gt;
in your httpd.conf, have you
& lt; Location "/media"& gt;
or
<Location "/media"> ????
if yes, replace & lt; by < and & gt; by >
try to use "c:/mediacore/mediacore/public/$1$2$3"
(convert backslash to slash, and " on start and end) in the wsgiscripralias and aliasmatch lines
I don't think that it correct the problem but it's the only difference with my httpd...
Verify if the alias_module is enabled
LoadModule alias_module modules/mod_alias.so
hi
very stupid/basic question but how do you start the mysql interface
for step 3 creating the database
Thanks in advance
Hey z2m got this thread fromJeremy. for me i have a bit of a problem, i'm a graphic designer and not really that great with code. and i have no idea what python even is. perhaps you could give me a hand on installing it on windows maybe over skype? my skype name is jeremie.webber . if you don't have skype could you email me at info@jerahco.com
my website is http://www.jerahco.com and the website.. or exact page i want to use this in is http://www.iamthirsty.ca/media.html
i have a lot more videos i want to load there and i'm going to be redoing the layout here this week so i'v been looking for something just like this for the site..
thnx a bunch :)
Hi , I tried to install media core database table with this instruction
paster setup-app development.ini
but i received the following error
fk = assoc_column.foreign_keys[0]
TypeError: 'set' object does not support indexing
I stuck at this point , not know how to solve it .
Any body can help plz.
Hi there,
i have en error after 15,
"error: Setup script exited with error: Unable to find vcvarsall.bat"
Any help for it?
I have done all, like u descriped before!
Thanks for ur fast reply!
I never installed MediaCore on Windows even though it should be possible. However I guess it requires installing a lot of libraries and GNU development packages.
I'm sorry that I can't help more here but without strong admin skills your best bet is a simple linux box (even in a virtual machine).
You must log in to post.