Ubuntu Installation

Trouble during PacsOne Server installations
Post Reply
skreiner
Posts:10
Joined:Wed Jun 18, 2008 1:47 am
Ubuntu Installation

Post by skreiner » Wed Jun 18, 2008 1:58 am

Hi all. I am new to PacsOne, in fact I'm going to try it out. It took me a long time to get it up and running on my Linux (Ubuntu) Server. I am also pretty new to Linux. I figured since I spent the time to do this I would share with the community to hopefully save someone else some time. Unfortunately the manual isn't quite right for the installation. My working steps were:

1. Install Ubuntu Server (LAMP)
2. From command line:
sudo apt-get install build-essential linux-headers-$(uname -r)
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ubuntu-desktop
3. Start Ubuntu Desktop (sudo /etc/init.d/gdm start)
4. Download PacsOne Server Premium
5. Install PacsOne Premium:
sudo mkdir /home/pacsone
sudo chmod -R 755 /home/pacsone
cp [dir]/pacsone* /home/pacsone
cd /home/pacsone
sudo xvfz pacsone*.gz
sudo nano install.sh

From inside install.sh delete -a from line to check where libtool is installed. Also in file where looking to set up symbolic links, delete rc.d directory as rc.5d and rc0.d are in the /etc directory. Ie. Change /etc/rc.d/rc5.d/S99pacsone to /etc/rc5.d/S99pacsone.

sudo ./install.sh

6. During Installation script follow instructions on screen. Use PacsOne Installation Guide to help with these.

7. Edit apache2.conf file, which replaces httpd.conf (sudo nano /etc/apache2/apache2.conf). In this file add the following lines to the alias section of the file (ctrl-w to find alias):
Alias /pacsone "/home/pacsone/php"
<Directory "/home/pacsone/php">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Exit and save changes. You don't need to make the other changes found in the manual.

8. Restart Apache (sudo /etc/init.d/apache2 restart)

9. From Firefox, load http://localhost and http://localhost/pacsone/Hello.php to make sure these load OK.

10. Install ImageMagick
sudo apt-get install imagemagick
sudo apt-get install php5-imagick
11. Copy imagick.so from /home/pacsone/ImageMagick/php5.2 to php modules library (sudo cp /home/pacsone/ImageMagick/php5.2/imagick.so /usr/lib/php5/20060613+lfs/) - note this modules directory might be different on your computer.

12. Edit php.ini file (sudo nano /etc/php5/apache2/php.ini ) and add session.save_path = / in the appropriate area. I am not sure what this does, it's from the manual. Please note that the other php.ini changes in the manual do not need to be done and can mess up the mysqli modules.

13. Restart Apache

14. Test Installation, load http://localhost/pacsone/home.php.

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Wed Jun 18, 2008 4:52 am

You should not run Step#10 above, since PacsOne uses a customized ImageMagick PHP extension which would actually interfere with the standard ImageMagick distribution installed on the same server.

Step#12: Creating the Session.save_path directory is required, as all the user login session data will be stored there. You should follow the instructions in the PacsOne Server Installation Guide (http://www.rainbowfishsoftware.com/install.pdf) to configure this variable in the php.ini file.

skreiner
Posts:10
Joined:Wed Jun 18, 2008 1:47 am

Post by skreiner » Wed Jun 18, 2008 9:01 pm

Thank you for the reply. Everything seems to be running. Should I uninstall the downloaded version of ImageMagick?

Also, the manual says the line should read:

session.save_path = {SESSION_PATH}

though there is no discription of what the {SESSION_PATH} should be. Should this line read "{SESSION_PATH}", the pacsone install directory, or some other directory? I have it set to /tmp and again, it seems to work.

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Wed Jun 18, 2008 10:15 pm

Please read Section 5.4.7 of the PacsOne Server Installation Guide:

http://www.rainbowfishsoftware.com/install.pdf

skreiner
Posts:10
Joined:Wed Jun 18, 2008 1:47 am

Post by skreiner » Mon Sep 08, 2008 3:36 pm

pacsone wrote:You should not run Step#10 above, since PacsOne uses a customized ImageMagick PHP extension which would actually interfere with the standard ImageMagick distribution installed on the same server.
If I don't run step 10 above and just copy the file over, I can't even log in. For some reason, the verification numbers don't show up on the login screen. Is replacing the imagick.so file not good enough? If not, do you have another suggestion?

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Mon Sep 08, 2008 6:33 pm

You can run the following command from a local shell to check if any the dependent shared libraries is missing:

Code: Select all

# ldd imagick.so

Post Reply