Interesting Problem [very important]

neuromancer

Member
Jun 17, 2005
15
0
151
Firstly
while i running /scripts/easyapache an error occurred and after that httpd service doesn't work. Please help me. The error is below.

[email protected] [~]# service httpd start
Syntax error on line 1083 of /usr/local/apache/conf/httpd.conf:
Invalid command 'BytesLog', perhaps mis-spelled or defined by a module not included in the server configuration
/etc/init.d/httpd start: httpd could not be started

And then I delete 'BytesLog' in /usr/local/apache/conf/httpd.conf. httpd service is working but the sites which work before don't work. It gives "There is no website configured at this address." error. What can I do ?
 

aby

Well-Known Member
May 31, 2005
638
0
166
India
neuromancer said:
Firstly
while i running /scripts/easyapache an error occurred and after that httpd service doesn't work. Please help me. The error is below.

[email protected] [~]# service httpd start
Syntax error on line 1083 of /usr/local/apache/conf/httpd.conf:
Invalid command 'BytesLog', perhaps mis-spelled or defined by a module not included in the server configuration
/etc/init.d/httpd start: httpd could not be started

And then I delete 'BytesLog' in /usr/local/apache/conf/httpd.conf. httpd service is working but the sites which work before don't work. It gives "There is no website configured at this address." error. What can I do ?

login to your server through ssh, Edit httpd.conf file and add the following lines;



Under the Add Module section add;

AddModule mod_log_bytes.c



Under the Load Module section add;

LoadModule bytes_log_module libexec/mod_log_bytes.so



Restart apache and let me know the result

------
Aby :) .
 

neuromancer

Member
Jun 17, 2005
15
0
151
I did.

After that, it gives that.

[email protected] [/home]# service httpd restart
/etc/init.d/httpd restart: httpd not running, trying to start
Syntax error on line 1128 of /usr/local/apache/conf/httpd.conf:
Invalid command 'v', perhaps mis-spelled or defined by a module not included in the server configuration
/etc/init.d/httpd restart: httpd could not be started

and the websites don't work :(
but at that time it gives "The page cannot be displayed" error.
 

aby

Well-Known Member
May 31, 2005
638
0
166
India
neuromancer said:
I did.

After that, it gives that.

[email protected] [/home]# service httpd restart
/etc/init.d/httpd restart: httpd not running, trying to start
Syntax error on line 1128 of /usr/local/apache/conf/httpd.conf:
Invalid command 'v', perhaps mis-spelled or defined by a module not included in the server configuration
/etc/init.d/httpd restart: httpd could not be started

and the websites don't work :(
but at that time it gives "The page cannot be displayed" error.

I suggest recompiling apache once again

---
Aby :)
 

aby

Well-Known Member
May 31, 2005
638
0
166
India
neuromancer said:
And I want to ask one more question. How can I install GD support ??
You can add that during recompilation of apache using

/scripts/easyapache

choose the option 6, you'll find option for adding gd support.

--------
Aby :)
 

neuromancer

Member
Jun 17, 2005
15
0
151
After I did these things my problem solved but another problem occurred. When I entered my server ip in Internet Explorer a website which I hosted it opens. In normally an error page which lists that "There is no website configured at this address." must open. How can I do for that problem ?
 
Last edited:

MMarko

Well-Known Member
Apr 18, 2005
316
0
166
neuromancer said:
After I did these things my problem solved but another problem occurred. When I entered my server ip in Internet Explorer a website which I hosted it opens. In normally an error page which lists that "There is no website configured at this address." must open. How can I do for that problem ?
This is normal. You can change this page by altering index.html in your /apache/htdocs folder.