Created cPanel subdomain, files inside the subfolder showing 500 error - .htaccess

I have setup a subdomain in cpanel like market.domain.com. The document root for this is /public_html/market/. I have places PHP files here
/public_html/market/info.php - this is working
/public_html/market/api/info.php - not working
any help for this will be much appreciated.
TIA
500 internal server error

You need to check 3 things:
Check if there is any .htaccess file in the api or market directory. If yes, please rename the .htaccess file to .htaccess.original and see if the sub domain URL is working. If its working, then review the code in the .htaccess file.
Check the directory permission / ownership to see if its correct.
Check the error logs to find out exactly whats causing the problem.

Related

Missing htaccess file on server?

i've just created a website. It's hosted by GoDaddy and I use cPanel to manage it.
all of my files relating to my website are stored in a public_html folder.
The problem I am having is that I cannot seem to access different pages I have uploaded, I'll show what I mean.
www.website.com --> works fine (defaults to home.html)
www.website.com/About/about.html --> works fine
www.website.com.com/About --> I get the error below:
"You don't have permission to access /About/ on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."
I would like website.com/About to display about.html.
I think it may be something to do with the .htaccess file? I may of clumsily deleted it at some point.
I have tried to set permissions to 777 on all my public_html files, but I get the same error.
I have tried to locate my htaccess file, but I think its hidden by default. I've tried to find it using a terminal and connecting to my site - also with no success.
Any help to solve this issue would be great cheers!
If /About/ is a directory and these are static HTML files, rename about.html to index.html.
Servers will look for index.html in a directory if nothing else was specified in the URL.

Can't access files on Magento root

I am looking to install an SSL on my domain name and in order to do so I need to upload a .htm file to the root and access it via the browser, but when I do so, I keep getting a 404 error - this is with any .html page on the root - nothin shows up.
I have edited my htaccess file as well as deleting it all together and still no luck.
The file i'm trying to reach is: http://www.elmershardware.co.uk/xtt5ughh.htm
If someone could help point me in the right direction of fixing this I'd be really appreciative
Thanks
G
I think there is nothing to do with .htaccess. It's something related with your apache conf.
In your apache configuration file check if in DirectoryIndex appears
index.htm as a entry, add it if it doesn't appears and restart apache. Then , try again

magento bae url not working after dulicate site

I have a site http://www.gingerlily.fr
i copy those file and create sub directory on root called test and uploaded the file to it
duplicated db and apply update for all base url db and other configurations. (http://www.gingerlily.fr/test)
but the problem is when i access http://www.gingerlily.fr/test
site i always show root urls and other js and images loads from root magento installation. i try a day for thi but no luck.
can anyone help me for this something wrong with httacess file or any other wrong with this ?
thank you
I have seen your http://www.gingerlily.fr/. Correct me if i am wrong your trying to duplicate your site to test directory. But in magento your can't copy and duplicate site like PHP /Html here your files of magento site need to be first install and you can replace your module and theme files.

HTAccess in PHPPennyAuction

I've just had a problem from last few hours. For a client I needed to redirect some urls to other specific urls through his .htaccess files. I just went through his ftp from Filezilla as he has cloud hosting, there wasn't any cpanel. I just had a .htaccess file which contains only 301 redirects, I uploaded it into /content folder.. Then I opened the site and saw it dead, before it it was working fine. Now whenever I open the site I receive this
Upgrade in progress.
Copy changes to updated version(complete 4:45)
Copy settings to updated version(complete 5:00)
Back up whole site.(complete 6:44)
Back up the database(complete 6:45)
Upgrade database(complete 6:49)
Upload new code
If I try to go to /index.php I receive this.
phpPennyAuction
phpPennyAuction is not yet completely installed.
Please check the following:
That both of your .htaccess files are present and correct.
That your server has mod_rewrite installed
That your server is configured with AllowOverride set to All
If you need further assistance, please contact phpPennyAuction Support.
All contents © 2010 Scriptmatix Ltd. phpPennyAuction
Before just putting .htaccess file everything was fine. I just removed my .htaccess file, renamed the cache folder still the same problem. I might pay a little cup of coffee to anyone who helps fixing in this.
P.S Don't advise to ask on their forum, just contact their support the guy unofficially said "I'm not sure what's the problem I will charge 300 USD".
It is a big trouble for me, help appreciated.
Thanks
Kazim
I think that when you uploaded the htaccess file you overwrote the htaccess file used by phpPennyAuction.
Try to find the original htaccess file(s) and put them back. They should be in the original "installer" or download.
After that you could put the content of your 301 file a the top of the htaccess.
You need the .htaccess file that is provided in the folder:
install-data/packages/01/phppa.zip/.htaccess

deny from all in .htaccess not blocking file in the corresponding folder

I have an .htaccess file in the folder called folder and another file, called form.html in the same folder
When I try to reach the folder (by entering http://blablabla/folder/), it does block the access and I am getting an error 403 but when I enter the exact URL of the file http://blablabla/folder/form.html anf hit enter, I can access the file as easily as if I haven't put any .htaccess file.
Am I doing something wrong?
Am I missing something, should I use something like or
Sorry if the question is really basic...
.htaccess is a container for directives for your apache web server that apply to that directory and below only. What directives have you got in your .htaccess file?
The behaviour you outline above is how apache should behave with no .htaccess folder.
What is it that you are wanting to happen?

Resources