Forums Drupal

Problem running post-install step

Subscribe to Problem running post-install step 15 post(s), 3 voice(s)

 
Avatar The Avatar o... 10 post(s)

Hello all,

I recently installed the LAMP Stack (LAMPStack 1.0-beta-1) and then the Drupal module (Drupal 6.3-0-module) for it. I did all of this as root (or rather with sudo). The LAMP Stack gave me no errors during the installation.

After installing the Drupal Module I got a:

“Warning: Problem running post-install step. Installation may not complete correctly

Error running /opt/lampstack-1.0-beta-1/ctlscript.sh restart apache : Syntax error on line 1 of /opt/lampstack-1.0-beta-1/apps/drupal/conf/drupal.conf:
Invalid command ‘]’, perhaps misspelled or defined by a module not included in the server configuration
Syntax error on line 1 of
/opt/lampstack-1.0-beta-1/apps/drupal/conf/drupal.conf:
Invalid command ‘]’, perhaps misspelled or defined by a module not included in the server configuration
Press [Enter] to continue :”

Well needless to say I hit ‘enter’. It said setup had finished installing the Drupal module and would I like to launch it. Yes again.

So I tried running the ’./ctlscript.sh’ after that. I ‘cd’ to the proper directory and did a ’./ctlscript.sh restart’. I got a:

“Syntax error on line 1 of /opt/lampstack-1.0-beta-1/apps/drupal/conf/drupal.conf:
Invalid command ‘]’, perhaps misspelled or defined by a module not included in the server configuration apache config test fails, aborting
/opt/lampstack-1.0-beta-1/mysql/scripts/ctl.sh : mysql stopped
nohup: redirecting stderr to stdout
touch: setting times of `/opt/lampstack-1.0-beta-1/mysql/data/mysqld.log’: Function not implemented
Starting mysqld.bin daemon with databases from /opt/lampstack-1.0-beta-1/mysql/data
/opt/lampstack-1.0-beta-1/mysql/scripts/ctl.sh : mysql started at port 3306
Syntax error on line 1 of /opt/lampstack-1.0-beta-1/apps/drupal/conf/drupal.conf:
Invalid command ‘]’, perhaps misspelled or defined by a module not included in the server configuration apache config test fails, aborting”

I tried this script with ‘sudo’ and by using ‘su -’. I also tried ’./ctlscript.sh restart apache’ with the same error. I tried to open ’/opt/lampstack-1.0-beta-1/apps/drupal/conf/drupal.conf’ with ‘vi’, but it’s not something I can read.

This is the output from ’/opt/lampstack-1.0-beta-1/apache2/logs/error_log’:

Wed Jul 16 20:33:10 2008 Init: Session Cache is not configured [hint: SSLSessionCache]
Wed Jul 16 20:33:10 2008 Digest: generating secret for digest authentication …
Wed Jul 16 20:33:10 2008 Digest: done
Wed Jul 16 20:33:11 2008 Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 PHP/5.2.6 configured – resuming normal operations
Wed Jul 16 20:33:17 2008 caught SIGTERM, shutting down
Wed Jul 16 20:33:22 2008 Init: Session Cache is not configured [hint: SSLSessionCache]
Wed Jul 16 20:33:22 2008 Digest: generating secret for digest authentication …
Wed Jul 16 20:33:32 2008 Digest: done
Wed Jul 16 20:33:33 2008 Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 PHP/5.2.6 configured – resuming normal operations
Wed Jul 16 20:36:49 2008 [client 69.222.26.73] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
Wed Jul 16 20:57:03 2008 [client 124.42.126.38] script ’/opt/lampstack-1.0-beta-1/apache2/htdocs/azenv.php’ not found or unable to stat”

The bottom line is the only thing of any relevance that I see. So I checked and ‘azenv.php’ is NOT in said directory. I have yet to find it.

Anyhow I have no idea what the deal is here, or where to go next. Any help would be appreciated. Thanks.

 
Avatar The Avatar o... 10 post(s)

Well I seem to have fixed it. Was overlooking the obvious. The file I said that I can’t read (/opt/lampstack-1.0-beta-1/apps/drupal/conf/drupal.conf) did indeed have a ‘]’ at the beggining. So I deleted that and all is well.

Would this be a bug, or something that I did wrong?

 
Avatar antonio Administrator 485 post(s)

Hi,

I checked that file in my computer and it seems to be okay. Anyway, I’ll try to reproduce the error following the exact steps you provided and get back to you.

Cheers

 
Avatar The Avatar o... 10 post(s)

Hell again,

Thanks for the response. I tried the same thing as user instead of root and get the same error. I still have to remove ‘]’ from ’/home/theavataroftime/lampstack-1.0-beta-1/apps/drupal/conf/drupal.conf’ in order to get it to work. Not sure what the deal is.

 
Avatar The Avatar o... 10 post(s)

Also it would seem that the module did not install correctly because when trying to use Drupal through the browser I get a ’/drupal does not exist on this server’ or something of that sort. The LAMP Stack works just fine (though I installed it as user this time).

So I uninstall the current Drupa module and try the 5.8 Drupal module and I get this:

“Warning: Problem running post-install step. Installation may not complete correctly
Error running /home/theavataroftime/lampstack-1.0-beta-1/ctlscript.sh restart
apache : httpd: Syntax error on line 474 of
/home/theavataroftime/lampstack-1.0-beta-1/apache2/conf/httpd.conf: Could not
open configuration file
/home/theavataroftime/lampstack-1.0-beta-1/apps/drupal/conf/drupal.conf: No such
file or directory
httpd: Syntax error on line 474 of
/home/theavataroftime/lampstack-1.0-beta-1/apache2/conf/httpd.conf: Could not
open configuration file
/home/theavataroftime/lampstack-1.0-beta-1/apps/drupal/conf/drupal.conf: No such
file or directory”

I cannot access Drupal then either but it seems to be a different error. Either it way it shows up in the ‘Appications’ tab.

Thanks.

 
Avatar The Avatar o... 10 post(s)

Not sure that I should put this in this forum but I just tried the Wordpress module as well, without uninstalling the Drupal module by the way.

I get a:

“Warning: Problem running post-install step. Installation may not complete correctly
Error running /home/theavataroftime/lampstack-1.0-beta-1/ctlscript.sh restart
apache : httpd: Syntax error on line 474 of
/home/theavataroftime/lampstack-1.0-beta-1/apache2/conf/httpd.conf: Could not
open configuration file
/home/theavataroftime/lampstack-1.0-beta-1/apps/drupal/conf/drupal.conf: No such
file or directory
httpd: Syntax error on line 474 of
/home/theavataroftime/lampstack-1.0-beta-1/apache2/conf/httpd.conf: Could not
open configuration file
/home/theavataroftime/lampstack-1.0-beta-1/apps/drupal/conf/drupal.conf: No such
file or directory”

It also shows up in the apps tab but if I try to use it I get the same ‘does not exist’ error. This is odd though that it is looking for the ‘drupal.conf’ file, but maybe that is normal.

I had tried using the other LAMP Stack instead of the beta the other day, and I don’t remember the exact problem but when trying to install modules on it I was missing a file. Think it was ‘properties.ini’ if I remeber right.

Just now I tried uninstalling the LAMP Stack, and when I went to reinstall it port 8080 will not work. That is the port that I used before, so I’m not sure why it won’t work now. Did the prior installation not fully uninstall somehow?

Anyhow I think that’s the last of the info I have.

Good luck.

 
Avatar antonio Administrator 485 post(s)

Hi,

First of all, modules only work with LAMPStack beta, which is the one with the ‘properties.ini’ file.

The problems you seem to be facing are because of the ‘httpd.conf’ file being corrupted since the Drupal installation. And because of that, Apache web server wasn’t started during the installation, what caused the applications installation to fail, because they interact with the webserver to be configured.

So, please start it over with a new LAMPStack or fix the conflicting line in httpd.conf and uninstall/reinstall the modules. I will look into the Drupal issue right now, to see if I can reproduce it.

Cheers

 
Avatar antonio Administrator 485 post(s)

Hi again,

I just installed Drupal module twice flawlessly, so I’m a little puzzled here… Can you try a fresh LAMPStack installation and another module (WordPress, for instance)?

Thanks

 
Avatar The Avatar o... 10 post(s)

Hello,

Thanks for the replies. I did a fresh server install (just ot be thorough) and then installed the LAMPStack beta. Again it installed just fine.

I then tried to install the Wordpress module and got the ‘Invalid command ‘]’’ as in the first post.

I could try some other modules, but I am certain they will yield the same result. Not sure why I would be the only run with this trouble though. I really don’t see how I could have done anything wrong, I just chmod the installers and then run them via terminal.

Could this be some issue with Arch Linux? I know it handles certain things differently than other distros. For instance it doesn’t use ‘init.d’, only ‘rc.d’. Probably a shot in the dark…....

Anyhow thanks for the help. I’ll be happy to try anything you suggest.

Good Luck.

 
Avatar The Avatar o... 10 post(s)

I am going to try using Ubuntu Hardy 8.04 on my server instead of Arch and see if that makes a difference. What distro are you testing this on?

Thanks.

 
Avatar The Avatar o... 10 post(s)

Okay, I have the same problem with ‘]’ in ’/opt/lampstack-1.0-beta-1/apps/drupal/conf/drupal.conf’ when using the Ubuntu Hardy server install.

So I’m at a loss. Perhaps I really am doing something wrong. Or some other missing dependency I wonder?

Thanks.

 
Avatar antonio Administrator 485 post(s)

Hi,

I do use Arch Linux as well, and the module has been tested in a variety of distributions, including Ubuntu. What shell are you using? You can find it by looking at the line corresponding to your user in the file /etc/passwd

Cheers

 
Avatar The Avatar o... 10 post(s)

Hello,

I just checked on that and I use ‘bash’.

EDITED BY ANTONIO: Never give your login :)

Thanks.

 
Avatar Daniel Lopez Administrator 104 post(s)

Are you sure it is really ‘bash’ or is it symlinked to ‘ash’ ? Also, are you trying to start the servers as an user different from the one you installed them as?

 
Avatar The Avatar o... 10 post(s)

Hello,

Thanks for the reply.

I am fairly certain that it is ‘bash’, how would I check on that for sure? It is listed as ‘bash’ in ’/etc/passwd’.

No, I am trying to start it as the same user.

I believe that the problem has been found. I have been talking with Antonio via email, and it seems to be a bug in the newest version of InstallBuilder. I am just waiting to try the next module that is released.

Forums Drupal