Author Topic: A lil apachectl help please?  (Read 3148 times)

wackjob

  • Newbie
  • *
  • Posts: 10
    • View Profile
A lil apachectl help please?
« on: August 19, 2004, 09:41:42 pm »
In trying to get apache to work on my c860/Sharp ROM, I
was directed here http://www.prometheanheat.com/zaurus/

Logged in as root,
I downloaded apachectl and actlsetup and put both in /usr/local/bin/
Now, when I navigate to /usr/local/bin/ and type "actlsetup" to run the actlsetup
script, I get the response : "actlsetup: not found"
But when I run "ls", actlsetup is there. What am I missing??

Guest

  • Guest
A lil apachectl help please?
« Reply #1 on: August 20, 2004, 02:36:58 am »
./apachectl

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
A lil apachectl help please?
« Reply #2 on: August 20, 2004, 04:14:40 am »
You may also need to modify a couple of lines in apachectl to get this working....

If you see...

# the path to your PID file
PIDFILE=/usr/local/apache/logs/httpd.pid
#
# the path to your httpd binary, including options if necessary
HTTPD='/usr/local/apache/src/httpd'

and apache is installed in /home/www

You must change the lines to....

# the path to your PID file
PIDFILE=/home/www/logs/httpd.pid
#
# the path to your httpd binary, including options if necessary
HTTPD='/home/www/bin/httpd'

This is definitely the case for apache-1.3.27-php-4.2.3_0.1_arm.ipk

Regards,

Andy
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

wackjob

  • Newbie
  • *
  • Posts: 10
    • View Profile
A lil apachectl help please?
« Reply #3 on: August 20, 2004, 05:44:45 am »
Quote
./apachectl
When I type "./apachectl"
I get "./apachectl: permission denied"
I type "chmod 777 ./apachectl" and that takes me to the prompt without complaining.
I type "./apachectl"
I get "./apachectl: not found"


apachectl has these lines uncommented:
PIDFILE=/home/www/logs/httpd.pid
HTTPD=/home/www/bin/httpd

actlsetup has these lines:
CTL=/usr/local/bin/apachectl
HTTPD=/home/www/bin/httpd
PID=/home/www/logs/httpd.pid

I chmod'ed both to 777 and when I try to call them by name, from the same directory that they're located, or prefix their names with "./", I keep getting the "not found" error.

I'm about to "go for the gold" in the discus competition, using this 860!

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
A lil apachectl help please?
« Reply #4 on: August 20, 2004, 10:26:04 am »
Quote
actlsetup has these lines:
CTL=/usr/local/bin/apachectl
HTTPD=/home/www/bin/httpd
PID=/home/www/logs/httpd.pid
OK, I presume apachectl is in /home/www/bin so you probably want to change the CTL line in actlsetup.
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

wackjob

  • Newbie
  • *
  • Posts: 10
    • View Profile
A lil apachectl help please?
« Reply #5 on: August 22, 2004, 12:05:24 pm »
Quote
Quote

actlsetup has these lines:
CTL=/usr/local/bin/apachectl
HTTPD=/home/www/bin/httpd
PID=/home/www/logs/httpd.pid
OK, I presume apachectl is in /home/www/bin so you probably want to change the CTL line in actlsetup.

No, apachectl is in /usr/local/bin.

I type "ls -l /usr/local/bin" and I get:
-rwrwrwx      ...     actlsetup
-rwrwrwx      ...     apachectl

then I enter "/usr/local/bin/actlsetup"

and I get: "/usr/local/bin/actlsetup: not found"
« Last Edit: August 22, 2004, 12:09:26 pm by wackjob »

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
A lil apachectl help please?
« Reply #6 on: August 22, 2004, 12:52:52 pm »
Could you say which ipk you used to actually install apache - not the scripts that you mentioned but the actual apache stuff ? - A URL would be good then I can see what's in the IPK and get an idea of what's going on.
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

wackjob

  • Newbie
  • *
  • Posts: 10
    • View Profile
A lil apachectl help please?
« Reply #7 on: August 22, 2004, 01:06:55 pm »
Quote
Could you say which ipk you used to actually install apache - not the scripts that you mentioned but the actual apache stuff ? - A URL would be good then I can see what's in the IPK and get an idea of what's going on.
from this page:
http://www.choup.net/spip/accueil.php3?id_rubrique=12

I used this link:
Apache 1.3.27 - Php 4.2.3 - CPU : Strongarm

to download:
apache-1.3.27-php-4.2.3_0.1_arm.ipk

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
A lil apachectl help please?
« Reply #8 on: August 22, 2004, 01:25:11 pm »
OK, that's the same version that I'm running on my SL-C860.

I didn't bother with the extra scripts, just modified the version of apachectl that was in the IPK as follows...

PIDFILE=/home/www/logs/httpd.pid
HTTPD='/home/www/bin/httpd'

Then made a couple of symlinks as follows...

ln -s /home/www/bin/apachectl /etc/rc.d/init.d/apachectl
ln -s /etc/rc.d/init.d/apachectl /etc/rc.d/rc5.d/S99apache

Then either restart or 'su -' and run /etc/rc.d/init.d/apachectl start to start the server.

I also made couple of mods to httpd.conf because I wanted the server to run on a different port and use a different userid to nobody:nobody but you shouldn't need these to get going.

Hope this helps,

Andy
« Last Edit: August 22, 2004, 01:30:03 pm by iamasmith »
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

wackjob

  • Newbie
  • *
  • Posts: 10
    • View Profile
A lil apachectl help please?
« Reply #9 on: August 22, 2004, 02:28:06 pm »
Quote
OK, that's the same version that I'm running on my SL-C860.

I didn't bother with the extra scripts, just modified the version of apachectl that was in the IPK as follows...

PIDFILE=/home/www/logs/httpd.pid
HTTPD='/home/www/bin/httpd'

Then made a couple of symlinks as follows...

ln -s /home/www/bin/apachectl /etc/rc.d/init.d/apachectl
ln -s /etc/rc.d/init.d/apachectl /etc/rc.d/rc5.d/S99apache

Then either restart or 'su -' and run /etc/rc.d/init.d/apachectl start to start the server.

I also made couple of mods to httpd.conf because I wanted the server to run on a different port and use a different userid to nobody:nobody but you shouldn't need these to get going.

Hope this helps,

Andy
Sweet Jesus, it worked!  

I owe you my first-born; comes complete with dirty diapers, sleep-less nights, and a hefty college tuition.

Thanks!

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
A lil apachectl help please?
« Reply #10 on: August 22, 2004, 02:54:26 pm »
That's OK, we have one... dirty diapers and 2 teeth...,

Have fun,

Andy
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card