I need zen as primary address

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

  • Do you mean sub-domain or sub-folder?

    `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.
  • Well, no. I want this: http://fotosbyerika.com. That's where I want zp. So, I guess that is my domain.
  • OK, I'm making progress but now I have several other questions.

    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?
  • acrylian Administrator, Developer
    Warnings are just warnings. These are because if you upgrade and for some reason forget to update files doing that. This might cause issues if you use older versions of some files with newer installations.

    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.
  • http://fotosbyerika.com/zp-core/setup.php Click on that and see the problems I'm having. Why am I having them?

    If you go to http://fotosbyerika.com you will see how ugly it looks.
  • Those warnings are just warnings.

    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.
  • This is not an upgrade. This is a new installation. I'd love to proceed but the admin panel is so unattractive I can't stand to look at it.

    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.
  • acrylian Administrator, Developer
    Something is not installed or working correctly on your server and I can't access the setup file to see what else it complains about. Please don't confuse the frontend (=theme/website) and the backend (=admin).

    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..
  • BTW, I tried the .htaccess thing but that just did not work at all. I got a huge error message. besides, again, it doesn't tell you where in the .htaccess you should add the line. Like I said before, the instructions are not good.
  • acrylian Administrator, Developer
    What line do you want to add where? You normally do not need to add anything to the httaccess file as the setup script creates that for you.

    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.
  • I think it's important to note, as acrylian said, that these warnings are for settings on your server, not Zenphoto. Zenphoto attempts to make sure that it works as well as it can on your server, and sometimes that entails changing certain settings. There are no set-in-stone instructions that work for every single server to make everything work perfectly.

    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.
  • acrylian Administrator, Developer
    @kagutsuchi: I guess I can hand this thread over to you...:-) (btw, just visited your site and wanted to note that I get quite some errors.)
  • @acrylian: Oops, I didn't know that those were visible on the actual site... (they aren't for me). I've been meaning to go back and fix those old coding errors in my theme. Thanks for letting me know. :)
  • I have never had a problem with installing programs where my server is concerned. I've run blogs and photo galleries for years.

    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?
  • acrylian Administrator, Developer
    It is actually pretty forward. You indeed have just to upload the contents of the Zenphoto folder downloaded via FTP and run setup. But of course sadly not all servers are the same and not always it runs that smoothly.

    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.
  • My host is a pain in the rear, at times. I don't think any of them speak good English. But, they seem to have all the latest equipment so things should run OK. I'm waiting to hear back from them.
  • My host claims I have to create that file (php.ini) That there is no sample. I'm waiting for the rest of the answer.
  • This was their response:

    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?
  • At this point I suggest you find a more responsive ISP. We really cannot be the prime ecucators on such basics as PHP installations. I have never encountered a site that did not have a default PHP.ini file for its customers. I wonder if PHP even works without it.

    Please visit http://php.net/manual/en/configuration.php
  • The following is what my ISP has. I don't know if that helps.

    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.
  • acrylian Administrator, Developer
    The setup looks actually good. Try to add the line before the "RewriteEngine On". I guess you should consider to get a host with better support if they can't answer you these questions...
  • Well, that didn't work. I got the following error:
    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
  • acrylian Administrator, Developer
    Probably your host does not allow changing this values via htacces. As you cited they told you to create a php.ini file for your directory. So do that. How to do that ask either theme or search the web. This is not really a Zenphoto problem, sorry.
  • Like I said at the very beginning, instructions are just terrible. I finally got it installed, thanks to this site http://www.cyberward.net/blog/2009/05/installing-zenphoto-on-1and1/comment-page-1/#comment-4300

    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.
  • So maybe you should volunteer to produce better instructions now that you have the process mastered.
  • acrylian Administrator, Developer
    Sorry about that you are feeling our instructions are terrible. I can not proof that with several normal shared host over here (Germany). As kagutsuchi explained on your other thread we can't possibly foresee every special configuration of every server of every host out there. You really need to undestand that. 1and1 is known over here, too, and it is one of the more problematic "mass" hosters as well.

    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
Sign In or Register to comment.