Dolphin Permissions

Hello,

I have moved my registered dolphin version from www.mysite.com/x to www.mysite.com/y.

When typed www.x.com it used to work well.

Now when typed www.y.com it shows a 500 internal server error.

Cause I did everything the same way as last time (including /inc/header.inc.php) expect setting permissions I wonder if this might be the cause.

Which permissions do I have to set for files and folders? I haven't found a complete list so far.

 

If there's anyone out there to help me, I would really appreciate it!

 

Thanks a lot,

Fabian

Quote · 23 Aug 2012

Check your .htaccess file in the root folder to see if all instances of your site URL are correct.

http://pkforum.dolphinhelp.com
Quote · 23 Aug 2012

Well thanks, but there is nothing about any URL in my .htaccess file. It only tells me about register_globals_off which should be right.

Maybe I try and download the original .htaccess from boonex.com

 

Thanks

Quote · 23 Aug 2012

If that's all that's in your .htaccess file then you have a problem. Get another copy.

For permissions, those are covered in the help section of the site in the installation guide. http://www.boonex.com/trac/dolphin/wiki/DetailedInstall

https://www.deanbassett.com
Quote · 23 Aug 2012

Well, a new .htaccess didn't help. I somehow can't attack files from here so I post my .htaccess below. I simply can't find nothing about URL in there. Maybe somebody else can do better - would be great!

But thanks for the link!

Fabian

Quote · 24 Aug 2012

Options -MultiViews -Indexes

<IfModule mod_php4.c>

php_flag register_globals Off

</IfModule>

<IfModule mod_php5.c>

php_flag allow_url_include Off

php_flag register_globals Off

</IfModule>

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteRule ^blogs/{0,1}$ modules/boonex/blogs/blogs.php [QSA,L]

RewriteRule ^blogs/all/{0,1}$ modules/boonex/blogs/blogs.php?action=all [QSA,L]

RewriteRule ^blogs/all/([0-9]+)/([0-9]+)/{0,1}$ modules/boonex/blogs/blogs.php?page=$2&per_page=$1 [QSA,L]

RewriteRule ^blogs/top/{0,1}$ modules/boonex/blogs/blogs.php?action=top_blogs [QSA,L]

RewriteRule ^blogs/top/([0-9]+)/([0-9]+)/{0,1}$ modules/boonex/blogs/blogs.php?action=top_blogs&page=$2&per_page=$1 [QSA,L]

RewriteRule ^blogs/top_posts/{0,1}$ modules/boonex/blogs/blogs.php?action=top_posts [QSA,L]

RewriteRule ^blogs/top_posts/([0-9]+)/([0-9]+)/{0,1}$ modules/boonex/blogs/blogs.php?action=top_posts&page=$2&per_page=$1 [QSA,L]

RewriteRule ^blogs/tag/([^/.]+)/{0,1}$ modules/boonex/blogs/blogs.php?action=search_by_tag&tagKey=$1 [QSA,L]

RewriteRule ^blogs/tag/{0,1}$ modules/boonex/blogs/blogs.php?action=search_by_tag&tagKey= [QSA,L]

RewriteRule ^blogs/posts/([^/.]+)/tag/([^/.]+)/{0,1}$ modules/boonex/blogs/blogs.php?action=search_by_tag&tagKey=$2&ownerName=$1 [QSA,L]

RewriteRule ^blogs/posts/([^/.]+)/category/([^/.]+)/{0,1}$ modules/boonex/blogs/blogs.php?action=show_member_blog&ownerName=$1&categoryUri=$2 [QSA,L]

RewriteRule ^blogs/entry/([^/.]+)/{0,1}$ modules/boonex/blogs/blogs.php?action=show_member_post&postUri=$1 [QSA,L]

RewriteRule ^blogs/entry/{0,1}$ modules/boonex/blogs/blogs.php?action=show_member_post&postUri= [QSA,L]

RewriteRule ^blogs/posts/([^/.]+)/{0,1}$ modules/boonex/blogs/blogs.php?action=show_member_blog&ownerName=$1 [QSA,L]

RewriteRule ^blogs/posts/{0,1}$ modules/boonex/blogs/blogs.php?action=show_member_blog&ownerName= [QSA,L]

RewriteRule ^blogs/posts/([^/.]+)/([0-9]+)/([0-9]+)/{0,1}$ modules/boonex/blogs/blogs.php?action=show_member_blog&ownerName=$1&page=$3&per_page=$2 [QSA,L]

RewriteRule ^blogs/posts/([^/.]+)/category/([^/.]+)/([0-9]+)/([0-9]+)/{0,1}$ modules/boonex/blogs/blogs.php?action=show_member_blog&ownerName=$1&categoryUri=$2&page=$4&per_page=$3 [QSA,L]

RewriteRule ^blogs/home/{0,1}$ modules/boonex/blogs/blogs.php?action=home [QSA,L]

RewriteRule ^blogs/all_posts/{0,1}$ modules/boonex/blogs/blogs.php?action=all_posts [QSA,L]

RewriteRule ^blogs/popular_posts/{0,1}$ modules/boonex/blogs/blogs.php?action=popular_posts [QSA,L]

RewriteRule ^blogs/featured_posts/{0,1}$ modules/boonex/blogs/blogs.php?action=featured_posts [QSA,L]

RewriteRule ^blogs/tags/{0,1}$ modules/boonex/blogs/blogs.php?action=tags [QSA,L]

RewriteRule ^blogs/show_calendar/{0,1}$ modules/boonex/blogs/blogs.php?action=show_calendar [QSA,L]

RewriteRule ^blogs/my_page/{0,1}$ modules/boonex/blogs/blogs.php?action=my_page&mode=main [QSA,L]

RewriteRule ^blogs/my_page/add/{0,1}$ modules/boonex/blogs/blogs.php?action=my_page&mode=add [QSA,L]

RewriteRule ^blogs/my_page/manage/{0,1}$ modules/boonex/blogs/blogs.php?action=my_page&mode=manage [QSA,L]

RewriteRule ^blogs/my_page/pending/{0,1}$ modules/boonex/blogs/blogs.php?action=my_page&mode=pending [QSA,L]

RewriteRule ^blogs/my_page/edit/([0-9]+)/{0,1}$ modules/boonex/blogs/blogs.php?action=edit_post&EditPostID=$1 [QSA,L]

RewriteRule ^blogs/member_posts/([0-9]+)/{0,1}$ modules/boonex/blogs/blogs.php?action=show_member_blog&ownerID=$1 [QSA,L]

RewriteRule ^blogs/category/([^/.]+)/{0,1}$ modules/boonex/blogs/blogs.php?action=category&uri=$1 [QSA,L]

RewriteRule ^ads/{0,1}$ modules/boonex/ads/classifieds.php?Browse=1 [QSA,L]

RewriteRule ^ads/my_page/{0,1}$ modules/boonex/ads/classifieds.php?action=my_page [QSA,L]

RewriteRule ^ads/my_page/add/{0,1}$ modules/boonex/ads/classifieds.php?action=my_page&mode=add [QSA,L]

RewriteRule ^ads/my_page/edit/([0-9]+)/{0,1}$ modules/boonex/ads/classifieds.php?action=my_page&mode=add&EditPostID=$1 [QSA,L]

RewriteRule ^ads/my_page/edit/([0-9]+)/dimg/([0-9]+)/{0,1}$ modules/boonex/ads/classifieds.php?action=my_page&mode=add&EditPostID=$1&dimg=$2 [QSA,L]

RewriteRule ^ads/my_page/manage/{0,1}$ modules/boonex/ads/classifieds.php?action=my_page&mode=manage [QSA,L]

RewriteRule ^ads/my_page/pending/{0,1}$ modules/boonex/ads/classifieds.php?action=my_page&mode=pending [QSA,L]

RewriteRule ^ads/my_page/disapproved/{0,1}$ modules/boonex/ads/classifieds.php?action=my_page&mode=disapproved [QSA,L]

RewriteRule ^ads/cat/([^/.]+)/{0,1}$ modules/boonex/ads/classifieds.php?catUri=$1 [QSA,L]

RewriteRule ^ads/all/cat/([0-9]+)/([0-9]+)/([^/.]+)/{0,1}$ modules/boonex/ads/classifieds.php?catUri=$3&page=$2&per_page=$1 [QSA,L]

RewriteRule ^ads/subcat/([^/.]+)/{0,1}$ modules/boonex/ads/classifieds.php?scatUri=$1 [QSA,L]

RewriteRule ^ads/all/subcat/([0-9]+)/([0-9]+)/([^/.]+)/{0,1}$ modules/boonex/ads/classifieds.php?scatUri=$3&page=$2&per_page=$1 [QSA,L]

RewriteRule ^ads/entry/([^/.]+)/{0,1}$ modules/boonex/ads/classifieds.php?entryUri=$1 [QSA,L]

RewriteRule ^ads/tag/([^/.]+)/{0,1}$ modules/boonex/ads/classifieds_tags.php?tag=$1 [QSA,L]

RewriteRule ^ads/calendar/{0,1}$ modules/boonex/ads/classifieds.php?action=show_calendar [QSA,L]

RewriteRule ^ads/categories/{0,1}$ modules/boonex/ads/classifieds.php?action=show_categories [QSA,L]

RewriteRule ^ads/tags/{0,1}$ modules/boonex/ads/classifieds.php?action=tags [QSA,L]

RewriteRule ^ads/all_ads/{0,1}$ modules/boonex/ads/classifieds.php?action=show_all_ads [QSA,L]

RewriteRule ^ads/top_ads/{0,1}$ modules/boonex/ads/classifieds.php?action=show_top_rated [QSA,L]

RewriteRule ^ads/popular_ads/{0,1}$ modules/boonex/ads/classifieds.php?action=show_popular [QSA,L]

RewriteRule ^ads/featured_ads/{0,1}$ modules/boonex/ads/classifieds.php?action=show_featured [QSA,L]

RewriteRule ^search/tag/([^/.]+)/{0,1}$ search.php?Tags=$1 [QSA,L]

RewriteRule ^browse/([^/.]+)/([^/.]+)/([^/.]+)$ browse.php?sex=$1&age=$2&country=$3 [QSA,L]

RewriteRule ^m/(.*)$ modules/index.php?r=$1 [QSA,L]

RewriteRule ^forum/groups/(.*)$ modules/boonex/forum/$1?orca_integration=groups [QSA,L]

RewriteRule ^forum/events/(.*)$ modules/boonex/forum/$1?orca_integration=events [QSA,L]

RewriteRule ^forum/store/(.*)$ modules/boonex/forum/$1?orca_integration=store [QSA,L]

RewriteRule ^forum/$ modules/boonex/forum/index.php [QSA,L]

RewriteRule ^forum/(.*)$ modules/boonex/forum/$1 [QSA,L]

RewriteRule ^page/(.*)$ viewPage.php?ID=$1 [QSA,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule .+ - [L]

RewriteRule ^([^/]+)$ profile.php?ID=$1 [QSA,L]

</IfModule>

AddType application/vnd.adobe.air-application-installer-package+zip .air

AddType application/x-shockwave-flash .swf

Quote · 24 Aug 2012

There is nothing in the .htaccess file for urls.

I am pretty sure epaulo meant to check inc/header.inc.php and make sure they are correct.

Unfortunately you not posting valid URLs so we cannot really check your site.

But this confuses me.

I have moved my registered dolphin version from www.mysite.com/x to www.mysite.com/y.

When typed www.x.com it used to work well.

Now when typed www.y.com it shows a 500 internal server error.


It makes no sence because the first line is the same domain, different sub folder and the next two lines reference a change in domain name. So you really have me completely baffled as to exactly what you did.


 

https://www.deanbassett.com
Quote · 24 Aug 2012

 


Which permissions do I have to set for files and folders? I haven't found a complete list so far.

 

 If your asking for the list of files and correct permissions this is it, but it's done via SSH

Taken from the Install help page.

Permissions


USING SHELL CLIENT

 

  1. If PHP is running as an Apache module on Unix systems - log into your shell account using your favorite shell client and change directories to that containing your Dolphin script files. Now run the following commands under your SSH prompt:
chmod 777 ./inc ./backup ./cache ./cache_public ./langs ./media/app ./media/images ./media/images/banners ./media/images/blog ./media/images/classifieds ./media/images/membership ./media/images/profile ./media/images/profile_bg ./media/images/promo ./media/images/promo/original ./tmp ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/HTML ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/CSS ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/Test ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/URI 

chmod 777 ./flash/modules/board/files ./flash/modules/chat/files ./flash/modules/photo/files ./flash/modules/im/files ./flash/modules/mp3/files ./flash/modules/video/files ./flash/modules/video_comments/files

chmod 666 inc/prof.inc.php

chmod 666 ./flash/modules/global/data/integration.dat ./flash/modules/board/xml/config.xml ./flash/modules/board/xml/langs.xml ./flash/modules/board/xml/main.xml ./flash/modules/board/xml/skins.xml ./flash/modules/chat/xml/config.xml ./flash/modules/chat/xml/langs.xml ./flash/modules/chat/xml/main.xml ./flash/modules/chat/xml/skins.xml ./flash/modules/desktop/xml/config.xml ./flash/modules/desktop/xml/langs.xml ./flash/modules/desktop/xml/main.xml ./flash/modules/desktop/xml/skins.xml ./flash/modules/global/xml/config.xml ./flash/modules/global/xml/main.xml ./flash/modules/im/xml/config.xml ./flash/modules/im/xml/langs.xml ./flash/modules/im/xml/main.xml ./flash/modules/im/xml/skins.xml ./flash/modules/mp3/xml/config.xml ./flash/modules/mp3/xml/langs.xml ./flash/modules/mp3/xml/main.xml ./flash/modules/mp3/xml/skins.xml ./flash/modules/photo/xml/config.xml ./flash/modules/photo/xml/langs.xml ./flash/modules/photo/xml/main.xml ./flash/modules/photo/xml/skins.xml ./flash/modules/video/xml/config.xml ./flash/modules/video/xml/langs.xml ./flash/modules/video/xml/main.xml ./flash/modules/video/xml/skins.xml ./flash/modules/video_comments/xml/config.xml ./flash/modules/video_comments/xml/langs.xml ./flash/modules/video_comments/xml/main.xml ./flash/modules/video_comments/xml/skins.xml
chmod 777 flash/modules/global/app/ffmpeg.exe

 

And the settings for the modules folders..

chmod 777 modules/boonex/avatar/data/images/ modules/boonex/avatar/data/tmp/
chmod 777 modules/boonex/forum/classes modules/boonex/forum/conf modules/boonex/forum/layout modules/boonex/forum/log modules/boonex/forum/js modules/boonex/forum/cachejs modules/boonex/forum/data/attachments
chmod 777 modules/boonex/photos/data/files
chmod 777 modules/boonex/files/data/files
chmod 777 modules/boonex/desktop/file
chmod 777 modules/boonex/profile_customize/data/images
chmod 666 modules/boonex/profiler/log/profiler.log
chmod 777 modules/boonex/smtpmailer/data/logs
ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 24 Aug 2012

Also is this a newly setup VPS or Dedicated Server or the same one?

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 24 Aug 2012

Fabian, just taking a shot in the dark but how did you create the new directory you moved Dolphin to? Is it possible you created directory "y" while logged in as root?

 

The reason I ask is normally a 500 error is because something was created under root OR there is a bad command in the .htaccess. I'm guessing if the site was working before you didn't add anything to the .htaccess when you moved it.

 

Also if you have access to the master error_log for the server something should be logged for each 500 errror.

 

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 24 Aug 2012

Newton27:

thanks for the list of permissions. However I do not know the difference between

VPS or Dedicated Server. But I use a rented webspace.

deano92964:

Let's say I own

www.mysite.com (webspace included) and www.y.com (no webspace).

So I create a subfolder with the same name as my second domain:

www.mysite.com/y

Then I redirect

www.y.com to www.mysite.com/y.

The user/member will simply type

www.y.com and will not know that he is redirected to www.mysite.com.

This is how I did it with

www.mysite.com/x and www.x.com and it worked well.

Then I simply downloaded the contents of /x and uploaded them into /y... changed the rout, url, database name and so on... and the site works well under

www.mysite.com/y but www.y.com does not work.

 

mascott:

thanks, this might be. I'll contact my host to see if there is a error log.

Quote · 24 Aug 2012

My only guess is when you made the copy, some of the files got damaged, or perhaps the URL is not pointed to the proper folder.

https://www.deanbassett.com
Quote · 24 Aug 2012

ok I worked it out - the solution was rather simple. My hosting provider told me that each domain that I host with them must be seperately given the right to accept .htaccess files. So right after my email they gave their OK and it is working now.

 

thanks for all the help and feedback!

Quote · 26 Aug 2012

thank you

Quote · 29 Jun 2018
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.