but now I am at a loss. The install built the database and I saw no errors but I am not sure how to get my browser to load the install page. The apache2 root directory is /var/www but no site sub directories were created. I created a file called GBDrupalSite in the /etc/apache2/sites-available directory and added this
ServerAdmin webmaster@localhost
ServerName GBDrupalSite
DocumentRoot /var/www/GBDrupalSite
RewriteEngin on
RewriteBase /GBDrupalSite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
I also created a directory under /var/www/ called GBDrupalSite and copied the contents of /usr/share/drupal7 to the directory I created under that apache2 root directory
I am receiving the following error
PDOException: could not find driver in lock_may_be_available() (line 167 of /var/www/GBDrupalSite/includes/lock.inc).
Please tell me what I am doing wrong. It has been a while since I have worked in Linux and I'm just starting to figure out how much I forgot.
Comments
Sounds like you are missing a postgres driver
Did you install the php postgres driver? On Ubuntu, I think the package name is something like php5-pgsql. I suspect it will be similar on plain vanilla Debian.
Still no luck
I removed the install and reinstalled it using the tar ball. I followed the instructions and got the install.php file running. I ran in to trouble when it got to the item about configuring the database. It seems it want so use mysql by default and I am unable to get it to use postgresql. Being a newbie at linux I am sure I am not doing something that I should be doing, but for the life of me I can't discover what I'm missing.
Quick LAMP setup for Debian 7
You can very easily setup your environment like this with mysql (this is one line):
sudo apt-get -y install apache2 && sudo apt-get -y install mysql-server mysql-client && sudo apt-get -y install php5 php5-mysql libapache2-mod-php5 && sudo apt-get -y install phpmyadmin && sudo apt-get -y install drush && sudo a2enmod rewrite;To have access to phpMyAdmin include the following line in /etc/apache2/apache2.conf.
Include /etc/phpmyadmin/apache.conf(for Debian 7).Install Sass and Compass.
sudo apt-get install ruby-full rubygems1.8 -y && sudo gem install compass -y(It is preferable to use a libsass workflow. See for example this: https://www.drupal.org/node/2537364).
Then,
cd /var/www && Drush dl(for Debian 7).Then,
cd /var/www/html && Drush dl(for Debian 8).And you have a fresh Drupal copy.