Using Crypt Function In C++ On Linux
Apr 23, 2008Can anyone tell me in order to use the crypt function (amd md5sum) in a c++ program (g++ on CentOS assuming the cryptography libary is installed) what do I have to
#include
?
Can anyone tell me in order to use the crypt function (amd md5sum) in a c++ program (g++ on CentOS assuming the cryptography libary is installed) what do I have to
#include
?
I am getting the "Function not implemented" error from /var/log/plesk/panel.log I have tried reading this article but it seems to only apply to Ubuntu and I am running CentOS 6 x64
How can I get past this error?
I'm trying to send email from a domain using code like this:
$email = "me@domain.com";
$from = "From: $email
";
mail($receiver, $subject, $message, $from);
But i see in the mail logs that from address is being overwritten using the default user for the domain. Is there anyway to configure plesk or postfix to respect those headers?
As per title, since few I have this when some php funcion is calling zlib_encode :
PHP Fatal error: Call to undefined function zlib_encode()
I saw that is was a know bug when there are some rewrite rules on .htacccess which is my case [URL] ....
I checked for json as well, and seem to be activated :
json
json support => enabled
json version => 1.2.1
I'm experiencing some issue with the php function mail(). No mails can get out and no errors from php. Is there any menu where we can parameter this php function ? Do I need to check up some services ?
CentOS 6.5 with Plesk 11.5
Fresh install
'ERROR: Call to a member function getDomainId() on a non-object (Sites.php:104)'
View 6 Replies View Relatedsince my Update up to plesk 12
at the moment none of my websites can send E-Mails via sendmail :-(
Plesk 12.0.18 Update #38
Cloudlinux 6.6
Outgoing mail control functions properly for domains, but it does not count or limit subdomains.
For example, if you have a subdomain like:
sub.domain.tld
And an email account on that subdomain, like:
info@sub.domain.tld
Then outgoing mail limits are not applied to that subscription/domain/mail account. You are able to send more emails than the limit.
Also, if you go to:
-> Tools and Settings
-> Outgoing mail control
And try to see statistics for that subscription/domain/mail account, it shows that there are not sent emails, even if you have sent emails. Of course I checked it many hours after sending, or even the next days.
I have some problem with my parse_url after last update of Plesk Panel.I ran the test script on my server and on my local computer, and received the following result: Local computer:
HTML:
Array ( [path] => product_features.clear_list [query] => redirect_url=http://www.siteExample.com )
My server:
HTML:
Array ( [host] => product_features.clear_list?redirect_url=http [path] => //www.siteExample.com )
As you can see, the structure of the output data is not identical as it should be.
Test script that I used:
Code:
<?php
$test = 'product_features.clear_list?redirect_url=http://www.siteExample.com';
$test1 = parse_url($test);
print_r($test1);
?>
I have just upgraded linux VPS running ubuntu 10. I installed all of the latest plesk updates first and then went through the upgrade. There were no pre-upgrade warnings and message at the end said it was successful but i'm now getting the following error instead of the login page:
ERROR: Exception
Function not implemented
i got this error on some of the sites on my server
the script company says it's something wrong with perl
Code:
Can't locate Crypt/CipherSaber.pm in @INC (@INC contains: Plugins Modules /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at Modules/Session.pm line 283.
I'm Running Plesk 12 latest version. I've been partially followed that instructions to add php5 to a chrooted environment with success : [URL] .....
Code:
bash-4.3$ php --version
PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
This is how i did it, as root user :
Code:
./chroot_update.sh --add /usr/lib/php5
mkdir /var/www/vhosts/chroot/usr/share
cp -a /usr/share/zoneinfo /var/www/vhosts/chroot/usr/share
php -i | grep extension_dir
# returns : /usr/lib/php5/20121212/
[Code] .....
I tried to install the above, but I cant seem to be able to find Crypt:Sleary, my client insist it shd be there. What shd I do?
View 2 Replies View RelatedI am trying to encrypt my session using the following directive
Session On
SessionCookieName session path=/
SessionCryptoPassPhrase sec
We are using form based authentication.
use of SessionCryptoPassPhrase crashes the server. If I dont use that directive it does not encrypt and works fine.
I see this error in application event log
Faulting application httpd.exe, version 2.4.2.0, faulting module libaprutil-1.dll, version 1.4.1.0, fault address 0x00002f14.
--> Populating transaction set with selected packages. Please wait.
---> Package cadaver.i386 0:0.22.5-1.el5.rf set to be updated
---> Package mtr.i386 2:0.72-1.el5.rf set to be updated
---> Package rsync.i386 0:3.0.2-1.el5.rf set to be updated
---> Package nmap.i386 2:4.20-1.el5.rf set to be updated
---> Package lftp.i386 0:3.7.1-1.el5.rf set to be updated
---> Package syslinux.i386 0:3.63-1.el5.rf set to be updated
---> Package dkms.noarch 0:2.0.19-2.el5.rf set to be updated
---> Package subversion.i386 0:1.4.6-0.1.el5.rf set to be updated
--> Running transaction check
--> Processing Dependency: perl(Crypt:asswdMD5) for package: syslinux
--> Finished Dependency Resolution
Error: Missing Dependency: perl(Crypt:asswdMD5) is needed by package syslinux
when I run yum update
It possible to disable the disable function for all user expect one account for running few application i need shell_exec, passthru, exec these so for other account it possible to disable it?
View 2 Replies View Relatedsuppose that i am a costumer. is it possible to see disabled function in php.ini?
(using any script)
How can figure out which functions are active on my server?
I have root access and the server is Linux.
I want to know wheather the function "fsockopen" is open or not.
Fatal error: Call to undefined function: curl_init() in /home/user/public_html/news/include/function.php on line 1526
how to fix this.??
thanks
NB: My server info
Centos
apache1
my php -v give :
Code:
php -v
PHP 4.4.7 (cli) (built: Jul 27 2007 18:31:31)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with the ionCube PHP Loader v3.1.31, Copyright (c) 2002-2007, by ionCube Ltd., and
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Suhosin v0.9.20, Copyright (c) 2002-2006, by Hardened-PHP Project
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
I got this warning message from a script I was working on to read XML feeds.
Warning: file_get_contents(url) [function.file-get-contents]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:Apache2.2htdocs est5.php on line 8
but when i run the url itself, it works fine.
i already set allow_url_fopen = On
I am starting to webhosting company in it I have included a package will be free and add supported and also I want to disable some functions like mail() ..........I mean I want to disable SMTP services anyone have idea how can I do that.
View 14 Replies View RelatedI got PHP working. But some of the Ajax functions it not working.
For example:
in wordpress admin, i can only use HTML mode to start a new post. I cant switch to VISUAL mode. And it was working before though.
What option do i need to compile PHP with to make it work?
Right now i have:
Quote:
'./configure' '--prefix=/opt/lsws/lsphp4' '--with-litespeed' '--with-mysql' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib'
the php mail function not work on my server!
when I run this function not show any error too.
for example I run this code:
<?php
echo "ok";
$to = 'myemail@mydomain.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: test@domainname.com' . "
" .
'Reply-To:test@test@domainname.com' . "
" .
'X-Mailer: PHP/' . phpversion();
if(mail($to, $subject, $message, $headers)){
echo "sent";
}else{
echo "notsent";
}
?>
I have just changed servers and uploaded a mail() script which was working on my previous config but does not work on the new server config. What is stopping the emails from being delivered, is there something new in WHM that I need to do?
Here are my WHM and cPanel details:
WHM 11.11.0 cPanel 11.15.0-R18264
REDHAT 4 i686 on standard - WHM X v3.1.0
I just re-installed PHP4, Apache, and MySQL and now the "mail" function in PHP will not work. Is there a way to correct this? Is there some configuration value in Apache or PHP I must change?
View 2 Replies View RelatedI have mixed feelings on the mail() function in php. I've seen it send out amazing numbers of emails and yet I keep reading that it is prone to problems. I'm wondering if someone can put an approximation on what you could/would send out in say 60 seconds. I know that there are tonnes of variables, so i'll try and remove a few:
- server hardware is typical of a cpanel/WHM shared hosting environment
- running apache/linux
- email is say 20kb HTML format
- mail is sent in a php script loop, one by one; alternatively, mail() could be called in clusters of x emails - like send 5 emails at once
- there are 400 recipients
Ive searched google and this forum for hours and have not found any solution to this below error on a site of mine.
I am using php 5.2
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/comosabe/public_html/footer.php on line 5
We setup a new server and we're trying to use virtual() function to work with a certain script that requires it.
We already tried several ways to make it work. But at this moment, we only could make it work on PHP 4 with DSO.
how to know if mail() function is enabled or disabled on my server? how to enable/disable it?
can it be done via server control panel or is there a shell command for it?
one more thing, where to get/edit the SMTP data for my server?
I used the mail function in php to send mails to my 25000 members in a loop..
After using it my server has gone very slow.. Load has increased a lot from 2 to around 20.. Major load is taken by sql and then httpd (both have increased)..
I had restarted mysql and httpd.. even reinstalled apache but no help..