Home General Computer Multimedia Business Lounge
|
Solved php squid
|
|
01-10-2012, 10:38 AM
|
|||
|
|||
|
php squid
Gan ini mo tanya ... Dapet tugas bikin php tampilan sendiri untuk restart squid
<?php echo "<h1>Squid Service</h1>"; if ($_POST['submit']) { system("service squid restart"); //$result = shell_exec('squid -k reconfigure'); } ?> <form action="<?php echo $_SERVER["PHP_SELF"] ?>" method="post"> <input type='submit' name='submit' value='Restart Squid'> </form> Salah di mana ya gan ?? tiap di klik kluar tulisan stopping squid failed starting squid failed |
|||
|
01-10-2012, 12:30 PM
|
|||
|
|||
RE: php squid
(01-10-2012 10:38 AM)bulbul Wrote: Gan ini mo tanya ... Dapet tugas bikin php tampilan sendiri untuk restart squid Code: system("service squid restart");#/etc/init.d/squid restart |
|||
|
01-10-2012, 12:40 PM
(This post was last modified: 01-10-2012 12:43 PM by ditatompel.)
|
|||
|
|||
|
RE: php squid
Itu failed, user (http) nya berwenang melakukan reconfigure / restart proxy server ga bro?
|
|||
|
01-10-2012, 03:11 PM
|
|||
|
|||
|
RE: php squid
bener kata om dita, hak aksesnya yg jadi masalah...
|
|||
|
01-10-2012, 03:32 PM
|
|||
|
|||
|
RE: php squid
hit n run lagi tsnya
|
|||
|
01-10-2012, 04:36 PM
|
|||
|
|||
RE: php squid
(01-10-2012 10:38 AM)bulbul Wrote: Gan ini mo tanya ... Dapet tugas bikin php tampilan sendiri untuk restart squid sayangnya setuid gak bisa untuk bash script jadi om harus buat program kecil c seperti ini kira-kira kalau mau restart squid misal nama file -> restartsquid.c Code: #include <stdio.h>abis itu compile script tersebut lalu change ownership ke root truz set flag setuid nya Code: gcc -o restartsquid restartsquid.cdah abis itu sekarang kalo dirun tuh restartsquid maka dia akan ngerestart squid.. tinggal dipanggil itu file dari php |
|||
Reputed by : ditatompel(+1) |
|
01-10-2012, 04:55 PM
|
|||
|
|||
RE: php squid
(01-10-2012 04:36 PM)Niketek Willy Wrote:(01-10-2012 10:38 AM)bulbul Wrote: Gan ini mo tanya ... Dapet tugas bikin php tampilan sendiri untuk restart squid Edan
|
|||
|
01-10-2012, 05:19 PM
|
|||
|
|||
RE: php squid
(01-10-2012 04:36 PM)Niketek Willy Wrote:(01-10-2012 10:38 AM)bulbul Wrote: Gan ini mo tanya ... Dapet tugas bikin php tampilan sendiri untuk restart squid istimewa isi daging rusa.... |
|||
|
« Next Oldest | Next Newest »
|
| Topic Tools | ||||||
| ||||||
| Users Browsing |
| 1 Guest(s) |














