Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-11-08, 02:37:16

Author Topic: Invalid command 'Define'  (Read 3699 times)

0 Members and 1 Guest are viewing this topic.

Offline eboye

  • Junior Member
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Invalid command 'Define'
« on: 2014-08-21, 01:27:04 »
Hi all,

Today I did

Code: [Select]
sh /script/upcp

on my server and after that I've got series of errors when starting apache (httpd service).

The problem was in httpd.conf and ~lxcenter.conf file but when I rebooted the server it gave me this error:

Code: [Select]
Starting httpd: Syntax error on line 3 of /opt/configs/apache/conf/defaults/init.conf:
Invalid command 'Define', perhaps misspelled or defined by a module not included in the server configuration

And, on that line and after there is this code:

Code: [Select]
### begin - web of initial - do not remove/modify this line

Define global::port 80
Define global::portssl 443
Define global::ip *

Listen ${global::ip}:${global::port}
Listen ${global::ip}:${global::portssl}

<IfVersion < 2.4>
NameVirtualHost ${global::ip}:${global::port}
NameVirtualHost ${global::ip}:${global::portssl}
</IfVersion>
.........

So, for some reason Define is not working.

I tried to replace all variables with fixed numbers and then it passes that error but gives the error that the ports are already in use.

The strange thing is that I'm now on KloxoMR 7.0.0.b-2014082002 and it's not listed anywhere on the web O_o

I'm using testing repo, but as I know 6.5.xxx is last version.

Any advice on what should I do?

And btw, none of my websites and apps are currently working, so I need help as soon as possible. :)

I'm thinking on reinstalling everything from scratch, but if there is any chance that I can fix thing, it would be awesome as it would took a lot of time to set everything up :(

Thanks for any help


Offline amudy17

  • Senior Member
  • *
  • Posts: 246
  • Karma: +0/-1
    • View Profile
    • Alamudy
Re: Invalid command 'Define'
« Reply #1 on: 2014-08-21, 06:04:20 »
i have problem same with you, and i still wait from Mr. Ramadhan for the answer :D
Free, Fast and Secure CP => Kloxo-MR
Daily News Update => Click here to see website!

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Invalid command 'Define'
« Reply #2 on: 2014-08-21, 10:15:50 »
Update Kloxo-MR or try 'yum install mod_define'.

Remember, run cleanup because change configs dir
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline eboye

  • Junior Member
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Invalid command 'Define'
« Reply #3 on: 2014-08-21, 17:09:03 »
Kloxo-MR is updated to the latest version possible :)

I installed the mod_define, ran cleanup and upcp but nothing changes. Define is not defined problem is still there.

I think I'll have to reinstall everything :|

Thanks for the replies

Offline jforsgren

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Invalid command 'Define'
« Reply #4 on: 2014-08-21, 21:32:38 »
Syntax error on line 3 of /opt/configs/apache/conf/defaults/init.conf I am still getting this, did anyone solve this issue?

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Invalid command 'Define'
« Reply #5 on: 2014-08-21, 21:53:34 »
Inform here 10 lines of /opt/configs/apache/conf/defaults/init.conf content.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline jforsgren

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Invalid command 'Define'
« Reply #6 on: 2014-08-21, 21:57:54 »
### begin - web of initial - do not remove/modify this line

Define global::port 80
Define global::portssl 443
Define global::ip *

Listen ${global::ip}:${global::port}
Listen ${global::ip}:${global::portssl}

<IfVersion < 2.4>
        NameVirtualHost ${global::ip}:${global::port}
        NameVirtualHost ${global::ip}:${global::portssl}
</IfVersion>

<Ifmodule mod_userdir.c>
        UserDir enabled
        UserDir /home/*/public_html

        <Location "/~admin">
                <IfModule mod_suphp.c>
                        SuPhp_UserGroup admin admin
                </IfModule>
        </Location>

        <Location "/~jesse">
                <IfModule mod_suphp.c>
                        SuPhp_UserGroup jesse jesse
                </IfModule>
        </Location>

        <Location "/~test">
                <IfModule mod_suphp.c>
                        SuPhp_UserGroup test test
                </IfModule>
        </Location>
</Ifmodule>


### 'default' config
<VirtualHost ${global::ip}:${global::port}>

        SetEnvIf X-Forwarded-Proto https HTTPS=1

        ServerName default

        ServerAlias default.*

        DocumentRoot "/home/kloxo/httpd/default"

        DirectoryIndex index.php index.html index.shtml index.htm index.pl index.py index.cgi index.rb default.htm Default.aspx Default.asp


        <IfModule suexec.c>
                SuexecUserGroup apache apache
        </IfModule>

        <IfModule mod_suphp.c>

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Invalid command 'Define'
« Reply #7 on: 2014-08-21, 22:06:06 »
It's normal if using apache (not proxy like nginx-proxy).

Only possible 'Define' not work if mod_define not installed. Try install with 'yum install mod_define' and check if /etc/httpd/conf.d/define.conf exists or not. If not exist, create define.conf with content 'LoadModule define_module modules/mod_define.so' (without quote).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline jforsgren

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Invalid command 'Define'
« Reply #8 on: 2014-08-21, 22:22:56 »
define.conf does not exist, can you please clarify on how to create please?

Offline jforsgren

  • Junior Member
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Invalid command 'Define'
« Reply #9 on: 2014-08-21, 22:35:52 »
Nevermind I created it and is working perfectly, thanks for all your help.

Offline eboye

  • Junior Member
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Invalid command 'Define'
« Reply #10 on: 2014-08-27, 05:52:16 »
Sorry for the late response.

I've re-installed Kloxo-MR and everything worked as expected on one server.

The other one that had this same "bug" I fixed as MRatWork said by defining mod_define.

Thank you all for replies. Appreciate it!

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.032 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM