Problems already...

kslaguardia

Joined: 2006-08-22
Posts: 3
Posted: Tue, 2006-08-22 14:56

No problem getting it up and running. However I found something lacking. For those of us not fluent in Linux...your instructions on deleteing and reconfiguring are vague.

Can someone please give me some advice on what instructions to read next on reconfiguring the VMWare appliance to host my own Gallery? I'm very interested in using Gallery through this method (loving VMWare) but I'm having trouble. I follow the instructions but no web page comes up for configuring. I've tried pulling up the install/index.php to reconfigure but it can't find anything there. My only other choice would be to look at All-in-one solutions that use Windows, but would really like to run this off Linux due to the low overhead and the perfect marriage is in VMWare. Any help would be appreciated. Thanks!

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Tue, 2006-08-22 17:57

Are you following the instructions found on the codex/wiki at http://codex.gallery2.org/index.php/Gallery:Appliance#Security ?

If so, could you tell me which step isn't working? Or what you are confused about?
_________________________________
Support & Documentation || Donate to Gallery || My Website

 
mystix

Joined: 2005-03-23
Posts: 11
Posted: Wed, 2006-08-23 10:44

Think I ran into the same problem myself. If I run "conary erase gallery g1conf g2conf" then I can't access the gallery2 folder on the webserver even after svn checkout, maybe it deletes too much config?

 
tictocdoc

Joined: 2004-03-07
Posts: 5
Posted: Wed, 2006-08-23 13:30

Hello:

I too am testing the appliance. I have used RedHat/Fedora in the past to host my gallery websites. I am not familiar with rPath Linux either. I have a static IP address from my ISP. I have my router forwarding all http requests to the IP address of my gallery appliance (i.e. 192.168.1.XXX),port 80. When I open the site in internet explorer I get to the default welcome page ("Welcome-the password is...The URL is http://192.168.1.XXX/gallery2..."). Once I click on the URL link on that page it then takes me to my actual gallery. My questions are: 1) How do I get directly to my actual gallery instead of the default welcome screen? 2) How do I change the IP address of my gallery (I don't use DHCP)?

Thanks,

Michael

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2006-08-23 19:52

mystix,

I'm pretty sure I know what the problem is. The rPath package system "conary" places G1 and G2 into /srv/www/gallery and /srv/www/gallery2. It then creates some sort of config file for apache, because the *real* document root is /srv/www/html/. So I assume it creates an Alias or something, haven't dug deeply.

So in conclusuion, try doing the svn checkout from the /srv/www/html/ directory and see if that doesn't fix things right up. If this fixes it, I will update the instructions and/or see if I can't figure out a better way.

One of my options was is to create a G1 and G2 svn package from jmullen's nightly builds.
_________________________________
Support & Documentation || Donate to Gallery || My Website

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2006-08-23 19:58

tictocdoc,

You would probably be quite safe starting your own new thread, your problem is quite different from these other two.

To start with, you might try editing the file /srv/www/html/index.php and altering it to suit your needs. You could simply replace it with a refresh/reload thing that redirects to ./gallery/ or ./gallery2/ as you wish. You could also remove G1 and G2, then put a fresh copy in /srv/www/html/ if you like.

I don't understand the question about changing your ip address.

If you are forwarding traffic through your firewall, those links mignt not work. Coming from the outside, I honestly don't know what they would contain. Would it be the internal ip or the external ip? You'd have to test it.

Clarify your question and maybe I can make a better answer.
_________________________________
Support & Documentation || Donate to Gallery || My Website

 
mystix

Joined: 2005-03-23
Posts: 11
Posted: Thu, 2006-08-24 11:21

When doing the svn checkout from /srv/www/html/ it all works fine after a reboot :)

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Thu, 2006-08-24 13:02

Okay, I will update the codex.
_________________________________
Support & Documentation || Donate to Gallery || My Website

 
kslaguardia

Joined: 2006-08-22
Posts: 3
Posted: Sun, 2006-08-27 14:20

Thanks fryfrog for your attempt at helping me. I'm such a noob when it comes to Linux. I am following along the documentation and here's what happens:
1. Install subversion --> Works fine
2. Since the docs have changed I went to the copying of the conf files and such --> Works fine
3. cd to /srv/www/html and do a checkout. --> Failure
Even if I edit servers to turn off http compression i am still getting truncated errors. So I am trying to go about not updating...

1. conary update --resolve subversion --> SUCCESS
2. cp /etc/httpd/conf.d/php_gallery.conf /etc/httpd/conf.d/php_gallery2.conf ~/ --> SUCCESS
3. conary erase gallery g1conf g2conf --> SUCCESS
4. cp ~/php_gallery.conf ~/php_gallery2.conf /etc/httpd/conf.d/ --> SUCCESS
5. 'passwd root' AND 'mysqladmin -u root password 'my own password'' --> SUCCESS
6. /etc/init.d/gallery-appliance clear --> FAILURE It does not like the password for root (probably ince I changed it) so I skip ahead and 'nano -w /etc/init.d/gallery-appliance' and then try this step again and it works
7. touch /etc/gallery-pre-configured --> SUCCESS
8. mysqladmin -uroot -p create gallery2 --> FAILURE (but only due to it already existing)
9. mysql gallery2 -uroot -p -e"GRANT ALL ON gallery2.* TO username@localhost IDENTIFIED BY 'password'" --> SUCCESS (yes, I do create my own username and password)
10. nano -w /etc/init.d/gallery-appliance --> SUCCESS (good at this part by now)

Crossing fingers and giving it a try...

Forbidden
You don't have permission to access /gallery2/ on this server.

If I type in just the IP addess I get an Apache Server test page...so at least that is working.

If I reboot and then try again, I still get an access denied.

This is making me feel like such an idiot...though I am learning quite a bit.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Tue, 2006-08-29 18:20

Ah, I know the problem!

Permissions. You are doing the checkout as "root". You will need to chown -R webuser:webgroup /var/www/html/ to fix it. Hang on while I find out the proper user:group to use. I'll also fix step 6 to mention editing the appliance init.d file.
_________________________________
Support & Documentation || Donate to Gallery || My Website

 
lonewolf

Joined: 2007-01-10
Posts: 1
Posted: Sat, 2007-01-13 05:01

Hello all,

I'm having the same issues as kslaguardia... I'm following the steps and get the results similar to his post. My end result, much like his, is that the gallery2 web page states that I do not have permissions. So, I'm seeing if FryFrog could finish his post about correcting the permissions, or does someone know to correct syntax?

Thanks for any help!!

 
markoi

Joined: 2010-08-18
Posts: 1
Posted: Wed, 2010-08-18 09:18
lonewolf wrote:
Hello all,

I'm having the same issues as kslaguardia... I'm following the steps and get the results similar to his post. My end result, much like his, is that the gallery2 web page states that I do not have permissions. So, I'm seeing if FryFrog could finish his post about correcting the permissions, or does someone know to correct syntax?

Thanks for any help!!

Same here as well.