web of unni

About | GuestBook | Add WebOfUnni to Google ToolBar

Download Day

September 27, 2007

Webshell in Hsphere not listing files

Filed under: hsphere, webshell — unni @ 5:16 pm

If the Webshell file manager in HSphere is not listing files, you need to check the php settings in the server.

Open /hsphere/local/config/httpd/php4/php.ini or /hsphere/local/config/httpd/php5/php.ini

and check for the disabled_functions and remove the functions
popen and proc_open

and restart httpd using

/etc/init.d/httpd restart

If that not resolved your problem you need to remove each function and try restarting httpd. Still the problem persists you need to go to this link https://support.comodo.com/?group=psoft

Hope this will be helpful

Overriding default Return-path in mail header using php mail

Filed under: mail, php — unni @ 2:15 pm

When sending mails using php script default return path in mail header will be something like nobody@host.com. By adding some additional parameter in php mail function we can replace the default return path.

Php mail function has 5 parameters

1. To
2. subject
3. message
4. additional_headers
5. additional_parameters

So when sending mails using php mail function we can add -f myname@myself.com in additional_parameters section to replace the return path with our mail id.

Sample code for replacing return path with wemaster@example.com is given below

<?php
$to = ‘unnikrishnan.a@gmail.com’;
$subject = ‘the subject’;
$message = ‘hello’;
$headers = ‘From: webmaster@example.com’ . “\r\n” .
‘Reply-To: webmaster@example.com’ . “\r\n” .
‘X-Mailer: PHP/’ . phpversion();

$result = mail($to, $subject, $message, $headers, “-fwemaster@example.com”);
echo $result;
?>

In the mail header we can see the return path as wemaster@example.com

Delivered-To: unnikrishnan.a@gmail.com
Received: by 10.90.26.7 with SMTP id 7cs24300agz;
Thu, 9 Aug 2007 07:12:35 -0700 (PDT)
Received: by 10.115.77.1 with SMTP id e1mr1363695wal.1186668755167;
Thu, 09 Aug 2007 07:12:35 -0700 (PDT)
Return-Path: <wemaster@example.com>

September 26, 2007

Getting error when sending mail via cgiemail or php script

Filed under: cgiemail, exim, sendmail — unni @ 5:06 pm

If you are getting the error shown below when trying to send mail using “cgiemail” or php script you need to try following solution.
—————————————————————————————————–
root@server [~]# tail -f /var/log/exim_mainlog | grep domain.com
2007-08-21 12:27:57 1INRtt-0001qS-Jz ** user@domain.com R=checkspam2: Gid 99 is not permitted to relay mail, or has directly called /usr/sbin/exim instead of /usr/sbin/sendmail.
——————————————————————————————————

1. First check if /usr/sbin/sendmail is there and make sure that it is not a link to /usr/sbin/exim
2. Check the permissions. The permission should be as follows.

——————————————————————————————————-
-rwxr-sr-x 1 root mailtrap 10664 Sep 25 09:59 /usr/sbin/sendmail*
——————————————————————————————————-

Owner should be root and group should be mailtrap.

Make sure the group has sgid permission.
—————————————————————————————————-
root@admin [~]# ll /usr/sbin/sendmail
-rwxr-xr-x 1 root mailtrap 10548 May 7 16:36 /usr/sbin/sendmail*

root@admin [~]# chmod g+s /usr/sbin/sendmail

root@admin [~]# ll /usr/sbin/sendmail
-rwxr-sr-x 1 root mailtrap 10548 May 7 16:36 /usr/sbin/sendmai
——————————————————————————————————–

As our user Navneet suggested in the comment section removing the file “/etc/eximmailtrap” will also resolve the issue. Try that if the above doesn’t fix the issue.

=======================================
rm /etc/eximmailtrap
=======================================

If still the problem persists make a comment entry to this blog i will try to help you to resolve your probs.
Thank you … :-)

September 17, 2007

Yahoo’s answer for google’s Orkut

Filed under: mash, yahoo — unni @ 10:18 am

mash logo

Today i got an invitation from my friend for joining the Y! Mash Yahoo’s social networking portal. As am a google fan and like Orkut very much usually i will not accept invitations for joining other social networks. But for the curiosity that what Yahoo has done to beat Orkut i just entered in to the site.

After login using my old Yahoo login i got a white page with lots of boxes like igoogle. There are lots of thing that we can do with these boxes. Y! Mash is actually adapted a wiki interface. We can edit the content directly. Interesting thing is that Our friends can also edit our profiles ( Thats not good at all… from my point ;-) ) .

We can change the background colors, also we can add pictures. Since i am an Orkut fan i made my profile page similar to Orkut with those lovely blueish shades.

mash my profile

There are lots of modules like in igoogle that we can add to our profile page.

Y! Mash is also may be the killer of Yahoo 360. As company has not yet confirmed if they are going to shutdown Y! 360, rumors are there.

Anyway lets see how Yahoo is going to compete with Orkut. Lets have fun :-)

Reference…

http://www.news.com/8301-10784_3-9779025-7.html?tag=tb

http://blog.mash.yahoo.com/

http://www.news.com/8301-10784_3-9778936-7.html?part=rss&subj=news&tag=2547-1_3-0-5-gtb

http://www.techcrunch.com/2007/09/14/yahoo-invites-us-into-mash-its-new-social-network/

Created and maintained by Unnikrishnan
Hosted by Host cats