您的位置:首页 > 其它

Ubuntu 12.04 + Drupal 7 + OCI8

2012-04-01 00:00 253 查看
Ubuntu 12.04 Drupal 7

Open Terminal

sudo apt-get install eclipse

sudo apt-get install apache2

sudo apt-get install php5

sudo apt-get install mysql-server

sudo apt-get install phpmyadmin

sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin
sudo apt-get install php5-xcache

dpkg -l | grep xcache (show xcache version)

php -v

sudo ln -s /usr/share/xcache /var/www/xcache

sudo apt-get install memcached

sudo apt-get install php5-memcache
sudo apt-get install php5-xdebug

modify /etc/php5/conf.d/xdebug.ini

xdebug.remote_enable = 1

Enable apache url rewriter
sudo a2enmod rewrite
apache2ctl -M
modify /etc/apahce2/sites-available/default

<Directory /var/www>
AllowOverride All
</Directory>
sudo /etc/init.d/apache2 restart

If encount error: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
sudo vi /etc/apache2/httpd.conf
add line: ServerName localhost

Add VirtualHost for apache
sudo vi /etc/hosts
append line: 127.0.0.1 hostname.local
sudo vi /etc/apache2/sites-available/hostname
append lines:
<VirtualHost *:80>
ServerName hostname.local
DocumentRoot /var/www/hostname
</VirtualHost>
sudo ln -s /etc/apache2/sites-available/hostname /etc/apache2/sites-enabled/hostname

install Oracle Instant Client, reference to https://help.ubuntu.com/community/Oracle Instant Client
download from www.oracle.com/technetwork/topics/linuxsoft-082809.html

sudo apt-get install alien

sudo alien -i oracle-instantclient11.2-basic-*.rpm

sudo alien -i oracle-instantclient11.2-devel-*.rpm

sudo alien -i oracle-instantclient11.2-sqlplus-*.rpm

add tns file to $ORACLE_HOME/network/admin/tnsnames.ora

sqlplus username/password@//hostname:port/sid

Install oci8, reference to https://help.ubuntu.com/community/PHPOracle
sudo apt-get install php-pear

sudo pecl install oci8

if promot phpize not founde then run
sudo apt-get install php5-dev
Download drupal source file and install:
cd /usr/share
tar xzvf /home/username/Downloads/drupal-7.17.tar.gz
sudo ln -s /usr/share/drupal-7.17 /var/www/drupal
Install Pear and Drush:
sudo apt-get install php-pear
sudo pear channel-discovery pear.drush.org
sudo pear install drush/drush
Install Drupal Module by Drush:
cd /usr/share/drupal/sites/all/modules
sudo drush dl module_filter
sduo drush en module_filter
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Ubuntu Drupal oci8