Hi,

Just installed drupal on

FreeBSD 5.4
PHP 5.2.0
MySQL 4.0.24
Apache 2.0.59

I created thed drupal mysql database using user root.

I point my browser at the root directory for drupal, and the resulting document is empty. I flushed my cache, etc., to no avail.

When I run index.php from the command line, I get this messages:

PHP Notice: Undefined index: HTTP_HOST in /usr/local/www/data-dist/www.mtverbal.com/includes/bootstrap.inc on line 120
PHP Notice: Undefined index: HTTP_HOST in /usr/local/www/data-dist/www.mtverbal.com/includes/bootstrap.inc on line 169
PHP Fatal error: Call to undefined function preg_match() in /usr/local/www/data-dist/www.mtverbal.com/includes/unicode.inc on line 32

I searched for these messages, but could not figure out what's wrong with my particular installation.

Charlie

Comments

chx’s picture

Status: Active » Closed (fixed)

Repeat after me: Google is your wise uncle and Wikipedia is your wise aunt. In this case, you forgot to ask your wise uncle. He knows. I checked. Ask him about drupal freebsd preg_match and you will also be the wiser.

For the HTTP_HOST errors, ask him about the words http_host php undefined index , I found the third one to be about Drupal http://drupal.org/node/80595

cwmcelfresh’s picture

I wanted to follow up with how this eventually got fixed.

First, this error:

PHP Notice: Undefined index: HTTP_HOST in usr/local/www/data-dist/www.mtverbal.com/includes/bootstrap.inc on line 120

Then eventually this error:

PHP Notice: Undefined index: REMOTE_ADDR in /usr/local/www/data-dist/www.mtverbal.com/includes/bootstrap.inc on line 769

appear, from what I can tell, to be related to the fact that I was running index.php from the command line. There is a message on this message board that talks about forcing .htaccess to rewrite all requests so that users are forced to go to www.mysite.com, but in my case, this has nothing to do with that HOST error.

I had upgraded php5 without upgrading all the related extensions, and this was 1/2 of my problem. I kept following the error messages until I had all the right extensions installed.

Then, I found that I had to raise the memory limit -- I raised it to 128M.

Drupal working now --

cwmcelfresh’s picture

I want to be clear -- I raised the memory limit in my php.ini to 128 mB, and did not make any changes to settings.php.