What is the most similar AIX-like linux/unix OS available?
The question tells everything What is the most similar AIX-like linux/unix that is free and also capable to be installed on a VM so that i can do some practice? I need to do some testing before starting to actually work, and there is an AIX server out there that I have to config. I have some intermediate linux experience (ubuntu, openSUSE, HP-UX), however I have never configured an AIX before. To my knowledge one [...]
Continue Reading »How to verify application up or not?
I would like to write a script to check whethere the application is up or not using unix shell scripts. From googling I found a script wget -O /dev/null -q http://mysite.com, But not sure how this works. Can someone please explain. It will be helpful for me. Asked by Selvakumar P wget is an HTTP client, so you’re making a web request to http://mysite.com. You’ll have to check the exit status of the wget command: [...]
Continue Reading »Apache executes HTML, but not executing PHP; PHP CLI works
I am running php 5.3.3 on rhel 6.2 with Apache 2.2.15 and am failing to get PHP code interpreted by Apache. There are no errors (in the system log, httpd/error_log, or php_errors.log) – I have enabled error reporting in php.ini: error_reporting = E_ALL & ~E_DEPRECATED display_errors = On log_errors = On error_log = /var/log/php_errors.log Yet, when i view my index.php, which contains the following code, from my browser, nothing appears but a white-screen: <?php echo [...]
Continue Reading »Apache executes HTML, but not PHP; PHP CLI works
I am running php 5.3.3 on rhel 6.2 with Apache 2.2.15 and am failing to get PHP code interpreted by Apache. There are no errors (in the system log, httpd/error_log, or php_errors.log) – I have enabled error reporting in php.ini: error_reporting = E_ALL & ~E_DEPRECATED display_errors = On log_errors = On error_log = /var/log/php_errors.log Yet, when i view my index.php, which contains the following code, directly from my browser (e.g. myserver.com/index.php), nothing appears but a [...]
Continue Reading »Secure LDAP Alias Lookup through Sendmail
I’m trying to configure sendmail to use an LDAP lookup as an alias table. I have this line in my config: Kldapfullname ldap -k”uid=%s” -v”mail” -h”my-ldap-server” I’ve been using that for a long time. It works, aliases get looked up, and email ends up in the proper inbox. However, it’s working because the LDAP is currently allowing anonymous binds. Due to some policy changes, this can’t be done anymore. I got this working: Kldapfullname ldap [...]
Continue Reading »Unix: giving a group permissions to a file
On a Ubuntu server, I have a database file under a user’s home directory, specifically /home/pistacchio/lessico/mydatabase.db. Apache works under the group www-data. What is the best way to grant access to that file to Apache? Thanks Asked by pistacchio not sure why someone gave you a -1…. but here’s some food-for-thought on the subject. If you’re trying to have a database-driven website, Apache does not need access to the database files directly. Typically, apache relies [...]
Continue Reading »Apache, virtual hosts, and default sender for sendmail
So here’s my issue…I have two sites hosted on one machine using apache’s virtual hosts. I want to send emails from the two different sites (domain.com and domain2.com) using the appropriate email addresses. I currently have this value in php.ini: sendmail_path = /usr/sbin/sendmail -t -i -fuser@domain.com But when I try sending an email from a script on domain2.com it obviously is delivered with a From: user@domain.com header. Apache doesn’t allow you to set a rule [...]
Continue Reading »Bash script is not working as cron job
I have the following shell script $cat capture.sh TIME=$(date +”%H-%M-%d-%m-%y”) IP=”203.208.198.29″ PREFIX=$TIME$IP tshark -f “udp” -i eth0 -w /root/captures/$PREFIX.cap& pid=$! sleep 2m kill $pid it runs fine when i execute it from shell. but when i add it to the cron tab nothing happens. my crontab entry : 1 */2 * 2 3,4,5 sh /root/capture.sh tail /var/log/cron shows that the command has executed . but nothing happens. i have set executable permission for “all” for [...]
Continue Reading »socat: Show incoming connections
I am slightly going mad. Even if I call socat like this: socat -vvvv tcp4-listen:9000 tcp4-listen:9001 it works perfectly, but doesn’t inform me about incoming TCP connections! Is there an additional verbosity option that makes socat show this information, something like Connection from XYZ Can’t be such a special function, or can it? Asked by Niklas By old habit I am just used to grouping arguments together like -dddd for more verbose debugging, but when [...]
Continue Reading »Is there a CentOS server edition and a seperate desktop edition?
Until now I have been using Ubuntu server. Ubuntu has separate downloads for desktop and server editions. I want to try a CentOS server, when I download a copy from a mirror through centos.org the ISO I get installs with a GUI. On every download mirror, there is no distinguishing label on the downloads. So is there only one version of CentOS or separate versions for Desktop and Server? I want a bare bones install [...]
Continue Reading »


