Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

[Apache] Following symbolic link

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  corrupted request header problem  
Author Message
Joah Senegal

External


Since: Sep 13, 2007
Posts: 3



(Msg. 1) Posted: Mon Sep 24, 2007 6:17 pm
Post subject: [Apache] Following symbolic link
Archived from groups: alt>apache>configuration (more info?)

Hello all,

I use the following script to run a command on my linux machine:

<?php
$output = shell_exec('ls -lart');
echo "<pre>$output</pre>";
?>

The script works fine if I use commands like cat ls dir. I get a output
back.

But now I made a symbolic link called groupmanager wich points to
/usr/lib/news/bin/ctlinnd. ctlinnd is a program to add a new group to a NNTP
server. normally this program should output "ok" or an error. but I get no
output. So the command isn;t executed. Its proberbly a security issue.

I added this to /etc/httpd/conf/httpd.conf

<Directory /usr/lib/news/bin>
Options All
AllowOverride All
</Directory>

My appache server is running under the user "apache".

I tried to do in the bash "sudo apache" to try the command manually under
this user... but it says the user isn;t available at the moment (even if I
shutdown apache)

if I type the command manual in the bash under user root everything works
fine.

I already performed chmod 777 on the files I need. but it stil doens;t works

anyone know what the problem here?

 >> Stay informed about: [Apache] Following symbolic link 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Mon Sep 24, 2007 7:22 pm
Post subject: Re: [Apache] Following symbolic link [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived

 >> Stay informed about: [Apache] Following symbolic link 
Back to top
Login to vote
Joah Senegal

External


Since: Sep 13, 2007
Posts: 3



(Msg. 3) Posted: Mon Sep 24, 2007 8:15 pm
Post subject: Re: [Apache] Following symbolic link [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

No it is possible with the above script. Read mij topicstart.... I already
performed succesfully commands like ls, dir, who, chmod and more. Only this
program (ctlinnd) wont execute with this method.

"Davide Bianchi" <davideyeahsure.DeleteThis@onlyforfun.net> wrote in message
news:slrnfffsi8.37j.davideyeahsure@fogg.onlyforfun.net...
> On 2007-09-24, Joah Senegal <bloker.DeleteThis@hva.nl> wrote:
>> But now I made a symbolic link called groupmanager wich points to
>> /usr/lib/news/bin/ctlinnd.
>
> You can't simply run any command out from a php script, the command is
> probably trying to open files, load libraries and the like and all this
> require different permissions. You either write a proper CGI script
> and use the correct permissions or use one of the many web interface to
> do the same things. Why re-inventing the wheel?
>
> Davide
>
> --
> It's nice to be loved, but there's a lot to be said for CRINGING RESPECT
> --Anonymous button bin
 >> Stay informed about: [Apache] Following symbolic link 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Symbolic link in tomcat - Does anybody know why symlinks doesn't work in tomcat ? --> cd webapps/myWebApp ln -s /xxx "http:// .../myWebApp/xxx/file1.html" causes an error Accessrights of the link, file and dir are 777. Thank for help.

Symbolic link not allowed problem -but why? - Gentoo Linux Apache2 Im getting this in my eror logs in spite of commonapache.conf starting with <Directory /> # Options -Indexes FollowSymLinks Multiviews ExecCGI Options +FollowSymLinks AllowOverride None #AllowOverride All &lt;IfMo...

Symbolic link not allowed or link target not accessible - Hi I am running Apache 2.2.3 on Ubuntu 6.06 I have a symbolic link in htdocs to /home/ijntema/pictures; The directory has following settings: drwxr-x--- 68 ijntema media 4096 2006-08-23 09:37 ijntema In the group file..

symbolic links - how can I configure apache to execute a script as symbolic link, using linux as s.o.? thanks sergio

Broken JK2 Link between Apache and Tomcat - Hi, We were having a problem with our firewall, where it drops connection (even active ones) between apache and tomcat after an hour. So, we thought we would force the connection to close by 20 secs with the following statement in tomcat server.xml: ..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]