Where is coppermine config file




















It should be obvious that the files have to be uploaded somewhere into some folder on your webserver - this is the albums folder within the folder you installed coppermine on your server. The HTTP uploads go into subfolders of the "userpics" folder which resides within the "albums" folder. Obviously, the coppermine upload script needs write permissions to upload the files there.

PhpMyAdmin is easy to install: just download the distribution, unzip it to your harddrive, edit one config file and upload it to your server.

Here's a small "howto backup a database with phpMyAdmin": get the software, install it remember to password-protect it point your browser to the location you installed it on click your database name in the left frame in "View dump schema of database" select the table s you want to back up press CTRL to select more than one table mark "Structure and data" check "Save as file" check "zipped" DON'T check "Add 'drop table'" - your database will be erased, if you do press "go" save the file on your harddisk depending on the speed of your connection this could take a while.

Edit displayimage. Prevent "hotlinking" by creating a. When UTF-8 is selected, Coppermine chooses your language file based on your browser configuration and stores the value in a cookie. If you get the error message No picture was uploaded. If you have really selected a picture to upload, check that the server allows file uploads It is not Coppermine that doesn't let you delete the picture, it is your FTP server.

The problem is due to the configuration of your server. Try to delete your picture from within the script. If PHP on your server runs under the user nobody then all files created by any PHP script this is not specific to Coppermine will be owned by nobody. There is no way to change that. There have been several threads on this issue on the Menalto Gallery forum and several users have seen their gallery hacked and destoyed because of that. This issue is not specific to Photo galleries, it applies to all PHP scripts that create directories.

Provided you have write access to a directory, you can delete any file it contains, even if you don't have write access to the file itself. So sysadmins should not complain when you ask them to remove some files or directory. The max. If you're with a webhost there's little you can do, but if you're running your own server, check php.

This is most likely a cookie issue: If you're running Internet Explorer 6, you'll have to enable the acceptance of cookies. Click on "Tools" - "Internet Options" - "Privacy" and add your site to the list of sites that are trusted, or set the slider to a lower level.

Sometimes IE will not handle Cookies properly. Close your browser, try deleting all local cookies manually and start your browser again Check if you're running a software that interferes with acceptance of cookies like personal firewalls ZoneAlarm, Tiny, Cookie Washer etc. It's a generally a good idea to have some different browsers on your local machine to check if your site is displayed correctly not only in your favourite browser If you're using subdomains and the dev version of coppermine or some mod on a different subdomain like gallery.

Of course you can "hack some sense" into the scripts, but usually bbs are hard to trick to make them more hack-proof. By default the album appear in the order they were created. If you want to adjust the sorting order, do this: log in as admin "admin mode" "Albums" choose a category in the dropdown list highlight an album by clicking on it once use the up and down buttons to change the position click "apply modifications" Confirm the message "Are you sure you want to make these modifications?

By default, the pics are shown alphabetically when you edit them. To change the sorting order to "by date", edit editpics. When the template. If your menu is in the "footer" you need to modify your theme. Warning : this is quite a complicated hack for a newbie to perform! As suggested in the section " Rename your theme first ", you mustn't start editing the classic theme right away, but create a copy of that theme.

This step is vital to be safe for future updates. What we'll do now is using the output created by your overall site to create a custom template file. To accomplish this, go to the output of your overall site in your browser as an example - you will of course have to do this using your real site's output instead of the sample.

When viewing that page in your browser, do a "right-click" somewhere into an empty place of the output and then choose "source view" from the context menu that should show.

A window should show up that displays the entire HTML-output: highlight that the entire content of the source view and copy it to your clipboard. Then go to your editor e. As a file name, choose template.

The editor should prompt you that there already is such a file, which is OK, as we have created a copy of that file, so it's safe to overwrite it. Now we have the HTML output of your overall site within a template file. In our tutorial example, this is pretty straightforward, but in real life this can be the trickiest bit of coming up with your custom theme, especially if you're still new in HTML and if your output is quite complex, but don't worry: just perform this step by step, carefully removing piece by piece, then previewing if things still work as expected.

If a user is a member of a group that can have its own gallery and this option is turned on then this user will have the permission to hide some of their albums to other users. Note: if you switch from 'yes' to 'no' any current private albums will become public! When enabled, the gallery admin receives an email notification of all pics that wait for his approval depends on the approval settings in " groups ".

The email is sent to the address specified in " General settings ". This option is only recommended with low or medium traffic if users only upload every now and then. When enabled, an additional menu item "Memberlist" is being displayed in the coppermine main menu if a user is logged in, to let him see a list of all users, with stats on their last visits, uploads and quota usage. This is a new feature in cpg1. These fields are displayed within the "file information" area.

They will appear only if you give them a name. Default value is "cpg". Even if you have multiple instances of the script running on the same server you can keep the default value.

When using bbs integration, make sure it differs from the bbs's cookie name. Don't change this unless you know what you are doing. This may prevent you from logging in. When using bbs integration into Coppermine, make sure to use different cookie names for coppermine and your bbs!

CPG will show error messages which are normally suppressed. This is helpful in troubleshooting problems with your gallery or when asking for help on the CPG Support Forums. Turn this feature off if you don't experience problems.

Turn it on option "Everyone" if you are requesting help on the coppermine support board , so the supporters can have a look at the debug output as well. Choose the option "Admin only" when trouble-shooting on your own - debug output will be only visible when you're logged in as admin, regular users or guests won't see the debug output. May be helpfull to trouble-shoot problems with your coppermine install - only recommended if you know a little PHP and you can understand the additional error messages this option shows.

This option only applies if debug mode is enabled. Coppermine can be integrated with the following bulletin boards eg. Coppermine and your bulletin board will share the same user database. The login integration uses your bulletin board cookies, therefore it won't work if your board cookies are not visible by Coppermine. So unless you are an expert, keep things simple and install Coppermine and your bulletin board on the same domain.

Examples :. Important : the cookie names of your bbs and coppermine must not be the same - they must differ! To avoid confusion, make sure to set up both coppermine and your bbs as standalone first. Make sure they both run correctly without integration. Test all features of coppermine like upload, registration etc. Warning: If you already have users and custom groups in your coppermine database when you enable bbs integration, be aware that they will be lost. If your coppermine users have already created private albums and uploaded pics to them, they will be lost as well!

Backup : it is very advisable to backup both your coppermine database before enabling bbs integration, so you can savely go back if the integration fails. In fact you're encouraged to backup your database on a regular base, and especially before applying code changes.

It is recommended that you use the same database for your board and Coppermine in fact it is even mandatory! You will also need to perform the following operations after having unpacked the archive on your harddrive and before uploading the files to your webserver:. Go to the bridge directory and open the file that corresponds to the bulletin board you use eg. At the beginning of the file there are a number a configuration values that need to be set. For phpBB as an example they are the following :.

At the beginning of the file you will find the following lines :. Un-comment the line that corresponds to the bulletin board you use eg.

Create a new file named redir. Visit your coppermine gallery in your browser. To login as an admin, you will need to use the admin username and password of your board. Login using the admin account of your board. Go to the gallery, enter admin mode and click on the "Groups" button. This will synchronize Coppermine groups with those of your board.

The permission you will see for each group will be completely messy, so take some time to set them properly. Each time you add or delete a group in your board you will need to do the operation above in order to keep the synchronisation of the groups. Once the login or logout is performed you won't be redirected automatically to the gallery because your board does not have any function for that.

It's up to you to add a link on your board to get you back to the gallery. Coppermine has a separate language file that make the translation of the script much more easy. The language files are stored in the lang directory. The files with the utf-8 suffix are unicode encoded files. They are automatically generated with the iconv program so there is no need for you to make an unicode version of your translation.

If you select an utf-8 language file as the default one, then the script will be able to automatically select a language file based on the visitor browser configuration.

For instance if the default language file is danish-utf-8 and an english visitor access your gallery, the english-utf-8 language file will be used by the script. If you have translated Coppermine into a language not already supported, please read the translator's guide and visit the Coppermine Web Site at Sourceforge and follow the instructions for submitting your language.

DOM Tooltip 0. It is released under LGPL. This application is opensource software released under the GPL. Because the program is licensed free of charge, there is no warranty for the program, to the extent permitted by applicable law. The entire risk as to the quality and performance of the program is with you. Should the program prove defective, you assume the cost of all necessary servicing, repair or correction. I have a video named 'movie.

Table of contents 1. What is required 2. Installation and setup 2. Upgrading 3. Integrating the script with your bulletin board 5. Translating Coppermine into other languages 7. Known Issues 8. Credits 8. Installation and Setup 2.

Upload all files onto your webserver make sure to use the correct ftp mode CHMOD the folders albums and include to or , depending on your server config - this step is really important, don't skip it! There are a lot of tutorials for beginners how to use chmod available: search chmod tutorials with google. In order for a user to be allowed to upload a file in album two conditions must be met: The user must be part of a group that can upload files.

There must be at least one album where " Visitors can upload files " has been set to " Yes ", OR The user has created an album in the 'user galleries', if allowed. The same applies to picture rating and comment posting.

Back to top 2. If your webhost is running PHP in safe mode but is misconfigured, you may need to do the following : With a FTP program, change the mode of Coppermine's " include " directory on your server to Do the same for the " albums " and " userpics " directories. Back to top 3. Install version 1. Note that in order to use the upgrade script, tables for version 1.

Copy the " albums " directory of version 1. Login to your 1. You must click the link which comes up on the bottom of the page to complete the upgrade!. Delete upgrade If you get an error, go to Coppermine 1. This upgrade process leaves your v1. Unpack the archive If the file install. If you have not already done so, create a folder called "edit" within your "albums" directory - this folder will be used by coppermine as a temporary folder, do not ftp-upload files there.

Make sure the new "edit"-folder is CHMODed the same way your albums-directory is or , depending on your server's config Run the file "update. This will update your coppermine install by making all necessary changes in the database. If you have made a custom theme, apply the changes that were introduced in the themes structure to your custom-made theme - refer to the theme-upgrade guide. You can not use language files from older versions of Coppermine - make sure to only have the language files that come with this package inside your lang folder delete or rename all files from older versions within the lang folder Please note: as there have been changes both in the coppermine files and the database from cpg1.

Back to top 4. When you are in admin mode, you can administer your gallery and the following menu bar appears : When you are in user mode you are just a regular user and can't access the admin pages.

Make sure not to ban yourself! Use this feature with extreme care, since most users don't have static IP addresses, this feature should only be used if you really know what you're doing. Display Ecards View the ecards sent by users. Admin Tools Resize Pictures Collection of utilities to; Rebuild or resize intermediate pictures and thumbnails.

Use this if you have changed the settings for thumbnail or intermediate images in config, or if you have to replace corrupt versions. Select the radio button for this action, then choose to rebuild the thumbnails, intermediates, or both.

This uses a lot of server resources, so if you have timeout problems, try doing it in smaller batches. Delete full-size pictures. Use this to save space on your webspace. When selected, Coppermine checks to see if an intermediate copy exists, and if it does, it deletes the original sized picture, then re-names the intermediate.



0コメント

  • 1000 / 1000