install Drupal 7.0 on FreeBSD 8

Our Prerequisites:   FreeBSD 8.2 ,  MySQL 5.x,  PHP 5.x,  Apache 2.x

 

Show stopper..   I got this notice:

Database type  *
 SQLite
The type of database your Drupal data will be stored in. Your PHP configuration only supports a single database type, so it has been automatically selected.

I have mysql server 5.5.11 installed and Drupal 7 install does not see it.
Need to research why and / or possibly un install mysql 5.5 and down grade to 5.1..  Not sure yet.
This is exactly why we test out upgrades on R&D servers...
To do..  try adding php5-pdo_mysql from ports.
prompt# cd /usr/ports/databases/php5-pdo_mysql

prompt# make install && make clean

****************************************************************************

The following line has been added to your /usr/local/etc/php/extensions.ini
configuration file to automatically load the installed extension:

extension=pdo_mysql.so

****************************************************************************
 

restart apache

prompt# apachectl restart
 

That totally worked. I'm good to go.. I'll clean up this post a little later.

 

 

Buy and Sell Cisco Network Gear.

Drupal is an excellent Content Management System. It's many very popular sites you're familiar with. For more information visit http://drupal.org/

This tutorial installs Drupal version 7.0 on FreeBSD 8.2.  Read through the whole thing first to make sure you have everything required for setup. Then go back and run the install. Your particular system has different setups and file paths then ours so make note of it..

First, you'll want to make sure your system is configured appropriately to run a php based database content management system.

Second, you'll have to create a database for Drupal to use. In our case I used phpMyAdmin to create the database. It's free and easy to use.

Download Drupal 7.0 for install:

Browse to: http://drupal.org and click the download link.
In my case I downloaded drupal-7.0.tar.gz , copied it to my local machine and uploaded it to our server.

 

Install Drupal 7.0:

prompt% tar -xvf  drupal-7.0.tar.gz

Now surf to that site. ie. http://www.yoursite.com/drupal-7.0

 

Standard Defaults are fine. Click Save and Continue.

Click "Install Drupal in English"

Next Page

 

 

Got some errors so lets fix those..  ** Note, we use tcsh so your prompt will be different if you use $bash

Get to a command prompt on the server.

prompt% cd /drupal-7.0/sites/default

prompt% su root

prompt# mkdir files
prompt# chown -R www files
prompt# chgrp -R www files

get out of super user

prompt% cp default.settings.php settings.php

Back into super user.
prompt# chown www settings.php
prompt# chgrp www settings.php
 

Click on "proceed with the installation."

Show stopper...  See above.

 

I'll add more notes as I research it.

Starting here:

In Drupal 7, the PDO

In Drupal 7, the PDO extension is required. Check that you php has PDO enabled, and that mysql is one of the available databases to use.

转载于:https://my.oschina.net/u/187928/blog/33646

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值