I have successfully setup my DNS Server (BIND) on a IP which is a static ip i.e. at 192.168.1.d (on a CentOS 6 machine)
I have a small network in my office and previously I have to change entry for everyone host on network in /etc/hosts file. But now I have changed their name server to the above IP Address.
I made a domain mycompany.com and added entries for each host in both forward and reverse zone files which is...
User Profile
Collapse
-
How to setup DNS for apache
-
thanks sicarie for your explanation its really helpful. But i have gone through documentation.
What i have figured out is that if im running a website it means it can't be protected whatsoever either its a SELinux or Chroot environment. In both cases website may be compromised and attacker may have access to website folders.
So in such case only backups can secure me which i need to make a proper plan to make them in place.... -
Run Apache in Chroot or use SELinux
Hi everyone,
I am not an expert in linux but i saw that some people run apache in a chroot jailed environment so that im ever website compromised the attacker will only have access to its jailed environment.
On the other hand, SELinux is also designed for the same type of job if im not wrong. We need to change the directory's context.
So im a bit confused here that what should i use SELinux or Chroot... -
There is ffmpeg-php library. You can goolge about ffmpeg. There are alot of conversion support available using ffmpeg.Leave a comment:
-
How to setup a public web server on CentOS 6?
Hi everyone,
I have installed CentOS6(64 bit) at my LAN network. I plugged my network cable into the CPU and then i assigned a LAN IP and GATEWAY address.
It is working fine and I can SSH through network to this computer and I can browse internet at this computer.
My task is to make this computer as Web Server so that i can give IP address to my clients so that they can view my local sites from internet.... -
not able to change root password (ubuntu server)
Hi everyeone,
I have insalled ubuntu server. Somebody gave me root access. I check its id and it showed me id as 0 and groupid as 0. I also checked it using whoami = root.
But when i tried to change the root password using passwd command its giving me the following response:
Code:The program 'passwd' is currently not installed. You can install it by typing: apt-get install passwd
-
FTP Upload from my server to other server
Hi everyone,
I have a VPS (Dedicated Server) where im hosting my website. I am creating zip file using PHP and size of that zip file can be huge like it can be 700mb or can be 1gb.
My requirement is to move that zip file from my web server to other web server. I am afraid that how i can upload such big files using php ftp and what type of restrictions php/apache impose on such type of big files transfers.
... -
redirect url to some other url using .htaccess
Hi everyone,
I am using following code into my .htaccess file at root folder of my webpage:
Code:Options +SymLinksIfOwnerMatch RewriteEngine on rewritecond %{http_host} ^mywebsite.com [nc] rewriterule ^(.*)$ http://www.mywebsite.com/$1 [r=301,nc] RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?page=$1 RewriteRule ^myarticle/([A-Za-z0-9-]+)/?$ index.php?page=my-article&id=$1
-
-
How to change linux distro on VPS server?
i have purchased dedicated server and it is installed Centos OS by default and plesk admin panel.
All i have plesk admin panel info and SSH root access to my VPS. I contacted someone to install linux and that person installed fedora on it.
Now i want to do it myself but i dont know how to do it. Hosting company will not have any issue with installing or removing anything from my dedicated server.
Why should...Last edited by Niheel; May 11 '11, 11:09 PM. Reason: please only ask one question per thread, if you question is different start another discussion. -
mfaisalwarraich started a topic How would i know which flavor of linux it is? and which operating system it is?in LinuxHow would i know which flavor of linux it is? and which operating system it is?
Hi everyone,
I have SSH access to the root of remove VPS. I don't know which flavor of linux it is and which operating system it is?
Please tell me how would i know the above info? I am sure it is Fedora Linux but what command should give me the above info. Please help me. thank you.
Also how would i Install different flavor of linux if all i have a SSH access shell? I have purchased a VPS from a hosting company... -
hi moin,
you probably need to install ffmpeg at wamp and keep in mind that u need to install proper version of ffmpeg against your php version. its not easy to get dll for the ffmpeg but there is a chance that u can get it on google somewhere. if not let me know.Leave a comment:
-
hi,
try to type 'height' instead of 'heigh t' inside your href parameters.Leave a comment:
-
stop accessing my PC by anyone from linux on local network
Hi everyone,
I saw someone from Linux have some window open where they can see what im doing like they can see my desktop and access my files. Please tell me how i can prevent that access to my PC.
I am running Windows XP. -
You need to tell browsers not to cache your data with the following http headers:
Code:header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
Leave a comment:
-
i think u need to get relative values. try with this one. i have altered this function to get its relative values instead of keys.:
Code:function array_key_relative($array, $current_key, $offset = 1) { // create key map $keys = array_values($array); // find current key $current_key_index = array_search($current_key, $keys); // return desired offset, if in array, or false if not
Leave a comment:
-
try this:
Code:$con = mysql_connect('hostname/ip-address', 'db_username','db_password') or die('could not connect to database'. mysql_error()); mysql_select_db('db_name', $con) or die('database not selected'. mysql_error());
Leave a comment:
-
each country have different states and then different cities. how u can populate cities without knowing state?Leave a comment:
-
u can turn on/off error reporting using:
Code:error_reporting(0); //error reporting off error_reporting(-1); //error reporting on
Leave a comment:
-
according to php manual a variable is empty if meeting anyone of the following case:
Code:"" (an empty string) 0 (0 as an integer) "0" (0 as a string) NULL FALSE array() (an empty array) var $var; (a variable declared, but without a value in a class)
Leave a comment:
No activity results to display
Show More
Leave a comment: