05-28-2020, 10:43 AM
(This post was last modified: 05-30-2020, 10:25 AM by FordSubmariner.)
ubuntu@x.x:~$ lynx http://localhost
[this did connect to apache]
ubuntu@x.x2:~$ sudo systemctl stop apache2
ubuntu@x.x:~$ lynx http://localhost
Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.
lynx: Can't access startfile http://localhost/
ubuntu@x.x:~$ sudo su -s /bin/bash www-data
www-data@x.x:/home/ubuntu$ cd /home/apache/tactic/src/bin
www-data@x.x:/home/apache/tactic/src/bin$ python3 startup_dev.py -p 80 -s http://x.x
Data Directory [/home/apache/tactic_data]
Asset Directory [/opt/tactic/assets]
Temp Directory [/opt/tactic/tactic_temp]
Config path [/home/apache/tactic_data/config/tactic-conf.xml]
Registering project ... admin
Registering project ... default
Initializing Workflow Engine
Starting Scheduler ....
Starting TACTIC v4.7.0.b02 ...
[But should it stay running and hang on to the command prompt (as a foreground process)? Instead, it immediately returned the command line as shown below... I tried connecting using a remote browser to the http://x.x/tactic URL but nothing is listening on port 80, and the browser found no connection.]
www-data@x.x:/home/apache/tactic/src/bin$
www-data@x.x:/home/apache/tactic/src/bin$ ps aux|grep startup_dev
www-data 22354 0.0 0.1 14856 1100 pts/0 S+ 10:35 0:00 grep startup_dev
www-data@x.x:/home/apache/tactic/src/bin$
$ netstat -lpn|grep 80
(No info could be read for "-p": geteuid()=33 but you should be root.)
unix 2 [ ACC ] STREAM LISTENING 12801 - /run/lvm/lvmpolld.socket
www-data@x.x:/home/apache/tactic/src/bin$ exit
ubuntu@x.x:~$ sudo netstat -lpn|grep 80
unix 2 [ ACC ] STREAM LISTENING 12801 1/init /run/lvm/lvmpolld.socket
$ sudo systemctl start apache2
ubuntu@x.x:~$ sudo netstat -lpn|grep 80
tcp6 0 0 :::80 :::* LISTEN 22405/apache2
unix 2 [ ACC ] STREAM LISTENING 12801 1/init /run/lvm/lvmpolld.socket
ubuntu@x.x:~$
[this did connect to apache]
ubuntu@x.x2:~$ sudo systemctl stop apache2
ubuntu@x.x:~$ lynx http://localhost
Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.
lynx: Can't access startfile http://localhost/
ubuntu@x.x:~$ sudo su -s /bin/bash www-data
www-data@x.x:/home/ubuntu$ cd /home/apache/tactic/src/bin
www-data@x.x:/home/apache/tactic/src/bin$ python3 startup_dev.py -p 80 -s http://x.x
Data Directory [/home/apache/tactic_data]
Asset Directory [/opt/tactic/assets]
Temp Directory [/opt/tactic/tactic_temp]
Config path [/home/apache/tactic_data/config/tactic-conf.xml]
Registering project ... admin
Registering project ... default
Initializing Workflow Engine
Starting Scheduler ....
Starting TACTIC v4.7.0.b02 ...
[But should it stay running and hang on to the command prompt (as a foreground process)? Instead, it immediately returned the command line as shown below... I tried connecting using a remote browser to the http://x.x/tactic URL but nothing is listening on port 80, and the browser found no connection.]
www-data@x.x:/home/apache/tactic/src/bin$
www-data@x.x:/home/apache/tactic/src/bin$ ps aux|grep startup_dev
www-data 22354 0.0 0.1 14856 1100 pts/0 S+ 10:35 0:00 grep startup_dev
www-data@x.x:/home/apache/tactic/src/bin$
$ netstat -lpn|grep 80
(No info could be read for "-p": geteuid()=33 but you should be root.)
unix 2 [ ACC ] STREAM LISTENING 12801 - /run/lvm/lvmpolld.socket
www-data@x.x:/home/apache/tactic/src/bin$ exit
ubuntu@x.x:~$ sudo netstat -lpn|grep 80
unix 2 [ ACC ] STREAM LISTENING 12801 1/init /run/lvm/lvmpolld.socket
$ sudo systemctl start apache2
ubuntu@x.x:~$ sudo netstat -lpn|grep 80
tcp6 0 0 :::80 :::* LISTEN 22405/apache2
unix 2 [ ACC ] STREAM LISTENING 12801 1/init /run/lvm/lvmpolld.socket
ubuntu@x.x:~$