Ubuntu 12.04 + Drupal 7 + OCI8

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

转载于:https://my.oschina.net/haiping008/blog/52154

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值