Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[root@cpe-24-195-24-133 httpd-2.2.0]# /usr/local/apache2/bin/apachect1 start
-bash: /usr/local/apache2/bin/apachect1: No such file or directory
any clue? Maybe I downloaded something wrong or im in the wrong dir to be doing this?
update:
Quote:
[root@cpe-24-195-24-133 ~]# cd /
[root@cpe-24-195-24-133 /]# ls
bin dev home lost+found misc net proc sbin srv tmp var
boot etc lib media mnt opt root selinux sys usr
[root@cpe-24-195-24-133 /]# cd /usr/local
[root@cpe-24-195-24-133 local]# ls
apache2 bin etc games include lib libexec mysql sbin share src
[root@cpe-24-195-24-133 local]# cd apache2
[root@cpe-24-195-24-133 apache2]# ls
bin cgi-bin error icons lib man modules
build conf htdocs include logs manual
[root@cpe-24-195-24-133 apache2]# cd bin
[root@cpe-24-195-24-133 bin]# ls
ab apu-1-config dbmmanage htcacheclean htpasswd logresolve
apachectl apxs envvars htdbm httpd rotatelogs
apr-1-config checkgid envvars-std htdigest httxt2dbm
[root@cpe-24-195-24-133 bin]# apapchect1
-bash: apapchect1: command not found
[root@cpe-24-195-24-133 bin]# apachect1 start
-bash: apachect1: command not found
[root@cpe-24-195-24-133 bin]# cd apachect1
-bash: cd: apachect1: No such file or directory
[root@cpe-24-195-24-133 bin]#
everything by envvars and envvars-std is green. Don't know if that means much. I wanted to see if I actually had the files.
[mbenoit@cpe-24-195-24-133 ~]$ /usr/local/apache2/bin/apachectl start
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[mbenoit@cpe-24-195-24-133 ~]$
I got Apache, MySQL, and PHP sucessfully installed on my system. I went to http://localhost and got the message "it works" so I was guessing it worked. I created my first php file firstprog.php and I went to localhost to type in:
http://localhost/firstprog.php and it coulden't resolve anything. The program is sitting in my home dir. Where the heck do I have to put it to view it? I'll be around for quick repies.
You will have to look at your httpd.conf file to find out where "DocumentRoot" is. That is where Apache will look for HTML files, by default. The easiest thing for you to do is search for "DocumentRoot" in httpd.conf and put your test PHP script in that directory, the one identified in the "DocumentRoot" directive, and then your URL, as coded above, should "work". You might have PHP issues but at least Apache will be able to locate the file.
I was using something different. Ok, so I have to do those steps. Where in the config file so I enter that information in for PHP5? Just tried to enter it somewhere and save and its read only? I did it through GUI not term. I dont know how to change it through terminal googling now
If you're using some GUI tool to edit the Apache config file, just find other "LoadModule" entries and put the line for PHP5 in next to those other lines. The same goes for the PHP MIME type (the "AddType" line).
Make those two changes to your httpd.conf file and PHP scripts should start executing. You can edit httpd.conf using any text editor you like. DO NOT use a word processor since you will need to save the file as straight text.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.