Multiple copies of Coppermine Multiple copies of Coppermine
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Multiple copies of Coppermine

Started by Supernovae, March 24, 2006, 04:51:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Supernovae

Hi. I have been searching the forum if its possible to run multiple copies of cpg132 with 2 databases. I have seen several times that its possible.

Only problem I have is that whenever I try this  my new install seems to look for info in the wrong database. I checked the config.inc.php. There is all the correct data.

I am trying to set up a completely different site ( I am using virtual hosts) with cpg132. It is in a different folder. When I change the directoryname to something like cpg132b it doesn't seem to work at all. But when I change it back to cpg132 the other "setup" pops up (without pictures obviously)

Any idea;s what i might be doing wrong?


~Supernovae

Supernovae

Hmm.. I am thinking I have another issue.

My PHP doesnt seem to work in my other virual host directories.. Let me figure that out first...
If you have any idea's about this let me know :-)

Joachim Müller

don't do fresh installs with outdated coppermine versions - it's mandatory to use at least cpg1.3.5, better still cpg1.4.4

Supernovae

#3
OK i will :-) Didn't realize there were newer versions

Could i ask a PHP/apache related question here or is that "not done"?

My PHP (and HTML pages when i change httpd.conf in apache; example little below) seems to prefer to goto another directory (one level up to where my other website is) instead of the one I made under virtual hosts. It seems to have something to do with this part of the httpd.conf file:

-----ScriptAlias /php/ "c:/php/"
-----AddType application/x-httpd-php .php
-----AddType application/x-httpd-php .php3
----#AddType application/x-httpd-php .htm <---
----#AddType application/x-httpd-php .html <---
-----Action application/x-httpd-php "/php/php.exe"

When i remove the # in front of the htm and html lines it also happens with my HTML pages.

Example of httpd.conf:

<VirtualHost *:80>
ServerName "www.site1.nl"
DocumentRoot "C:/www"
</virtualhost>

<virtualHost *:80>
ServerName "www.site2.nl
DocumentRoot "C:/www/site2"
</virtualhost>

In both sites i have a phpinfo.php in the root.

When I goto www.site2.nl/phpinfo.php it will somehow take the one thats located in site1.nl (I could even remove the phpinfo.php from the site2 directory and keep up getting phpinfo from site1.nl (I cleared the cache too)

I figure is has to be something the httpd.conf file or with the php.ini but i can't figure out what it is..

PHP seems to prefer to watch at the directory I set in php.ini. (which I think I can't change because of my main website)


bleh... nm.. i just removed the directory i set in the php.ini and its all ok now. :D thx