forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: alphenit on August 20, 2006, 11:49:19 am

Title: Changed Apache to Virtual Hosting no nav. buttons anymore **FIXED**
Post by: alphenit on August 20, 2006, 11:49:19 am
Hi,

I've been using coppermine for quite some time and I love this program!!!

My coppermine installation is installed in a subdir /var/www/coppermine
I always used a index.php in my rootdir to redirect users to the correct subdir.

I recently put up another domain and a blog and the redirecting became difficult and annoying.
So I decided to change my apache setup to virtualhosting..everything seems to work perfectly except when I click on an image in coppermine, there's "stuff" missing like the navigation buttons..please check for example:
http://www.mydomain.com/displayimage.php?pos=-2542 (http://www.mydomain.come/displayimage.php?pos=-2542) or any other image on my gallery. please use Internet Exploder..Firefox handles the page in a different way apperently

Can somebody help me on how to get my nav buttons back?
I already tried changing the path where coppermine was installed, (http://webserver/coppermine/) to other paths but that is not the solution.
My debug info:
Code: [Select]
USER:
------------------
Array
(
    [ID] => 36e65f149d3907a0041a888fbb0aaef6
    [am] => 1
    [liv] => Array
        (
            [0] => 2542
            [1] => 2540
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => beheer
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg135_filetypes; (0.001s)
    [1] => select * from cpg135_plugins order by priority asc; (0s)
    [2] => delete from `coppermine`.cpg135_sessions where time<1156062942 and remember=0; (0.002s)
    [3] => delete from `coppermine`.cpg135_sessions where time<1154856942; (0.001s)
    [4] => select user_id from `coppermine`.cpg135_sessions where session_id=md5("3a23a2e0057f94894541f819cdc233546371020b9fa017c799689374bc03c9d8aa"); (0.001s)
    [5] => select user_id as id, user_password as password from `coppermine`.cpg135_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `coppermine`.cpg135_users AS u INNER JOIN `coppermine`.cpg135_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `coppermine`.cpg135_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg135_usergroups WHERE group_id in (1) (0.001s)
    [9] => SELECT group_name FROM  cpg135_usergroups WHERE group_id= 1 (0.001s)
    [10] => update `coppermine`.cpg135_sessions set time='1156066542' where session_id=md5('3a23a2e0057f9489c1f819cdc233546371020b9fa017c799689374bc03c9d8aa'); (0.001s)
    [11] => SELECT user_favpics FROM cpg135_favpics WHERE user_id = 1 (0.008s)
    [12] => DELETE FROM cpg135_banned WHERE expiry < '2006-08-20 11:35:43' (0.004s)
    [13] => SELECT * FROM cpg135_banned WHERE (ip_addr='172.16.0.1' OR ip_addr='172.16.0.1' OR user_id=1) AND brute_force=0 (0.001s)
    [14] => SELECT COUNT(*) FROM cpg135_pictures WHERE approved = 'NO' (0.001s)
    [15] => SELECT value FROM cpg135_config WHERE name = 'theme' (0.003s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.10-16 - OK
------------------
mySQL version: 4.0.24_Debian-10sarge2-log
------------------
Coppermine version: 1.4.8(stable)
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.0.24
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.2
Linked Version 1.2.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/share/php:/usr/share/pear | .:/usr/share/php:/usr/share/pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 1.08 seconds - 16 queries in 0.025 seconds - Album set : ; Meta set: ;

I also checked my apache error log and there plenty of errors:
Code: [Select]
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/rating1.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/rating3.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/rating2.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/rating5.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/rating4.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_lol.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_neutral.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_smile.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_biggrin.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/prev.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_sad.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_cry.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_cool.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_surprised.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_confused.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_redface.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_eek.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_rolleyes.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_mad.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_wink.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_idea.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_exclaim.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/smiles/icon_question.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/powered-php.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/powered-mysql.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/valid-xhtml10.gif
[Sun Aug 20 11:35:37 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/valid-css.gif
[Sun Aug 20 11:35:43 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/descending.gif
[Sun Aug 20 11:35:43 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/help.gif
[Sun Aug 20 11:35:43 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/ascending.gif
[Sun Aug 20 11:35:44 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/powered-php.gif
[Sun Aug 20 11:35:44 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/powered-mysql.gif
[Sun Aug 20 11:35:44 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/valid-xhtml10.gif
[Sun Aug 20 11:35:44 2006] [error] [client 172.16.0.25] File does not exist: /usr/share/images/valid-css.gif
It looks like apache is looking in /usr/share/images instead of /var/www/coppermine/images
I also searched the forum from front to back but to no avail....

Many thanks in advance for any help you can offer..
Title: Re: Changed Apache to Virtual Hosting no nav. buttons anymore please help
Post by: alphenit on August 21, 2006, 06:45:40 pm
I fixed it....!  ;D

There was a line : Alias /images/ /usr/share/images/ somewhere in my httpd.conf...

I fixed it by putting a
Alias /images/ /var/www/coppermine/ line in my virtual hosting section for my domain..