biogeek
Forum Replies Created
-
Fair enough. Anyway, I found this at the ubuntu forum:
I found out the solution: I had config’ed mysql with
localhost
as my hostname, so I ran this command:sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost
However, I was working on my test server and thus accessing the config page through an URL which was not
localhost
(specifically, it wasdraupadi.modspil.dk
, but that is hardly important).So the solution was to do:
cd /etc/wordpress/
sudo cp config-localhost.php config-draupadi.modspil.dk.php
sudo chown www-data config-draupadi.modspil.dk.php
Et voila! I suppose if you substitute your own parameters it’ll work for you too.
I am having the same problem, wordpress installed via apt-get on a headless srever running Ubuntu 9.10 Server Edition and following the steps in this tutorial.
my wp-config.php file looks like this:
<?php /** WordPress's Debianised default master config file Please do NOT edit and read about how the configuration works in the README.Debian **/ #https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=435289 #https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=440572 (underscores, not dashes) $debian_server = preg_replace('/:.*/', "", $_SERVER['HTTP_HOST']); $debian_file = '/etc/wordpress/config-'.strtolower($debian_server).'.php'; $allowed_paths = array('/etc/wordpress'); if (!in_array(dirname(realpath($debian_file)), $allowed_paths)) die("The config file for the specified host is not under an allowed path"); if (!file_exists($debian_file)) { header("HTTP/1.0 404 Not Found"); echo "404 Not found"; exit(1); } require_once($debian_file); define('ABSPATH', '/usr/share/wordpress/'); define('WP_CORE_UPDATE', false); require_once(ABSPATH.'wp-settings.php'); ?>
So the
if (!in_array(dirname(realpath($debian_file)), $allowed_paths))
part triggers the error message, but I amat loss at how to proceed now.Forum: Everything else WordPress
In reply to: Strange comment posted with SQL inHey,
I’ve had the same comment by Gen Drebery. I’m using the Akismet Spam filter, but this comment was not catched, so it ended up in my moderation queue.
Forum: Plugins
In reply to: photoblog – recommendations? examples?I like SimpleViewr very much: a Flash viewer.
Rha7com, your Javascript works perfectly! Thanks a lot.
If you don’t have write access … getting an automatic redirect is going to be difficult
That’s why I came here in the first place. ??
My old site has for the moment indeed a simple link to the new adress, but I’d like to minimze the burden as much as possibleMaybe I didn’t formulate my question clearly enough, but I can’t edit any templates in the theme editor. I didn’t made the files writeable in the past, and now I don’t have the permission any more to do so.
The only thing I still can do, is make posts. So I want essentially to make an empty blog, with just one post, containing some redirection code.
Thanks in advance.