Termux-packages: How can i start apache2 in termux

Created on 21 Nov 2017  ยท  20Comments  ยท  Source: termux/termux-packages

Tell me sir how can i do that

Most helpful comment

rm $PREFIX/var/run/apache2/httpd.pid

and try again

All 20 comments

Use command
apachectl start

Closing this due to lack of information.

ar1984@localheart:~$ apachectl start
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
(20014)Internal error (specific information not available): AH00058: Error retrieving pid file var/run/apache2/httpd.pid
AH00059: Remove it before continuing if it is corrupted.

rm $PREFIX/var/run/apache2/httpd.pid

and try again

(20014)Internal error (specific information not available): AH00058: Error retrieving pid file var/run/apache2/httpd.pid
AH00059: Remove it before continuing if it is corrupted.

Address already in use: AH00072: make_sock: could not bind to address [::]:8080
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8080
no listening sockets available, shutting down
AH00015: Unable to open logs

If you run apachectl -t -D DUMP_INCLUDES , it will show you the patch to your httpd.conf
I don't know how much that'll help, I havent figured out myself how to rum Apache2 in Termux either, but I hope people will come closer with this.

has someone done this? I think this has something to do with the path. Most packages expect /var/.... but we don't have that.

Do echo "ServerName localhost" >> /data/data/com.termux/files/usr/etc/apache2/httpd.conf
Then
apachectl start

I am having the problem too. I want to run python cgi scripts but its not working even with python3 http server

I am having the problem too. I want to run python cgi scripts but its not working even with python3 http server

I am also having the same problem
It just opens python files.

Not working.

@SigmaRS What is not working ? Which error did you get ?

Apache server on termux.
Here's the error:

(20014)Internal error (specific information not available): AH00058: Error retrieving pid file var/run/apache2/httpd.pid
AH00059: Remove it before continuing if it is corrupted.

Also removing the above "httpd.pid" causes another error because it contains some set-ups for the server.

Any recommendation/alternatives?
Thanks.

I got it to work.... thx to Hax4us and OhNyZsh faje root ๐Ÿ˜…๐Ÿ˜Ž๐Ÿ˜๐Ÿ˜๐Ÿ˜

How do you manage that?

@HussainiMagaji

Hax4us got me the reason to work... kill (pid) in my case it was 20307 and then i set the servername to localhost like Hax4us

When i did like Hax4us,i get this error:

AH00534: httpd: Configuration error: No MPM loaded.

I use of termux in android

https://httpd.apache.org/docs/current/de/mpm.html

Please read the instructions for MPM's

Greez n cheerz

Am Sa., 2. Mรคrz 2019, 22:00 hat AHvibrator notifications@github.com
geschrieben:

When i did like Hax4us,i get this error:

AH00534: httpd: Configuration error: No MPM loaded.

I use of termux in android

โ€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/termux/termux-packages/issues/1818#issuecomment-468959627,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AkgzGBJ4NdJ99U8mXdtF74KahZyO3A2Cks5vSuZRgaJpZM4Qlkx5
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jackbrycesmith picture jackbrycesmith  ยท  3Comments

tigran123 picture tigran123  ยท  3Comments

divyakutty picture divyakutty  ยท  3Comments

thurask picture thurask  ยท  3Comments

zejji picture zejji  ยท  4Comments