LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Root and normal User help plz (https://www.linuxquestions.org/questions/linux-newbie-8/root-and-normal-user-help-plz-250278/)

LiNuXn00biE_2.4 11-02-2004 12:46 PM

Apache and Install woes
 
I would like to install apache on my normal user account but it keeps telling me permission denied :( when creating a new directory. It is Apache 1.3.x.x So what my question is how do I give root permissions to the normal user account I am sure this question has been asked but I have a lot to do and do not have the time to go searching for the answer

secesh 11-02-2004 12:47 PM

you don't grant root permissions to a normal user, you login as root to accomplish tasks such as installations

NoSpHeRaTu 11-02-2004 12:54 PM

how he say. Enter as root and install. Is that easy ;)

michael_j_w 11-02-2004 12:55 PM

you could just use the su command

$ su
password: <root password>
#

after install don't forget to exit out of su mode

# exit
$

you might make notice of the change in the promt, this is a quick way of telling what mode your in

LiNuXn00biE_2.4 11-02-2004 01:16 PM

Thanks that worked much better :) and I now have apache somewhat installed and now I need help with this :

You now have successfully built and installed the |
| Apache 1.3 HTTP server. To verify that Apache actually |
| works correctly you now should first check the |
| (initially created or preserved) configuration files |
| |
| /usr/local/apache/conf/httpd.conf
| |
| and then you should be able to immediately fire up |
| Apache the first time by running: |
| |
| /usr/local/apache/bin/apachectl start
| |
| Thanks for using Apache. The Apache Group |
| http://www.apache.org/ |
+--------------------------------------------------------+
[root@localhost apache_1.3.32]# cd /usr/local/apache
[root@localhost apache]# /usr/local/apache/bin/apachect1 start


Now what do I do to start it up ?? it says no File or directory exists :(

:newbie:

secesh 11-02-2004 06:40 PM

ctl -- control -- all letters, not numbers --

apachectl, not apachect1

LiNuXn00biE_2.4 11-03-2004 01:01 PM

root@localhost apache_1.3.33]# cd /usr/local/apache
[root@localhost apache]# /usr/local/apache/conf/httpd.conf
bash: /usr/local/apache/conf/httpd.conf: Permission denied
[root@localhost apache]# /usr/local/apache/bin/apachectl start
[Wed Nov 3 11:59:34 2004] [warn] Apache does not support line-end comments. Consider using quotes around argument: "#-1"
Syntax error on line 564 of /usr/local/apache/conf/httpd.conf:
Regular expression could not be compiled.
/usr/local/apache/bin/apachectl start: httpd could not be started
[root@localhost apache]#

This is my latest erorr :( it says it can't be started but WHY?!?!?!

secesh 11-03-2004 02:50 PM

you have an error in your conf file, but this is not an executible file -- that is why you got permission denied

i think RH prefers nano to pico, so...
run:
nano /usr/local/apache/conf/httpd.conf
as root, and look around 564

--i can't help you any more unless i see your conf file

LiNuXn00biE_2.4 11-03-2004 03:23 PM

Ok thanks I will do that

LiNuXn00biE_2.4 11-03-2004 03:43 PM

Ok heres what I am getting now I used httpd-2.3.33 and everything Launched but now when I go to http://localhost/ it tells me Forbidden and that I do not have access to / so what do I do now? I am looking at this as a success but I don't know what to do from here

secesh 11-03-2004 04:05 PM

check file permissions, directory index, and the likes -- this is either a mis-config in .conf file, or file permissions error.

LiNuXn00biE_2.4 11-03-2004 04:11 PM

where do I do that at??

LiNuXn00biE_2.4 11-03-2004 04:46 PM

oh I was also wondering if the Server being connected to a Windows machine which is connected to a router could be causing any sort of Problems


I will try to detail it

Cable modem > Router

Router > Windows Machine
Router >Wireless adapter > Windows Machine
Router> Windows Machine > Linux Server

secesh 11-03-2004 04:55 PM

ls -l /var/www
ls -l /var/www/ht??
^ that's how you check file/directory permissions, it is your DocumentRoot variable in conf file...

you also need to check DirectoryIndex variable, and check your options in your dirctory directives of your conf file... the stuff in
<directory />
...
</directory>

LiNuXn00biE_2.4 11-03-2004 05:04 PM

I had to restart the server and now I get this error :(

[root@localhost apache]# /root/local/apache/bin/apachectl start
[Wed Nov 3 16:01:38 2004] [warn] Apache does not support line-end comments. Consider using quotes around argument: "#-1"
Syntax error on line 564 of /root/local/apache/conf/httpd.conf:
Regular expression could not be compiled.
/root/local/apache/bin/apachectl start: httpd could not be started
[root@localhost apache]# cd /root/local/apache
[root@localhost apache]# /root/local/apache/bin/apachectl start
[Wed Nov 3 16:02:19 2004] [warn] Apache does not support line-end comments. Consider using quotes around argument: "#-1"
Syntax error on line 564 of /root/local/apache/conf/httpd.conf:
Regular expression could not be compiled.
/root/local/apache/bin/apachectl start: httpd could not be started
[root@localhost apache]#

But before it started just fine.... I am gonna do the whole process over and see what happens I hate going in circles and thank you for your help Sec. :) I will be sure to check it as soon as I am done doing the process over


All times are GMT -5. The time now is 07:23 PM.