[kwlug disc.] drupal 5.2 on fedora -- argh!

Khalid Baheyeldin kb at 2bits.com
Sat Sep 22 12:49:29 EDT 2007


On 9/22/07, Robert P. J. Day <rpjday at mindspring.com> wrote:
>
> On Sat, 22 Sep 2007, Robert P. J. Day wrote:
>
> >   most of yesteday, i was fighting with (and losing to) trying to
> > get drupal 6 beta 1 running on my f8t1 system right from the tarball
> > (there is no rpm package for that beta).  i finally gave up and
> > backed off to just going with drupal 5.2, and still had problems.
> >
> >   to that end, i once again documented the process at the wiki here:
> >
> > http://www.crashcourse.ca/wiki/index.php/Drupal_5.2_on_Fedora
> >
> > for anyone who has the prerequisite level of masochism to check it
> > out and perhaps explain why even *this* doesn't quite work.
> >
> >   i'm sure it's something trivial i've messed up but, at this point,
> > i just want to get away from it, so i'm taking the day off to go
> > kayak the saugeen.  if i make it back, i'll look for good advice.
> > if i don't make it back, well, send out the dogs.
>
> by the way, the problem i document on that wiki page for drupal 5.2 is
> precisely where i get hung up with drupal 6 beta 1, so a solution
> would most likely fix the problem in both cases.  that would be nice.
>
> rday



Robert,

It would help if you precisely point out what the issue is in one paragraph
instead of linking to the wiki page (too much to read).

First, I can't comment on Fedora, but the vhost part should be an Apache
thing, and should work.

On Ubuntu, I have the following vhost setup:

<VirtualHost *>
        ServerAdmin webmaster at localhost
        ServerName drupal1.site
        DocumentRoot /home/luser/drupal
        <Directory /home/luser/drupal>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
        LogLevel warn
        ServerSignature Off
</VirtualHost>

I also prefer to run all Drupal instances on their own subdomain, and not in
a subdirectory.

Anyway, the steps are quite simple. Here they are:

>From the shell:

# mysqladmin create dbname
# mysql -uxxxx -p
mysql> grant all privileges on dbname.* to someone at localhost
identified by 'somepassword';
mysql> flush privileges;

The database is now created.

Now vist http://localhost/, if you do not get the install page, then
visit http://localhost/install.php instead

Enter the database name, user name, and password.

If the settings.php file is not writable, a message will ask you to make it
so.

Once the install is complete, go to the main site's page

Click on "Create the first account". You will be redirected to the page
where you enter the user name and email.

Then you will get a message like:

"Your password is sUqvmf8Ls5. You may change your password below."

If you you have a working SMTP server and an ISP that allows you to send
emails, then you should get an email with the password too. If not, then
just enter root at localhost and the message should be in root's mailbox
locally.

Regardless, you should see two text boxes to change the password. Just enter
your new password, and click Submit, and you are done.

I can't say for sure why you are getting the access denied. Is that themed
in a Drupal page, or the native Apache page? Did you extract the .htaccess
correctly?

It could be because you are running Drupal in a subdirectory. Go into
settings.php and see what $base_url is set to. Set it to

$base_url = 'http://localhost/drupal';

If you want to use Clean URLs, then you have to change RewriteBase in
.htaccess to /drupal.

If you just want to get over this error, then do this:

# mysql -uxxxx -p
mysql> update users set pass = md5('newpassword') where uid = 1;

Then you can use that password to login.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.ccjclearline.com/pipermail/kwlug-disc/attachments/20070922/05b57dc9/attachment.htm


More information about the KWLUG-Disc mailing list