Apache Httpd Error On Launch

Support section for FREESCO v0.3.x 3rd Party Packages

Postby streppuiu » Sat Mar 29, 2008 1:38 pm

Hello, I am new at installing packages in Freesco. I am trying to install Apache package on Freesco 0.3.8. and I always get the same error when I start it. I updated the kernel and installed perl and openssl packages as needed but no luck. I also made some tests with Freesco 0.3.5 and got the same results. Of course, the daemon does not work despite the fact that it claims it started. The installation is OK, I mean there is no reported error, but then it hits me with this:

[root@Freesco] apache start
Starting Apache... [: syntax error
/usr/local/apache/bin/apachectl start: httpd started
Done Port 80

I am attaching the report file.

Please, what am I doing wrong ?
User avatar
streppuiu
Newbie
 
Posts: 7
Joined: Wed Mar 26, 2008 1:58 pm

Postby Lightning » Sat Mar 29, 2008 6:01 pm

The first question is where did you get the package from ?
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GURU !!
 
Posts: 3006
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Postby streppuiu » Sun Mar 30, 2008 7:36 am

These are the URLs I used to get the packages:

<a href='http://lewys-spot.dyndns.org/packages/0.3.x/' target='_blank'>http://lewys-spot.dyndns.org/packages/0.3.x/</a>
<a href='http://lewys-spot.dyndns.org:1080/packages/0.3.x/' target='_blank'>http://lewys-spot.dyndns.org:1080/packages/0.3.x/</a>

I have some other questions too. I am for now using the thttpd with php support and I would like to password protect some folders in my web site. How can I do that and, if possible where do I find the documentation for this web server. I would also like to run some scripts on FREESCO startup. How do I do that? And the last question is if the php version bundled with thttpd allows running php scripts from command line and where do I find the php executable, if it is possible.
Still I would like more using Apache which I already know how to configure, if I manage to install it.

Thank you.
User avatar
streppuiu
Newbie
 
Posts: 7
Joined: Wed Mar 26, 2008 1:58 pm

Postby Lightning » Sun Mar 30, 2008 10:47 am

For 038 you should actually be using the "a" beta version of this package that I modified at
<a href='http://lewys-spot.dyndns.org:1080/packages/0.3.x/beta/' target='_blank'>http://lewys-spot.dyndns.org:1080/packages/0.3.x/beta/</a>
Code: Select all
pkg -i  http://lewys-spot.dyndns.org:1080/packages/0.3.x/apache_1.3.27a_dingetje

With regards to thttpd+PHP you can password protect any direrctory just by creating a .htpasswd file in that directory with htpasswd. The documentation is also available with a search for thttpd and is located at acme.com as I recall.

But using PHP it is MUCH better to run Apache as it uses less CPU and is quicker. If you are just using the stock thttpd it is the other way around as thttpd is faster.

In the updated Apache package you can control Apache with

rc_apache start
rc_apache stop

you can also use the other standard Apache controls with

apachectrl
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GURU !!
 
Posts: 3006
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Postby streppuiu » Sun Mar 30, 2008 12:31 pm

OK, my fault. When I installed Apache package, I did not think that the original thttpd webserver will be replaced completely by Apache. I also did not know that I must enable the HTTP server (option 44) in the setup. I thought that starting apache using the command line (ex apache start) would be enough to run it and I turned off the HTTP server in setup. That was the problem. It works now, and PHP also works.
Thanks a lot for the help.
User avatar
streppuiu
Newbie
 
Posts: 7
Joined: Wed Mar 26, 2008 1:58 pm


Return to 3rd Party Package Support for FREESCO v0.3.x

Who is online

Users browsing this forum: No registered users and 0 guests