I'm sure you don't know what I'm talking about. Sorry. I have the following domain:
http://fotosbyerika.com. I want to install zen there and not have it show up as a sub-domain. But every example I look at has it as a subdomain. eg:
http://yoursite.com/gallery. I don't want that.
Is that possible?
I've used coppermine for years but am switching because there are not a lot of good themes and the guys in the forum are snippy.
I've tried Gallery 2 but found it over my head. You need to be a techie to know what on earth they're talking about.
I need a site so I can showcase my images and hopefully sell them online. That's the plan, anyway.
Can you help?
Comments
`http://yoursite.com/gallery/` is a sub-folder.
`http://gallery.yoursite.com/` is a sub-domain.
Assuming that you actually meant sub-folder, you can simply install Zenphoto to the root of your domain instead of in a folder. This will mean that `http://yoursite.com/` will be the URL of your gallery.
I'm getting some warnings, eg:
Warning!
Perhaps there was a problem with the upload. You should check the following files:
zp-core/zp-extensions/captcha/zenphoto.php
zp-core/zp-extensions/class-textobject/textDefault.png
zp-core/zp-extensions/class-video/3gpDefault.png
zp-core/zp-extensions/class-video/flvDefault.png
zp-core/zp-extensions/tiny_mce/plugins/advimage/langs/da_dlg.js
zp-core/zp-extensions/tiny_mce/plugins/media/langs/no_dlg.js
zp-core/zp-extensions/tiny_mce/plugins/paste/langs/hu_dlg.js
zp-core/zp-extensions/tiny_mce/plugins/style/langs/nl_dlg.js
Those files are all where they should be so why am I getting this warning?
Also:
Warning!
You should consider disabling magic_quotes_gpc. For more information See What is magic_quotes_gpc and why should it be disabled? in the Zenphoto troubleshooting guide.
Warning!
Setting mbstring.internal_encoding to UTF-8 in your php.ini file is recommended to insure accented and multi-byte characters function properly.
Where would I find these files?
Regarding magic quotes, mbstring and the php.ini you have to contact your host. But this is also a warning and more info about magic quotes on our troubleshooting as written.
If you go to http://fotosbyerika.com you will see how ugly it looks.
The first warnings about there being a problem with the upload simply indicates that there might be a problem with those files. If you are sure that they are uploaded correctly, then those warnings can safely be ignored.
The second warning can be solved by looking at the Zenphoto troubleshooting guide on this website.: http://www.zenphoto.org/2009/03/troubleshooting-zenphoto/
The third warning is not something that necessarily needs to be fixed, but it probably should be fixed. You might want to ask your server provider about changing `mbstring.internal_encoding` for you.
However, you can safely proceed with the Zenphoto installation without addressing the warnings. It's entirely up to your discretion.
In the troubleshooting site, it doesn't tell me where I can find the php.ini file. I did a search on cpanel and didn't find any.
I don't like warnings. Warnings spell trouble. If magic_quotes is no good, why is it included?
Can you help me? Gee, the instructions should be a lot clearer. I want the admin panel to look like the screen shots you're showing.
In the troubleshooting site, it doesn't tell me where I can find the php.ini file.
No, because that is on your server. You need to ask your host if you have access to that at all. That is not often the case on normal shared hosts. It is however possible to do some settings via the .htaccess file. But that only your provider can tell you.
Also, something to ask your host: Safari complains that the certificate of your server is not valid. I suggest to contact your host..
You really need to understand that thte mbstring and such are warings about settings on YOUR server, not Zenphoto. And as said they are just warnings.
Your provider should be able to provide you with the necessary information to fix these warnings if you're still worried. The warnings should not interfere with Zenphoto's functionality, however, so it should work just fine regardless.
The problems you're experiencing with the pages being unattractive are because, for some reason, the style sheets don't seem to be properly applied to the pages. Why this is, I don't know, but you may want to make sure that your installation is complete and correct.
Now, as to the magic quotes, this is from the troubleshooting page:
You can disable magic_quotes_gpc by editing your PHP.ini file. Change the line
magic_quotes_gpc = On to
magic_quotes_gpc = Off You can also disable magic_quotes_gpc in your zenphoto .htaccess file by adding the line
php_value magic_quotes_gpc off
It doesn't tell me where in .htaccess I'm supposed to add the line.
Also, I've posted a help message on my server's support page.
Am I doing something wrong with the installation? I downloaded it via filezilla. I've checked each and every warning. The initial instructions seem to be pretty straightforward. Because fotosbyerika.com is an addon directory, I created a folder with that name, opened zenphoto folder, highlighted and copied everything and uploaded to my fotosbyerika.com folder. It should work, don't you think?
About changing php.ini values via htaccess: That also needs to be supported by your type of webspace. It also does not work on all, so only your host can answer if your does, too.
You can create your own php.ini file which you can include in your main public_html folder or any folders within your public_html. You can specify any necessary settings which you need to alter within this php.ini file
Please set the proper settings for your php.
But what are the proper settings?
Please visit http://php.net/manual/en/configuration.php
Hosting package Business2y
Server Name porsche
cPanel Version 11.24.5-STABLE
cPanel Build 38506
Theme x3
Apache version 2.2.14 (Unix)
PHP version 5.2.11
MySQL version 5.0.51a-community-log
Architecture i686
Operating system Linux
Shared Ip Address 74.55.115.2
Path to sendmail /usr/sbin/sendmail
Path to PERL /usr/bin/perl
Kernel version 2.6.18-164.el5
cPanel Pro 1.0 (RC1)
Somebody said I could add a line to .htaccess and have the same result. Where in htaccess do I add the line? The following is my .htaccess file.
# htaccess file version 1.2.8.0;
# When Zenphoto requires changes to the rewrite rules:
# First make a copy of this file as 'oldhtaccess' in the zp-core folder so setup can test for unmodified files
# Update the above and the define in setup.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^admin/?$ zp-core/admin.php [R,L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^albums/?(.+/?)?$ $1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]
RewriteRule index\.php$ index.php [L,QSA]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^page/([A-Za-z0-9_\-]+)/?$ index.php?p=$1 [L,QSA]
RewriteRule ^page/([A-Za-z0-9_\-]+)/([0-9]+)/?$ index.php?p=$1&page=$2 [L,QSA]
RewriteRule ^(.*)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]
RewriteRule ^(.*)/page/([A-Za-z0-9_\-]+)/?$ index.php?album=$1&p=$2 [L,QSA]
#### Rewrite rule addition for search
RewriteRule ^page/search/fields([0-9]+)/(.*)/([0-9]+)/?$ index.php?p=search&searchfields=$1&words=$2&page=$3 [L,QSA]
RewriteRule ^page/search/fields([0-9]+)/(.*)/?$ index.php?p=search&searchfields=$1&words=$2 [L,QSA]
RewriteRule ^page/search/archive/(.*)/([0-9]+)/?$ index.php?p=search&date=$1&page=$2 [L,QSA]
RewriteRule ^page/search/archive/(.*)/?$ index.php?p=search&date=$1 [L,QSA]
RewriteRule ^page/search/tags/(.*)/([0-9]+)/?$ index.php?p=search&searchfields=tags&words=$1&page=$2 [L,QSA]
RewriteRule ^page/search/tags/(.*)/?$ index.php?p=search&searchfields=tags&words=$1 [L,QSA]
RewriteRule ^page/search/(.*)/([0-9]+)/?$ index.php?p=search&words=$1&page=$2 [L,QSA]
RewriteRule ^page/search/(.*)/?$ index.php?p=search&words=$1 [L,QSA]
#### Rewrite additions for zenpage
RewriteRule ^pages/?$ index.php?p=pages [L,QSA]
RewriteRule ^pages/(.*)/?$ index.php?p=pages&title=$1 [L,QSA]
RewriteRule ^news/?$ index.php?p=news [L,QSA]
RewriteRule ^news/([0-9]+)/?$ index.php?p=news&page=$1 [L,QSA]
RewriteRule ^news/category/(.*)/([0-9]+)/?$ index.php?p=news&category=$1&page=$2 [L,QSA]
RewriteRule ^news/category/(.*)/?$ index.php?p=news&category=$1 [L,QSA]
RewriteRule ^news/archive/(.*)/([0-9]+)/?$ index.php?p=news&date=$1&page=$2 [L,QSA]
RewriteRule ^news/archive/(.*)/?$ index.php?p=news&date=$1 [L,QSA]
RewriteRule ^news/(.*)/?$ index.php?p=news&title=$1 [L,QSA]
RewriteRule ^(.*)/image/(thumb|[0-9]{1,4})/([^/\\]+)$ zp-core/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^(.*)/image/([^/\\]+)$ zp-core/i.php?a=$1&i=$2 [L,QSA]
RewriteRule ^(.*)/album/(thumb|[0-9]{1,4})/([^/\\]+)$ zp-core/i.php?a=$1&i=$3&s=$2&album=true [L,QSA]
####
# Catch-all - everything else gets handled in PHP for compatibility.
RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA]
</IfModule>
You know that big window with the error messages? Why does it say Upgrade. This is a new installation, not an upgrade.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@fotosbyerika.ceconn.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_python/3.3.1 Python/2.4.3 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.25 mod_perl/2.0.4 Perl/v5.8.8 Server at fotosbyerika.com Port 80
He walked me through it as he did others. Also, you'll notice there was no big deal made over the php.ini file. I simply followed his instructions and lo and behold it worked.
We are small frequent team we are dependent on community contributions as well. Although that is really server specific and NOT a Zenphoto problem we surely can add a link to that post to our user guide's troubleshooting entry but if it is not know to us we can't do that. I have posted a comment on that site.
Update: The entry is now here, extending an older entry regarding 1&1: http://www.zenphoto.org/2009/03/troubleshooting-zenphoto/#6