PDA

View Full Version : How to: Ubuntu Center Alpha 1 on Xampp or any other system that doesn't use Apache2


nbx909
May 10th, 2006, 06:41 PM
Like my previous how to (http://www.ubuntuforums.org/showthread.php?t=147148) this will let you 'upgrade' to Ubuntu Center Alpha 1 if you use xampp, if you use any other httpd look at this and it may help you install it.
1st download the source from here (https://files.bountysource.com/file/download/136/ubuntucenter-alpha-01-source.tar.gz)
If you are upgrading you can skip the following part
If you are installing for the 1st time then
cd /home/
sudo su
mkdir Shared
cd Shared
mkdir Incoming
mkdir Music
mkdir Pictures
mkdir Uploads
chmod 777 /home/Shared/
*Now for everbody*
Now do
sudo apt-get install id3v2 imagemagick
Untar the source and copy everything but the var folder to /
Now copy var/www/center to your lampp directory
sudo su
(when cded to center-source)
If upgrading rm the center folder or rename it before doing this step
cp var/www/center /opt/lampp/htdocs/
Now go to http://yourip/center/install.php and follow the instuctions
Now edit the 1st line of /opt/lampp/htdocs/center/.htpasswd to read AuthUserFile /opt/lampp/htdocs/center/.htpasswd

Now if you can the nice ubuntu center menu with no errors you are set but for me the sql database did not get created so i had to use phpmyadmin to delete the center database and import the sql database manually from /opt/lampp/center/install/

Also in order to get torrentflux working make sure you edit the config from ubuntu center by click on the admin interface after your in the download section and replaceing every
/var/www/center/
with
/opt/lampp/htdocs/center/
and don't forget to edit the queue settings the same way or else you'll get pissed off at torrentflux in middle of writting a how to and attempt to commit suicide with a rubber knife while listening to emo music. ](*,)

or maybe that was just me minus the emo music... anyway that should be it. If it's not i'll edit it and if you have troubles post it here...

EDIT 1: Told you I would have to update as I played with it more...
in order to get the http downloader working you need to change a line in /opt/lampp/htdocs/center/dl_config.php
Change the line that says
$logfile_path = "/var/www/center/downloads/log/";
to
$logfile_path = "/opt/lampp/htdocs/center/downloads/log/";

EDIT 2: Nevermind travis screwed up on this one there is no folder named log in downloads so therefor it won't work anyway but i'll keep edit 1 since it needs to be changed anyway.

TTT_travis
May 10th, 2006, 06:44 PM
Great tutorial, just to shorten it:

mkdir Incoming
mkdir Music
mkdir Pictures
mkdir Uploads

can be made into just

mkdir Incoming Music Pictures Uploads


I am gonna try to test this out later with lighttpd to see if it works correctly since some people request I make it work with that.

kemet
May 26th, 2006, 09:00 AM
hello everybody
here is what i get when atempting to precced the install the web interface installer
on the first page of the instaler .

Connecting to Database...Success
Creating Database...Success
Generating Ubuntu Center Config...
Warning: file_put_contents(../content/conf/ubuntucenter.php.inc) [function.file-put-contents]: failed to open stream: Permission non accordée in /opt/lampp/htdocs/center/install/install2.php on line 192
Success
Inserting Tables...Success
Generating Ampache Config...
Warning: file_put_contents(../content/conf/ampache.php.inc) [function.file-put-contents]: failed to open stream: Permission non accordée in /opt/lampp/htdocs/center/install/install2.php on line 645
Success
Generating Calendar Config...
Warning: file_put_contents(../content/conf/calendar.php.inc) [function.file-put-contents]: failed to open stream: Permission non accordée in /opt/lampp/htdocs/center/install/install2.php on line 671
Success
Generating Bookmarks Config...
Warning: file_put_contents(../content/conf/bookmarks.php.inc) [function.file-put-contents]: failed to open stream: Permission non accordée in /opt/lampp/htdocs/center/install/install2.php on line 703
Success
Generating Downloads Config...
Warning: file_put_contents(../content/conf/downloads.php.inc) [function.file-put-contents]: failed to open stream: Permission non accordée in /opt/lampp/htdocs/center/install/install2.php on line 798
Success

there is a button called "continue" so a press the button then it tells me :

Creating User...
Warning: copy(../.htpasswd) [function.copy]: failed to open stream: Permission non accordée in /opt/lampp/htdocs/center/admin/lib/Htpasswd.php on line 839
ERROR FATAL cannot copy file [../.htpasswd] []


does anyone have any idea on how to solve this problem all suggestion are welcome guys ... thx in advance .. please help me it's really getting me frustrating since yesterday ...
sorry for my english i'm from paris so apologize for the bad english . thx you

kemet
May 26th, 2006, 09:12 AM
oh sorry i forgot to say :
when you PERMISSION NON IN this the french way to PERMISSION DENIED IN OR
ACCES DENIED IN .
so sorry for the confusion it may have caused .
anybody ?

almostlinux
May 26th, 2006, 11:45 AM
just do a


sudo chmod -R 777 /opt/lampp/htdocs/center/install/

and then try again

also delete the install directory once the installation is done

kemet
May 26th, 2006, 01:57 PM
execelent just did it and all the process worked properly ...

thanx you " almostlinux " for the tips . now that's the kind of tricks we're happy to get on forum ...

what can say , nothing but : with ubuntu linux you you'll never walk alone that's my words ..thx ubuntu people . ubuntu center is just amazing

problem solved .

PsiliPharm
June 12th, 2006, 07:44 PM
I had to do the following to fix the permissions:

sudo chmod -R 777 /var/www/center

I have apache2 & lighttpd so I use it the default directory but chmod whatever directory necessary.

This also fixed another problem I had with Firefox/Swiftfox attempting to download the .phtml or BIN file. (I have no idea what I did that made firefox attempt download a BIN!) I had originally installed the deb version of Ubuntu Center, so I uninstalled it first, then followed the above instructions.

I hope this helps anyone who has a similar problem.

PsiliPharm
http://psilipharm.wordpress.com/