Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How do you confiure a URL for LAMP Installation with Coppermine Example?  (Read 4549 times)

0 Members and 1 Guest are viewing this topic.

rjs

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

I followed the instructions in the Linux Bible, 2007 Edition,
to install LAMP, Apache2 + MySQL + PHP5.
I tested my installation with a file /var/www/info.php containing
just one line: <?php phpinfo(); ?>. Firefox responds with an
information page when you enter this url: http://localhost/info.php.

Why does Firefox responds to http://localhost/info.php?
I cannot find the directive ServerName localhost anywhere.

I get the following message:
"Could not reliably determine the server's fully qualified domain name,
using 127.0.1.1 for ServerName..."
when I restart Apache2 with sudo /etc/init.d/apache2 restart?
Should I be concerned with this?

I came upon https://help.ubuntu.com/11.04/serverguide/httpd.html.
This reference was most helpful but questions persist.
My main question concerns urls. The Ubuntu reference contains this statement:

The ServerName directive is optional and specifies what FQDN your site should answer to. The default virtual host has no ServerName directive specified, so it will respond to all requests that do not match a ServerName directive in another virtual host. If you have just acquired the domain name ubunturocks.com and wish to host it on your Ubuntu server, the value of the ServerName directive in your virtual host configuration file should be ubunturocks.com. Add this directive to the new virtual host file you created earlier (/etc/apache2/sites-available/mynewsite).

For now, I'm concerned with getting just one site up and running,
a simple Coppermine Photo Gallery for family photos.
Should I create a new virtual host for this site or should I set it up under the
system supplied default site?

I have to acquire a domain name. Is this done through a company like GoDaddy.com?

Suppose I have acquired a domain name, say rjs.com (which is in use).
Would I then add the directive: ServerName rjs.com
to the file /etc/apache2/sites-available/mynewsite and then link this file
/etc/apache2/sites-enabled/000-mynewsite? (This 000 syntax is used for
the default virtual host; /etc/apache2/sites-enabled/000-defualt is linked to
/etc/apache2/sites-available/default on my system's installation.)

/var/www/ is called my web directory and I plan to place the files of my
Coppermine installation in a subdirectory, say /var/www/galleria.
If this is correct then I would add also the appropriate ServerAlias directive
and visitors would access my site using the url http://www.rjs.com/galleria.
Is this correct?


My other option is to use the existing default virtual host.
Would I then add the directive: ServerName rjs.com to
my existing file /etc/apache2/sites-available/default?
Is this a viable option? Which do you suggest?

I'm grateful to have this forum to resort to for help.
Many thanks and kind regards - Randy
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764

Sorry, but we cannot support your web server configuration.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.