Our Prerequisites: FreeBSD 8.2 , MySQL 5.x, PHP 5.x, Apache 2.x
Show stopper.. I got this notice:
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.
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 filesget 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 extension is required. Check that you php has PDO enabled, and that mysql is one of the available databases to use.
本文详细介绍了如何在FreeBSD 8.2上安装Drupal 7.0,包括配置系统、创建数据库、下载与上传安装文件、安装过程中的错误处理及解决方案等关键步骤。同时分享了在安装过程中遇到的一个具体问题:Drupal无法识别已安装的MySQL服务器,通过添加PDO MySQL扩展并重新启动Apache解决了这一问题。


52







In Drupal 7, the PDO