Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

httpd does not work (-bash: httpd: command not found)

I am on someone else's linux server (shared hosting). I do not have root access. I have determined that it's a Redhat 4.1.2-46 running as Centos Release 5.9(Final).

I have the database dump for the site and the .php files from public_html as well. What I'm TRYING TO DO is locate the httpd.conf file and get the config for that site.

when I type in

httpd - v

I get -bas: httpd: command not found - even in like the /user/sbin directory - and it's clearly running and there.

Bottom line I can't find the sitedef/conf file for www.thisparticularsite.com - and can't even figure out what version of apache I'm running...

like image 336
Samuel Fullman Avatar asked Feb 12 '23 14:02

Samuel Fullman


1 Answers

For Apache 2 try apache2ctl -v (or sudo apache2ctl -v if root access is available). I'm on a Raspberry Pi 4B running Debian, just for reference.

like image 119
Pat Jones Avatar answered Feb 22 '23 02:02

Pat Jones