OESF Portables Forum
General Forums => General Discussion => Topic started by: wackjob 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/ (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??
-
./apachectl
-
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
-
./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!
-
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.
-
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"
-
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.
-
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 (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
-
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
-
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!
-
That's OK, we have one... dirty diapers and 2 teeth...,
Have fun,
Andy