is possible the line "apache ALL=(root) NOPASSWD:ALL" into [/etc/sudoers.d/file.test] ?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
thanks,
my requeriment only is restart using PHP from browser.
Why is it a 'requirement' to use PHP?? Again, what is your ACTUAL GOAL??
Quote:
webmin not is a option becouse I can't interconnect this to my project.
And we're now five pages into your thread and you mention a 'project'...WHAT project?? What do you need to 'interconnect', and why?? Unless you actually answer questions and acknowledge/understand what people are telling you, no one will be able to do ANYTHING to assist.
Quote:
abaut SNMP, this can work in union with browser + PHP ?
AGAIN: your apparent goal is to reboot a computer over a network connection. SNMP and Webmin can do it. If you don't know what SNMP is, you can go look it up at this point. You seem to ignore things, and aren't asking clear questions or even clearly defining what your goal(s) are.
If this is a homework project, you have EVERYTHING you need in this thread to be able to reboot a computer via a PHP page.
ok, then how I can restart from PHP using browser ?
You go back to the first page of this thread, and read what people have been telling you over and over. You then APPLY that knowledge. That's it.
Again, you've been given everything you need to do this, along with several options for doing exactly what you claim to want, which is shutting down/rebooting a computer over the network.
The only caveat is the php server does not support https. I have not tried starting it from localhost:8000 and then tried redirecting https://web/file.php to localhost:8000/reboot.php
The only caveat is the php server does not support https. I have not tried starting it from localhost:8000 and then tried redirecting https://web/file.php to localhost:8000/reboot.php
And you apparently are *STILL* not paying attention. What is the 'and more'?? WHY from your browser?? What doesn't Webmin do that you need???
Quote:
The point is from my LAMP not work.
And it doesn't work because you aren't following the advice you're given.
AGAIN:
WHY are you doing this???
WHY can you not use SNMP???
WHY are you ignoring the advice about the horrible security involving this???
And before you say it's a 'requirement for your project', you STILL haven't told us what this project is or any of the 'requirements' you have. If this is your homework, then you need to go tell your teacher you need help.
many thanks by your help, security not is problem becouse is project running in LAN.
Sorry, no. If you actually think/believe that you are in a VERY bad spot at your company.
Quote:
By now, only post #69 resolve my problem.
...which you could have done quite a while ago, but had to get someone else to put it together for you. And AGAIN, you are *STILL NOT ANSWERING* the question about why SNMP and Webmin aren't available.
Sorry, no. If you actually think/believe that you are in a VERY bad spot at your company.
...which you could have done quite a while ago, but had to get someone else to put it together for you. And AGAIN, you are *STILL NOT ANSWERING* the question about why SNMP and Webmin aren't available.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.