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
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
相关文章推荐
- 安装Drupal7.12+Postgresql9.1(Ubuntu Server 12.04)
- 为Drupal7.22添加富编辑器 on Ubuntu 12.04
- Drupal的7 - 如何设置Ubuntu 12.04 LAMP组合的简单方法
- ubuntu 12.04 安装 Nginx+PHP5 (PHP-FPM) +MySQL主机详解
- Ubuntu 12.04中Android NDK r8d 编译 FFmpeg 0.11.1 并使用
- Ubuntu 12.04(32位)安装Oracle 11g(32位)全过程以及几乎所有问题的解决办法
- Ubuntu 12.04 安装tpm-emulator
- Ubuntu 12.04 安装Adobe Air
- Install Skype in Ubuntu 14.04 / 13.10 / 13.04 / 12.10 / 12.04 using PPA
- Ubuntu 12.04中文输入法的安装
- node 安装zmq zeromq.node installation error Ubuntu 12.04: ' node-gyp rebuild'
- Wubi安装Ubuntu 12.04
- Install Skype 4.0.0.8 in Ubuntu 12.04
- 在i.MX6Q上安装ubuntu(linaro)12.04
- Linux 分区、挂载和目录结构常识【以Ubuntu 12.04 为例】
- ubuntu 12.04 编译安装git-1.7.12
- ubuntu 12.04 下安装 PyTesser 进行OCR识别 - 从波 - 博客园
- ubuntu 12.04 安装JDK
- Wubi安装Ubuntu 12.04