PDA

View Full Version : Something weird just happened....


champs
24th April 2009, 15:41
G'day

Followed Falko's Perfect Debian Lenny with ISPConfig3. Had the issue with the ISPConfig install, changed it to version 501 and all went well....

Started to play with content in the first site, installed e107 and all went well.
Then thought I would load it up with other packages I want to test so I installed phpBB3 and Gallery2. That's when something went wrong.

The gallery installed but produced a blank page when first logging in. Now I am not authorized to see anything but ISPConfig Panel.

Even into the server in terminal, I can't get beyond /var/www
If I do the ls command, I can see the directory www.mydomain.com but when I cd www.mydomain.com I get no such file or directory

Then when I attempt to FTP in, it displays the content of the directories, but displays the tar.gz files that I know that I unpacked and removed.

I am totally lost.... Help Please

champs
25th April 2009, 06:40
Anyone...... Please......

till
25th April 2009, 10:22
Looks like you deleted something as you installed the package. You can try to update ispconfig, maybe this brings back the parts that had been deleted. If not you might have to fully reinstall ispconfig.

Snowman
25th April 2009, 11:04
hello its because debian released 5.0.1 as stable bugfix version. change /etc/issue from 5.0.1 to 5.0 and it will be fine :).

champs
25th April 2009, 12:10
Looks like you deleted something as you installed the package. You can try to update ispconfig, maybe this brings back the parts that had been deleted. If not you might have to fully reinstall ispconfig.

I just did a search and it appears that the Gallery install has added a heap of directories during the install, and likety changed the Apache config to point at a different location. Can anyone tell me where the conf file is that tells apache where to look for web pages?

hello its because debian released 5.0.1 as stable bugfix version. change /etc/issue from 5.0.1 to 5.0 and it will be fine :).

Yep, I fixed that as part of the initial install, that all worked fine, but the install of Gallery has changed something

champs
25th April 2009, 13:16
Ok.. It appears that a Gallery Install (just using the defaults for each step) will delete your entire site and turn it into a symbolic link to it's default install location /var/www/clients/client1/web/web1.... It wouldn't let me cd into it cause it was no longer a directory.....

Time to start again I guess..... Thanks to Till and Snowman

Snowman
25th April 2009, 18:10
yep, maybe recreation of site will help you do solve problem, as i know ispconfig 2 doesnt allow symlinks in /var/www/www.site.com/web web directory by default setup, i expect that it will be the same in ispconfig3. i recently installed joomla and in .htaccess file there was # Options +FollowSymLinks , i should comment that before starting to use joomla.

champs
26th April 2009, 07:12
My sites-enabled has been changed to /var/www/clients/client1/webs/web1/

Could someone post what the sites-enabled should look like so I can change it back....

falko
26th April 2009, 12:55
What do you mean with sites-enabled?

champs
26th April 2009, 13:14
Hey Falko.... Love your work buddy..... Whenever I want to do something, I always check to see if you have done a tutorial first before looking elsewhere....

Back to the problem, the Gallery install has overwriten my /etc/apache2/sites-enabled and sites-available to point web traffic to /var/www/clients/client1/webs/web1/

While I asume it to be easy as changing this back to /var/www/www.mydomain.com/web/ I would like to see someone elses so I don't further mess things up.

falko
27th April 2009, 17:56
Back to the problem, the Gallery install has overwriten my /etc/apache2/sites-enabled and sites-available to point web traffic to /var/www/clients/client1/webs/web1/

Did it overwrite or delete the directories, or files within the directories? :confused:

champs
28th April 2009, 09:15
Did it overwrite or delete the directories, or files within the directories? :confused:

As far as I can tell, it overwrote the sites-enabled and sites available to point at a new directory..... but it did delete the entire /var/www/www.mydomain.com and it's contents, and then made a symbolic link by the same name which also points to /var/www/clients/client1/web/web1

I am considering deleting the contents of /var/www and then re-installing ISPConfig.

falko
29th April 2009, 10:49
Can you post the outputs of ls -la /etc/apache2/ and ls -la /var/www/?

champs
29th April 2009, 11:02
Couldn't cut and paste sorry

champs
30th April 2009, 14:41
Bump...........

falko
30th April 2009, 16:21
It's looking ok to me. What exactly is the problem?

champs
1st May 2009, 09:07
Everything stopped working.....

The entire contents of /var/www/www.mydomain.com/web/ was deleted and the directory was changed to a sym link

Is the site supposed to be in /var/www/clients/client1/web3 ?

falko
1st May 2009, 17:08
Is the site supposed to be in /var/www/clients/client1/web3 ?Yes. Do you see the contents of your site in that directory?

champs
2nd May 2009, 01:06
Yes. Do you see the contents of your site in that directory?

No... The location is empty....

I built up the site in /var/www/www.mydomain.com/web/

It all worked but gallery seems to have deleted everything... confused... reinstall and start again

till
2nd May 2009, 09:42
Yes, you should do e reinstall of your system. by the way, do not use debian packages to install systems like gallery 2 or cms systems on your server as the debian packages are not made for hosting servers with multiple websites. Instaed you should install the tar.gz versions of the scripts into the website directories.