Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 07:39:30 PM

Pages: [1]   Go Down
  Print  
Author Topic: temporary site no access to interior file  (Read 910 times)
mca
Trekkie
**
Offline Offline

Posts: 12


« on: February 19, 2009, 04:57:35 PM »

I have a temporary website (one that I am waiting to point my domain to) so the address is http://mjtent.com/~abr/index.php

I am running Zikula and I have a module that uses fckeditor so it accesses an html file (modules/abrTracker/FCKeditor/editor/fckeditor.html) this works fine with a regular website ... I have several that are using it fine.

I think it has something to do with the ~abr/ which is added to the front of this call and I am getting the following error:
You don't have permission to access /~abr/modules/abrTracker/FCKeditor/editor/fckeditor.html on this server.


So I changed the basedir so that it would actually access the correct path: /home/abr/public_html/modules/abrTracker/FCKeditor/editor/fckeditor.html

But I still get the same error.

I think apache is preventing me from doing this but I am not sure how to get around it so I can keep testing before I go live with the domain name.

Any ideas?
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1394



« Reply #1 on: February 19, 2009, 10:15:38 PM »

Hi Mca,

Indeed Apache may have no permissions to run a script to edit something on the site being accessed via username of another account. It is hard to give specific advise, without knoweledge of how php is configured in Apache on your server for this case. I usually recommend using a subdomain for testing of new site, if there is a working domain installed on the server. For your case, I would park or create a domain alias called abr.mjtent.com on the site that is being tested and then would be able to access it via that domain name if mjtent.com is already uses nameservrs on the same server.

Please advise if this works for you, otherwrise please mention the control panel installed on your server as well as how php is configured there.
Logged

Kind Regards,
Vlad Artamonov
mca
Trekkie
**
Offline Offline

Posts: 12


« Reply #2 on: February 19, 2009, 11:07:03 PM »

Thanks!
I was hoping to avoid having to create mysql database on another site. And then having to move all the data.

Are you saying it is possible to use my mjtent.com/~abr/ and have it think it is abr.mjtent.com? Or do I have to put the physical site on the subdomain and point the temporary site to the subdomain?

If it is the former could you explain the steps in detail... if it is the latter then I know what to do... I was just hoping to avoid that step.

Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1394



« Reply #3 on: February 22, 2009, 10:04:29 PM »

Hello,

If I understood your original post correctly, you have at least two accounts on your server: one for mjtent.com and another for the site in testing with username abr. If this is the case, yes, you will be able to use the subdomain to access the site after seting up the subdomain on the account with username abr. There will be no DNS modification needed for that, if nameservers of mjtent.com are pointed to the server already.

For MySQL databases, it is possible to access them even if they are created on another account. Just put the needed username, password and database name into the connection string of the scripts.
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to: