We are using sendmail to send mails from our web app and we do not need to receive emails. Only our machine should be able to send emails from the sendmail server.
What's the best way to make sure sendmail is running secure on our server.
Again, we only need to be able to send mails using php's mail() function, nothing more.
...
My website has a file: www.mydomain.com/contact.php
If I request any of the following (which do not exist), apache serves the contact.php page.
www.mydomain.com/contact
www.mydomain.com/contact/
www.mydomain.com/contact/anything/else/here
How can I determine what part of the apache config to change to disallow this?
The apach...
Ok I am running CentOS, with PHP 5.2. I recently added the JSON extension. When running
php -i
.. after installing JSON, it says
json
json support => enabled
json version => 1.2.1
But when I run phpinfo it's not showing the JSON extension as being enabled. I have added the extension to the php.ini file so it loads the json.so file...
Hello!
How do I specify dependencies between init scripts on CentOS?
E.g. I need that when service "tomcat" is started it first start service "soffice".
On Gentoo we can do:
depend() {
need soffice
}
But what about CentOS?
Thanks in advance!
...
I would like to install Centos on my PC that is currently on windows.
I use the "network installation" from the live cd.
I have saved the install CD iso on my C drive.
I start the network install, and chose "Hard Drive" as a source.
It turns out that the network installer can not find the install image on my hard drive, on /dev/hda1
I...
I'm trying to setup mercurial using the HgLogin I have the following problem system. I done everything that is needed but when I tried to login to my repository I receive this answer:
remote: /home/mercurial/hg-login: line 1: use: command not found
: command not foundrial/hg-login: line 1:
: command not foundrial/hg-login: line 2:
remo...
I would like to work on wxWidgets on centos 5.
It turns out that the needed packages such as libwx_baseu-2.8.so.0 and other is not part of the default repository.
I would like to find what I have to add to my yum.conf file in order to download those packages through yum and not using rpm files.
...
This took me a few hours to solve so I hope it helps someone else. My gotcha was one of the addition PHP ini files was loading an old version of ioncube. It was simple looking back...
If you are installing Ioncube Loader on Virtual Private Server with Plesk checkout
http://blog.ucvhost.com/?p=126
Get correct ioncube version from
ht...
I have two websites: one with Lighttpd with PHP and second with Apache and neither of this handle chunked transfer encoding properly.
I send this request from my mobile, J2ME and there is no possibility to change this transfer type to any other.
So my only way to go is to handle chunked transfer enconcoded requests in other way. Any so...
Hi all,
I'm currently trying to install CutyCapt on my Centos VPS. I need this for displaying screenshots of websites in a catalogue.
Regrettably there's only a Debian/Ubuntu installation guide available. It must be said, that I'm no expert at Linux or commandlines, but still decided to give the installation a go..
So far I've install...
Good day all,
I am fairly new with PQSQL and am slowly picking things up - I have added a new disk and would like to do two things:
Restore a backup to this new disk - /hda2/pgdata/
Move a database from /hda1/pgdata to /hda2/pgdata/
Any help is most appreciated, thank you.
...
I am using the following "pack" function provided by the excellent php.js project.
http://github.com/kvz/phpjs/blob/master/functions/misc/pack.js
Running this in Mozilla's JavaScript shell it works fine, but running it in Node produces incorrect strings.
example, packing the number 2 as a Double with: pack('d',2);
JS Shell produces: ...
Hi all.
From my understanding, os.popen() opens a pipe within Python and initiates a new sub process. I have a problem when I run a for loop in conjunction with os.popen(). I can't seem to CTRL+C out of the loop. Here is my code:
for FILE in os.popen("ls $MY_DIR/"):
os.system("./processFile " + FILE)
Whenever I try to CTRL+C, ...
Spinning off from another thread, when is it appropriate to use os.system() to issue commands like rm -rf, cd, make, xterm, ls ?
Considering there are analog versions of the above commands (except make and xterm), I'm assuming it's safer to use these built-in python commands instead of using os.system()
Any thoughts? I'd love to hear t...
We have a CentOS 5.4 server serving a number of our websites. The server is managed by Plesk 9.2.3.
Our websites are developed in php.
We have our main domain ourapplication.co.uk in /var/www/vhosts/ourapplication.co.uk/httpdocs, and
our subdomain api.ourapplication.co.uk in /var/www/vhosts/ourapplication/subdomains/api/httpdocs
The fo...
I installed gitosis and redmine and am running it through apache/passenger on CentOS. The problem is I cannot access the repositories through redmine. The error being "The entry or revision was not found in the repository.
My repository is stored at
/home/zenna/repositories/myproject.git
The error (found in the apache logs) is "fata...
Is there a way to get CPU usage in CentOS? I need to parse this information and graph it from a Perl script, so it should preferably be a simple tool that prints out one singular output.
...
I'm a LAMP developer trying out Python for the first time.. I'm okay with picking up the syntax, but I can't figure out how to run it on the server! I've tried the following
uploading filename.py to a regular web/public directory. chmod 777, 711, 733, 773... (variations of execute)
putting the filename.py in cgi-bin, chmod same as abov...
I am trying to install the Crypt::OpenPGP module via Perl CPAN with no luck. The errors I am receiving are:
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/07-digest.t 1 256 15 1 6.67% 15
Failed 1/14 test scripts, 92.86% okay. 1/2...
This is weird. I have 2 centos boxes, prod (192.168.0.1) and vm (192.168.0.30).
Mysql database sits on prod.
App sits on vm.
From vm, if I type
mysql -u user -p -h 192.168.0.1 -D mydb
it connects lovely, so port is open and listening on prod
but in app, i do
$db=new mysqli('192.168.0.1','user','mypass','mydb');
and I get
Warnin...