Difference between revisions of "Swisscenter (PowerPC)"
m |
m (Updates for current versions of swisscenter/apache/php) |
||
(7 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{Template:Articles}}[[Image:Swisscenter10.png|right]] | {{Template:Articles}}[[Image:Swisscenter10.png|right]] | ||
+ | ''Waht on earth is Swisscenter?'' | ||
=== Requirements === | === Requirements === | ||
You will need to install: | You will need to install: | ||
− | # [http://downloads. | + | # [http://downloads.nas-central.org/development_tools/ppc-tools-2_1.tgz PPC Tools] |
+ | # [http://nas-central.org/index.php?title=Update_Grep_OpenLink Update Grep (if you use Openlink)] | ||
# [[Articles/PPCApache | MySQL]] | # [[Articles/PPCApache | MySQL]] | ||
# [[Articles/PPCApache | Apache]] | # [[Articles/PPCApache | Apache]] | ||
Line 107: | Line 109: | ||
<nowiki>http://<LinkstationIP>/swisscenter/config/test_mysql.php</nowiki> | <nowiki>http://<LinkstationIP>/swisscenter/config/test_mysql.php</nowiki> | ||
+ | |||
+ | == Updates == | ||
+ | I installed recently and had to deviate as detailed below: | ||
+ | - During mysql installation: | ||
+ | cp support-files/my-small.cnf /etc/my.cnf | ||
+ | The file my-small.cnf is too slow, try my-medium.cnf | ||
+ | |||
+ | In /mnt/opt/apache/conf/httpd.conf | ||
+ | |||
+ | Change: | ||
+ | DirectoryIndex index.html index.php | ||
+ | to get php files run by web server by default | ||
+ | |||
+ | Change: | ||
+ | Port 8000 | ||
+ | LinkTheater needs the server on port 8000 | ||
+ | |||
+ | In /mnt/opt/apache/htdocs | ||
+ | Move: | ||
+ | all files from /mnt/opt/apache/htdocs/swisscenter to /mnt/opt/apache/htdocs | ||
+ | It seems that swisscenter assumes it's the root | ||
+ | |||
+ | Remove: | ||
+ | index.html* | ||
+ | so that index.php will be picked up, could probably change order of DirectoryIndex instead | ||
+ | |||
+ | php must be in the path for media scanning to work | ||
+ | ln -s /mnt/opt/php4/bin/php /usr/bin/php | ||
+ | |||
+ | apache 1.3.xx does not support larger than 2 gig files | ||
+ | using apache 2 require php changes --with-apxs2 instead of --with-apxs | ||
+ | Now videos won't stream at all - fix this by uncommenting EnableSendfile off | ||
== Screenshots == | == Screenshots == | ||
Line 125: | Line 159: | ||
[[User:Bauldrick|Bauldrick]] | [[User:Bauldrick|Bauldrick]] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 01:46, 6 May 2008
Waht on earth is Swisscenter?
Requirements
You will need to install:
Installation
Create a swisscenter directory in apache's DocumentRoot (/mnt/opt/apache/htdocs) : ((note I did not change it as in the docs e.g share/www))
mkdir /mnt/opt/apache/htdocs/swisscenter
Download Swisscenter into previously created directory
cd /mnt/opt/apache/htdocs/swisscenter wget http://www.swisscenter.co.uk/downloads/swisscenter.zip
Unzip the downloaded file
unzip swisscenter.zip
Change user:group
chown -R nobody:nogroup /mnt/opt/apache/htdocs/swisscenter
Restart apache
/mnt/opt/apache/bin/apachectl restart
Run it
Go to your Swisscenter on your Linkstation
http://<IPAdddress>/swisscenter
Hopefully you will see this message
You have not created a database. Please use the Configuration Utility to create a database
Now goto Swisscenter config on your Linkstation
http://<IPAdddress>/swisscenter/config
and hopefully you'll see this:
Set up the databases and point it to your media and you should be away! In order to be able to get weather forecasts, internet radio and updates you will need to
vi /mnt/opt/apache/htdocs/swisscenter/base/server.php
and add change
if ( $sock = @fsockopen('66.249.87.99', 80, $temp, $temp, 0.5)) // www.google.com
to
if ( $sock = @fsockopen('google.com', 80, $temp, $temp, 0.5)) // www.google.com
Once it's configured
http://<IPAdddress>/swisscenter
and you should see this:
Troubleshooting
In the event of something not working as it should, do this and ask for help
Create a file to see your php settings
vi /mnt/opt/apache/htdocs/swisscenter/config/test_php.php
and put this in it
<? phpinfo(); ?>
It should output your PHP settings when you try to reach it, check for MySQL support
http://<LinkstationIP>/swisscenter/config/test_php.php
Create a file to check you MySQL settings
vi /mnt/opt/apache/htdocs/swisscenter/config/test_mysql.php
and put this in it
<? echo mysql_pconnect('swiss','swisscenter','swisscenter'); ?>
Try and access it and see what it gives you
http://<LinkstationIP>/swisscenter/config/test_mysql.php
Updates
I installed recently and had to deviate as detailed below: - During mysql installation: cp support-files/my-small.cnf /etc/my.cnf The file my-small.cnf is too slow, try my-medium.cnf
In /mnt/opt/apache/conf/httpd.conf
Change: DirectoryIndex index.html index.php to get php files run by web server by default
Change: Port 8000 LinkTheater needs the server on port 8000
In /mnt/opt/apache/htdocs Move: all files from /mnt/opt/apache/htdocs/swisscenter to /mnt/opt/apache/htdocs It seems that swisscenter assumes it's the root
Remove: index.html* so that index.php will be picked up, could probably change order of DirectoryIndex instead
php must be in the path for media scanning to work ln -s /mnt/opt/php4/bin/php /usr/bin/php
apache 1.3.xx does not support larger than 2 gig files using apache 2 require php changes --with-apxs2 instead of --with-apxs Now videos won't stream at all - fix this by uncommenting EnableSendfile off
Screenshots
More screenshots can be seen from here