i've server without any control panel
and i am trying to build file that allow me to add subdomains to my site
by editing ( apache config file ) and ( named zones )
but i've no permissions to edit this files!! i am only able to read them!
my example file is
mysite.com/panel/file.php
<?
if ( $_GET['read_httpd']){
$content = file_get_contents ( '/etc/httpd/conf/httpd.conf' );
if ( !empty ( $content ) )
echo 'File Read!<br />';
echo $content;
}
elseif ( $_GET['remove_named'] ){
$delete = unlink ( '/var/named/alaa.hosts' );
}
elseif ( $_GET['remove_config'] ){
$delete = unlink ( '/etc/httpd/conf/httpd.conf' );
}
?>
i've been read files successfully, but i am unable to edit !!
So, How can i allow the file to edit?