coppermine-gallery.com/forum

Support => Older/other versions => cpg1.1d PHPnuke Support (deprecated) => Topic started by: moffl on November 02, 2003, 12:56:00 AM

Title: apache server and coppermine
Post by: moffl on November 02, 2003, 12:56:00 AM
I am looking for some information as to what the rest of the forum is doing besides being hosted.

I have apache 2.04, mysql and php but i am having trouble setting the server up everytime i go to upload a file into ausers account i am told that the server possibly isn't set for uploading.  I know that Apache is a web server and noy a ftp server.  So are you running ftp server or have you got apache configured for uploads

thanks

lorne
Title: apache server and coppermine
Post by: DJMaze on November 02, 2003, 01:03:46 AM
PHP needs to accept file uploads
Also activate the GD module

For info check www.php.net
Title: apache server and coppermine
Post by: gtroll on November 02, 2003, 01:05:05 AM
Make sure your userpics and album dir are set to 0777
php as a module? you should try setting the permission in your config  "Default mode for directories" to 0766 instead of 0755
Title: apache server and coppermine
Post by: moffl on November 02, 2003, 01:28:12 AM
I have the following in my php.ini
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = c:\tmp

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

c:\tmp does exist

gd is installed and working

album and userpics are set to full access

I really don't understand last line  (you should try setting the permission in your config "Default mode for directories" to 0766 instead of 0755)
Title: apache server and coppermine
Post by: moffl on November 02, 2003, 01:35:47 AM
PS I FORGOT TO TELL YOU I AM RUNNING WIN2K BOX WITH THE ABOVE
Title: apache server and coppermine
Post by: DJMaze on November 02, 2003, 01:48:33 AM
php.ini:
activate gd module

Apache httpd.conf:
add the PHP module and settings

THAT'S ALL

I only did that to activate it on Win2K and it works.

I also put an Alias for my coppermine directory which is placed on a other drive. But that's just a extra advantage in httpd.conf
Title: apache server and coppermine
Post by: moffl on November 02, 2003, 02:10:26 AM
DJMAZE:

Sorry to be a PEST i have it all configured as you but i don't know the setting you are talking about in httpd file after module is loaded this is what i have to load module.

LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php

[/quote]
Title: apache server and coppermine
Post by: DJMaze on November 02, 2003, 04:47:27 AM
<IfModule mod_dir.c>
    DirectoryIndex index.html index.php
</IfModule>

<IfModule mod_mime.c>
    AddType application/x-httpd-php .php


that's it then it works