php.ini problem
Posted by: windtown
Posted on: 2009-09-12 21:01:00
#!/bin/sh
CGIFILE="$HOME/abc.com/cgi-bin/php.cgi"
INIFILE="$HOME/abc.com/cgi-bin/php.ini"
rsync -a /dh/cgi-system/php5.cgi "$CGIFILE"
cp /etc/php5/cgi/php.ini "$INIFILE"
perl -p -i -e '
s/.*post_max_size.*/post_max_size = 100M/;
s/.*upload_max_filesize.*/upload_max_filesize = 100M/;
' "$INIFILE"
it's saved as one abc.sh.
i just tried to make my custom php5 into my website. but while i execute abc.sh, come out with one problem, -bash: ./abc.sh: /bin/sh^M: bad interpreter: No such file or directory.
anyone can help me with this. thank you.