This seems like it should be simplpe so if someone has a link that answers this I'll be happen with that and if this should be posted somewhere else please let me know.
What I'm trying to do
I am trying to install Drupal in a sub folder, and just have it work in the sub folder.
www.example.com/drupal/ so when i go to www.example.com/drupal/ i'll see the install.
The issues
All I get is a blank white screen not
I have changed the .htaccess files
adding
RewriteBase /drupal
I have tried reinstalling everything but still just a blank white screen.
there is no .htaccess file in the root directory.
Any help or links would be appreciated, I have been looking for a step by step or common issues but all the links I found are about rewrite the .htaccees so the sub directory is the main site or moving a site live.
Thanks
Wow always something simple, the server was set with php4 I had to move it to another server.
this took me 2 days to notice this.
so if you have a white screen make sure you check your php settings ;)
Related
Putting our company website on localhost for testing, etc. All working OK, apart from WP-Admin: lets me login OK, but the format of the site is unusable - image attached.
Have checked permalinks, etc. which are working OK for rest of website. It is just WP-Admin that I'm having trouble with.
Anyone come across this before?
Thanks in advance.
Darren.
WP-Admin screenshot
Follow this steps
You have a problem in CSS style link, it may cause on your database or maybe on one file which has been hardcoded.
Copied over WP-Admin files from a fresh install and now works.
Thanks for the nudge in the right direction, Babak.
I'm having a weird redirection issue and can't figure out how to solve it. I installed my Wordpress in a directory (called /Cafe/ ) for my KatsCafe.org website and all the posts are being redirected just fine. But a huge number of my images are messed up. They won't redirect without the /Cafe/ in the URL, while none of my older URLs for images included a directory. My site is graphic/image heavy and many of them show up in Google Image searches so I am losing a lot of traffic over this.
I can't figure out how to redirect from two separate file paths to the current one.
My oldest file path was from when I installed Wordpress in the root directory with a previous host, so image from that installation would have the file path:
Http://katscafe.org/wp-content/uploads/year/month/name-of-file
to the current image file path, which would be:
Http://katscafe.org/Cafe/wp-content/uploads/year/month/name-of-file
I have another less important redirection I am having a few errors from as well, stemming from the short while I tried out a multisite option (silly me, I thought I would enjoy not having to handle updates, etc ... but I'm entirely too OCD to enjoy that, LOL). Since that meant that my files were in a multi-site directory listing, the file path would have been:
Http://katscafe.org/files/year/month/name-of-file
and still needs to forward to the current image file path, which again, is:
Http://katscafe.org/Cafe/wp-content/uploads/year/month/name-of-file
I'm not sure if I am overlooking an obvious tool that can help me figure this out, but every tool I've found involves post redirection, not a file path type of redirection. And even then I'm not entirely sure of my ability to figure it out completely.
I would be forever grateful for any help with this! Thanks so much!
Title says it all. I was like, ok no probs, I'll just make the subfolder disappear with htaccess. And no, it creates the exact same effect, but I'm so new at this that I can't make out what that means.
Layout breaking is like the CSS is falling apart or something. If I run the site in a subfolder I have no problems. I'd just like to make my site look a little more professional by having a clean url so I'm jumping through hoops trying to find out what's wrong but like I said, it's all new to me so debugging is a pain.
My site is www.pienisirkus.fi and since it's a live webshop I can't have it displayed broken so here's a screencap: http://imgur.com/jUaibfL
Everything is exactly the same in the code and everywhere, only the files and folders have been moved into the root folder.
You should set the path of your log and tmp folder in Global Configuration and Check "Directory Permissions" in System Information is all writable. it should work
enable the sef plugin, that should take care of relative paths.
And make sure your site is in the root, not just a few .htaccess rules to pretend it's there
Check mod_rewrite path, in chrome console, target to images and check if is readable. So in this case the problem is in the objects url (images, categories) and other.
Another case would be permissions, but in your screenshot your installation is local? and public_html is your localhost installation?
i recomend to see all images with chrome inspector, disable mod_rewrite and another url SEF and reload the page, check .css with chrome inspector, for example url(image.jpg) and verify if is readable
Thats all can i help you with my experience in joomla, i wait help you.
I've been trying to install an existing drupal 6 app into a MAMP environment (mac), but i get a white page as a result of the home page. The thing is that i can access to the rest of pages if i put the absolute url, but it doesn't show anything at root ( http://virtualhostname/ )! Maybe it's a question of the .htaccess and rewrite issues. I already setted up the memory_limit of php.ini of mamp and drupal to 256M so i don't think this is the problem either. Maybe is the db, cause some parts of the pages doesn't show properly, maybe at the import something went wrong, i don't know.
Its probably a php problem. Check your apache logs for the error. If you are running linux, just go to the terminal and do 'tail -f /var/log/apache2/error.log' and referesh the url you are getting the white page.
This will let you know the reason for the white page and then you can resolve it. You can paste the error over here, so that people can look and help you debugging it.
Hope this helps!!
Put these lines at the top of your index.php file, it will display the error out to the screen instead of just the white page.
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
UPDATE
Sounds like the 'whitespace at the end of template files' problem, details and fixes are here: http://drupal.org/node/1424
This is usually a php memory issue, but I have also seen similar situations where having an OP code cache like APC gets messed up and the usual solution is to restart apache to solve it.
Make sure you clear cache and run update.php
I moved a Wordpress website from one server to another and I am now getting 404 errors on everything but the home page.
I also checked that the .htaccess file is there and the database contents. They are fine. Not sure what else could be causing this.
Any ideas from the community?
Assuming you have pretty permalinks enabled, are you sure that the new server has mod-rewrite enabled? You can also check to see if this is the problem by going to a pagelike yoursite.com/?p=1 where 1 is a page id.
Assuming the URL has changed
You need to update either the database or (if you're lucky) one of the .php files in the wordpress distro - see the wordpress article on this.
I had the same issue and ended up having to edit the database. You're seeing the 404's because wordpress thinks it's still hosted at the old URL and is therefore trying to retrieve files from it.
If the URL has not changed
Perhaps permissions need updating on the folders? The folders should be set at 755 and the files 644 (reference here).
Looks like you may have solved the problem - I had a similar problem where permalinks would not work, but the default links did work. I modified the .htaccess file to what Wordpress said to do. Twice I thought I had solved the problem, but didn't.
I had moved it to my local Ubuntu Karmic Koala system for testing, and found that the solution involved editing a file in /etc/apache2/sites-enabled. On my system, it was called 000-default.
This file had statements like the .htaccess file, and in two places had AllowOverride None, which I had to change to AllowOverride All. Apparently, this file overrides any local .htaccess files.
I also had to change the location of Wordpress in the main configuration, but that was obvious.
I hope this will help someone who has tried all the normal suggestions like me, and is still having problems.