Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Web Hosting


Advertisements:




SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







Cpanel Opening Custom Ports For Outgoing Access For PHP Fsockopen And Curl


How do you open custom ports for fetching content from a url via a non-standard port, ex [url]:32626 ... (url has 32626 opoen)


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
How To Accept Outgoing Curl Connections
I'm testing csf with cpanel and all is good at the beginning but i noticed that outgoing curl connections are blocked and i can't add any port to iptables due to curl uses a different one each time.

how to accept outgoing curl connections?

View Replies!   View Related
Warning: Fsockopen() [function.fsockopen]: Unable To Connect To Localhost
Cannot send mail via php mail send

Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:25 in /home/user/public_html/smtpmail/class.smtp.php on line 105

How do I correct this? I'm using Cpanel with php 4.4.8, apache 2.2, mod suphp

View Replies!   View Related
Horde Error: Warning: Failed Opening '/usr/local/cpanel/base/horde/config/horde.php'
Horde error: Warning: Failed opening '/usr/local/cpanel/base/horde/config/horde.php' for inclusion

I am getting the above given error message.

View Replies!   View Related
Opening Up Local Access
I have a script running on my server that has access via port 1031, but I would like to block access to it from the public, and instead allow access only through a php proxy script on my server which will connect to port 1031 via 127.0.0.1 (i.e. 127.0.0.1:1031)

So some may be thinking why? Currently users gain access by heading to mydomain.com:1031 . However I would now like to include adverts along side the script (but can't physically make adjustments to the script as the company that made the script has vanished of earth)
So the only way I can think of doing this, is by having the adverts in an Frame next to the proxy script.

So does opening up access via 127.0.0.1 just for this case, give me security problems?

View Replies!   View Related
Can't Use Curl To Access My Site
<?
function usecurl1($url)
{
$ch = curl_init();
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_URL, $url );
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/1.6");
$output['html'] = curl_exec ( $ch );
$output['opt'] = curl_getinfo ($ch);
curl_close($ch);

return $output;
}
function usecurl($url)
{
$output=usecurl1($url);
return $output['html'];
}

$output=usecurl1("http://en.wikipedia.org/wiki/Special:Random"); //doesn't work
print_r ($output);

echo '<br>';

$output=usecurl1("http://yahoo.com"); //works
print_r ($output);

?>

View Replies!   View Related
How To Access Password Protected File Via Curl
I've got a file I want to access via cURL that is within a password protected directory.

I've tried sending:

Code:
$headers = array(
"HTTP_AUTH_LOGIN: admin3e",
"HTTP_AUTH_PASSWD: opensesame",
"Content-Type: text/html"
);

curl_setopt($curl, CUROPT_HTTPHEADER, &$headers);
(insecure)

and:

Code:
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($curl, CURLOPT_USERPWD, '[user]:[pass]');
but I can't figure out how to get past the login:

Authorization Required

This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
Apache/2.0.52 (CentOS) Server at ****** Port 80

View Replies!   View Related
Server Security - PHP CURL
after following the perfect server setup - centos5.2 guide I have setup a home server on my dsl connection and installed openfire with relative ease. I have a paid hosting server which runs my website but I want to have it access the userservice plugin of openfire to add/remove users (which is installed on my new home webserver).

After trying fopen and CURL to post GET data to my home server without any luck I did some reading and came accross the snoopy php class. The snoopy class now allows me to get the default apache test page on my home server but when i try to point snoopy to my openfire admin on port 9090 it throws up a timeout error (but i think this may be an error in the snoopy class?).

CURL and fopen allowed me to get data from google and some other sites but not from my home server.

View Replies!   View Related
Allow Custom Php.ini
I would like to know how to allow customers to use their own php.ini file. I have had hosts in the past that allowed you to use a custom php.ini file so long as you put it in every directory that you would need to use it.

I was just trying to figure out how this is done as I am new to all of this and trying to learn.

View Replies!   View Related
How To Custom Php.ini
I'm using CentOS 5, Cpanel/WHM with php as cgi, when i try to put a php.ini file to to custom php for one account and it overwrite main setting on our server, someone use this bug to run c99 and try local attack other account, i've try fix this problem by edit /opt/suphp/etc/suphp.conf and set phprc_paths to /usr/local/lib/. But when i do this, php.ini in my custom account doesnt work any more... How can i custom php for one account and it not effect to main setting to prevent local attack?

View Replies!   View Related
Custom Php.ini
I have a reseller account on a server, and I have a client who needs to used a custom php.ini file to set the session.save_path variable. He has created this file and placed in the public_html folder, but this path still comes up as 'No Value' and the Configuration File Path still reads '/usr/local/Zend/etc/php.ini '.

What do I need to do to get this site to read from the correct php.ini file? I tried setting this in the .htaccess file, to no avail.

View Replies!   View Related
Php Custom Error Log
I have a customer who wants to log the errors of his site in his domain's folder. How do i do that?

I have enabled error logging in php.ini they are stored in /var/logs/php_errors, but i don't wanna change that.

how do i do to put only his php errors on a file of his folder?

i use cpanel on a centos box.

View Replies!   View Related
Prevent User Use Custom Php.ini
I have added some functions in php.ini for security.

But when user use their php.ini file located in their account, all functions enabled again.

How can i prevent user custom php.ini?

View Replies!   View Related
Change Ports Services - Cpanel
I want to make more secure my server and I want to know How to change the services ?

2086 WHM

2082 Cpanel

21 FTP

2095 Web mail

How can I change the ports for them ?

View Replies!   View Related
Cpanel :: Copy Of All Outgoing Mails Using Account?
One of my client want copy of all outgoing mails using his account. He want to monitor whats his staff sending through mail.

I have CPanel and have root access.

View Replies!   View Related
Custom Cpanel Backup
I have a server that has Cpanel doing nightly backups using the built in auto backup tool in WHM. However, I have one account on the server with a 7 GB database. Everytime this database was dumped to the backup it would lock the database from users accessing it for about 30 minutes.

So instead, I'm now using a slave/master replication setup to do the database backup incrementally and have excluded this account from being backed up every night.

However, I would still like to be able to back up the account itself. Is there a way to setup a unique cron task to backup just this one account and skip the mysql database export?

Does cpbackup do anything more than just zipping up the account's folder in the home directory? Or are there other files it needs to keep in order to do a restore?

View Replies!   View Related
Ports To Open For Web Server (PLESK, CPanel, Etc.)
Our new data center provided us with a Cisco ASA5510 firewall. We're setting up all new servers and will begin migrating all of our domains from our current co-lo to the new place.

At the old co-lo, they provided us a very basic BSD based router, and our servers all had external public facing IPs on them. Firewalling was handled at the server (Windows Firewall or Linux IPtables).

The new place is NAT'ing us, so our servers all have a 192.168.10.x address inside, and they map the external address for us through to the inside.

By default, they are locking everything down. I had to ask them to open ssh so I could remote into my CentOS box last night.

I'm not a network guru-- what ports are going to NEED to be opened so I can give them a list? This is a standard PLESK hosting server so http (80), https, ssh, ftp, pop3, smtp, what else? Anyone have a list?

View Replies!   View Related
How To Limit/block Outgoing Spam - CPanel Servers + EXIM
My server is sending all emails via exim smarthost to other specialised exim server (both cPanel). How may I limit customers from sending out SPAM ? Mean to scan outgoing emails and delete/store in some folder which ones identified as SPAM. Preferrably the scan part to be on exim email proxy cause it is much idle.

View Replies!   View Related
Myip:0 -- Mixing * Ports And Non-* Ports With A NameVirtualHost Address
i have one problem in cpanel take one error for restart httpd

xx.xxx.xxx.xx:0 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results

View Replies!   View Related
Custom Routers/Transports W/ CPanel
I have a lot of dedicated IP accounts that I want Exim to send mail from (in other words, not to use the shared/primary IP of the server).

Has anyone successfully configured cPanel/Exim to do such a thing, such as this:

[url]

View Replies!   View Related
Custom Icon Groups In Cpanel
how you create a custom icons/plugins group in cpanel. I know you can make new icons like one for Domain Registration or whatever, by using the cpanel plugin creation tool at cpanel's website. But, I was wanting to create a whole new 'category' of icons, like how "Domains", "mail", etc.. has it's own categories.

View Replies!   View Related
How To Custom Cpanel New Account Email
I have a limited access to WHM because I'm with a resellet account, but I want to change the new account email that sends cpanel. Server has installer RVSkin if this helps...

I've looking in WHM but I didn't see anything...

Can you tell me where is this option? then I check out if I have it...

View Replies!   View Related
Not Working Links /cpanel /whm Only Ports 2082 2086
On my server not works links www.server.com/cpanel and www.server.com/whm only ports www.server.com:2082 www.server.com:2086 how repair this?

View Replies!   View Related
Custom SELinux Policies For Their Cpanel Server
Has anyone wrote custom SELinux policies for their cpanel server?

View Replies!   View Related
Creating Custom NameServers With My Domain On WHM/cPanel
As the title says.. can anyone guide me on how I could do this?

View Replies!   View Related
Server Wide Custom Error Pages W/ Whm/cpanel
i have a server with whm/cpanel and would love to have custom error pages that work server wide not just for a specific domain. I have tried adding the "ErrorDocument 404 errors/404.htm" to the httpd.conf file but it doesn't work.

I have no trouble getting custom errors to work for a specific domain but can't seem to get it to work server wide.

Has anyone else tried to tackle this and actually had success?

View Replies!   View Related
How To Enable Fsockopen
i use a script that needs fsockopen and curl to work. also i installed curl, but couldn't enable fsockopen. how i can do that? i'm using centos, php5, cpanel etc etc..

i looked php.ini, disable_functions is empty..

View Replies!   View Related
Fsockopen Issue On Server
I need here a really help because there is in my opinion simple problem that can be solved.

Here is example of simple script:

Code:
<?php
if($_GET[u]){
echo "opening socket to {$_GET[u]} port 25<br/>";
flush();
$r=fsockopen($_GET[u],25,$errno,$errstr,30);
echo "socket opened to {$_GET[u]} error $errno str $errstr";
}
else if($_GET[d]){
echo "opening socket to {$_GET[d]} port 80<br/>";
$r=fsockopen($_GET[d],80,$errno,$errstr,30);
echo "socket opened to {$_GET[d]} error $errno str $errstr";

}

?>
One site hosted by totalchoicehosting display everything correct when i test it: ...

View Replies!   View Related
PHP Access To A Folder
How do I give PHP access to a folder on my server?

View Replies!   View Related
Fsockopen Failed At Port 25 - Connection Refused
We have a script that run for more day without problem Script connect to port 25

Now we get this:

Warning: fsockopen() [function.fsockopen]: unable to connect to my.domain.com:25 in /home/mydom/public_html/backend/go.php on line 47
Connection refused (111)

View Replies!   View Related
Warning: Fsockopen(): Unable To Connect To 127.0.0.1:25
Yesterday I had to install a renewed SSL Certificate. Managed to get it installed, in Plesk under domains/www_mydomain_com, but I also deleted the default SSL from the server/certificates area... So then I was getting an dns 500 error when browsingour site and I could not start httpd from within plesk. Went in through SSH and tried to start it from there and got and error stating it could not find the SSLCA cert it was looking for. So I edited my httpd.include file to point to my new certificate. Now http works, but my email has stopped? What gives how could the two be related!

I can log into my webmail, compose message and when I send I get:

Warning: fsockopen(): php_hostconnect: connect failed in /usr/share/psa-horde/pear/Net/Socket.php on line 108

Warning: fsockopen(): unable to connect to 127.0.0.1:25 in /usr/share/psa-horde/pear/Net/Socket.php on line 108

I have started and stopped psa, qmail. Rebooted the server. I tried the telnet localhost 25 but I get connection refused. Anytime I check qmail status it says stopped. Don't know if that is right or not. I know I am not recieving emails asI have sent many today through other accounts and they all come back undeliverable.

We do run an online store as well so I am kinda nervous when our email goes down! Time to hire a server admin?

I am running Plesk 7.5.4 on Red Hat 9 on a Virtual Dedicated Server with GoDaddy.

Here is my "Component Info" from Plesk:
bind 9.2.1-16
coldfusion-support 7.3-2.96.118
courier-imap 3.0.8-rh9.build75050824.12
frontpage 5.0.2.2634
httpd 2.0.40-21.17.legacy.1.swsoft
mod_perl 1.99_07-5
mod_python 3.0.1-4
mysql 3.23.58-1.9
perl-Apache-ASP 2.57-rh9.build75050824.12
php 4.3.2-psa.rh9.1
psa 7.5.4-rh9.build75050824.12
psa-api-rpc 7.5.4-rh9.build75050930.11
psa-bu Component was not installed
psa-horde 3.0.5-rh9.build75050824.12
psa-imp 4.0.3-rh9.build75050824.12
psa-logrotate 3.7-rh9.build75050824.12
psa-manual-custom-skin-guide 7.5.4-rh9.build75050824.12
psa-proftpd 1.2.10-rh9.build75050824.12
psa-qmail 1.03-rh9.build75050824.12
psa-qmail-rblsmtpd 0.70-rh9.build75050824.12
samba 2.2.7a-8.9.0.1.swsoft
SSHTerm 0.2.2-rh9.build75050824.12
stunnel 4.04-3
webalizer 2.01_10-11

View Replies!   View Related
PHP Has Encountered An Access Violation At X
What does followings type error mean?

Code:
PHP has encountered an Access Violation at 7C82FC3E
and what does "7C82FC3E" mean?

View Replies!   View Related
Mounted RAID Storage - No Access From Apache/php
I have a problem with my new server's setup. It's using a big RAID storage mounted to the main system. When it comes to shell everything is fine, I have access to the disk and files. Problems rise when I try to access the storage content from my php scripts (running on apache) - "Permission Denied" ...

Anyone knows where might be the problem?

I suppose it's because of using RAID but I'm sure it's doable.. somehow..

When I tried to use CLI mode it looks fine - PHP script can access RAID'ed folders when running like :
php /var/www/html/filetest.php

View Replies!   View Related
MS ACCESS In Cpanel?
How can I use MS-ACCESS in Cpanel?

View Replies!   View Related
Plesk For IIS7 Not Allowsing Access To Nuke Evolution Admin.php
having an odd issue with a nuke evolution install

We have a windows 2008 server x64 running plesk 8.6. We created a user with complete access and under that user we created a nuke evolution website. Install appears flawless. We can even continue with admin configuration within nuke with admin.php.

However once you log out you are unable to log back in to admin.php, you get a 404 Not found error. I've checked out the permissions through plesk but they appear to be ok,

View Replies!   View Related
Recommend An ISP For Webspace? (need Php + Mysql + Root SSH Access)
cheap-ish place to host a PROTOTYPE website. We're going to need php + mysql, but we're going to need to have more control such as root SSH access.

Here is the list of what we need to start with:

SSH access
PHP 5
Java
MYSQL 4 or 5
Apache 2
SendMail

Any ISP recommendations?

For now this is just a prototype, and it will NOT get hammered with
traffic. But we do need an outfit that is efficient and reliable.

Ship
Shiperton Henethe

We are based in the UK.

View Replies!   View Related
Cpanel :: No POP3 / Webmail Access
One cPanel account out of the entire server is the only one affected. This one user, can not login to POP3 or Webmail for any of his email accounts.

I have checked the permissions and file owner/group on the files and folders in:
/home/USERNAME/mail/*
and
/home/USERNAME/etc/*

I have also tried restarting the POP3 service and cPanel. I have verified his passwd file has correct permissions and is in the correct format. I have tried resetting his email passwords. I have even tried too create a new email account.

Still.. No POP3 / Webmail access.

His email accounts are listed in cPanel.

I have installed ConfigServer Mail Manage (WHM Addon), and his domain will NOT show his email accounts (of course all other domains on the server are fine).

I know this is probably a configuration file or a file permission problem somewhere... I just can't find where!

Any advice?

View Replies!   View Related
How To Protect Access To Whm/cpanel
is there a way to protect whm/cpanel access?

At the moment anyone can type
domain.com/cpanel or domain.com/whm or server/cpanel or server/whm.

I would like to limit access to these pages by adding additional password (like folder password) or restricting IP.

View Replies!   View Related
How To Access Ftp From A Browser (for Cpanel)
I know that if you want to access your ftp account from a browser you use this link format:

ftp://username : password@yourdomain.com

But what happens when your usersame is in the form of: username@yourdomain.com

How can I access my ftp from a browser then?

View Replies!   View Related
Opening A Port
I have an outgoing telnet connection to a server

The server accepts connections on several ports

I used to connect on port 5000, but now forced to use port 5025

How do i open port 5000?

View Replies!   View Related
Opening A Port
I'm trying to open a post on my Unix box to run an application but am having the worst time. iptables -I INPUT -p tcp -m tcp --dport PORTNUMBER -j ACCEPT

Does not appear to be working.

View Replies!   View Related
CPanel Access Logs Deleted/refreshed
I am in need to troubleshoot some bandwidth theft and the logs are 4 hours old, where can I find the archives fo rthe month? This is a cpanel server.

View Replies!   View Related
Access DirectAdmin Site Without Domain - Possible With CPanel
I'm new to using directadmin and I've got a problem; I've not yet switched the DNS over to the directadmin server 'cause I want to make sure the sites work first, however I can't find how to view the sites. With cpanel you can go to http://192.168.1.1/~username (where 192.168.1.1 = IP of server and username is username of account).
is this possible with directadmin? I can't find anything about it, anywhere.

View Replies!   View Related
Cpanel Not Allowing Access To User Accounts
On a new server we have running CPanel, we have manually created a user account and when i try and log into mydomain.com/whm with that username/password it doesn't let me.

Now my second thought is that I should be logging into mydomain.com/cpanel rather than mydomain.com/whm but I get a 404 for /cpanel.

If i'm logged in as root, i cannot transfer into the user account cpanel either...

View Replies!   View Related
Phpmyadmin And Webmail Access Problem From Cpanel
we have a important problem with our cPanel for all of our cuestomers. The access to these services are broken. We cannot access to 3thdparty software like these: Webmail and phpmyadmin.

When we go access to our webmail service, example (Horde) take this error:

Quote:

Warning: include_once(Log.php): failed to open stream: No such file or directory in /usr/local/cpanel/base/horde/lib/Horde.php on line 3 Warning: include_once(): Failed opening 'Log.php' for inclusion (include_path='/usr/local/cpanel/base/horde/lib:.:/usr/lib/php') in /usr/local/cpanel/base/horde/lib/Horde.php on line 3

When we go access to our phpmyadmin servce take this error:

Quote:

Warning: require_once(./libraries/common.lib.php): failed to open stream: No such file or directory in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 36 Fatal error: require_once(): Failed opening required './libraries/common.lib.php' (include_path='.:/usr/lib/php') in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 36

These problem comming after the last cPanel upgrade.

View Replies!   View Related
Opening Site From India
I have a site named www.webeye4u.com

Can anyone from India open this website?

I am not able to open it in India but can open from a US Proxy.

I am not sure whether if its ISP problem or a problem at the US datacentre.

View Replies!   View Related
Opening A Domain In My Subdomain
How can I open a domain that is not in my server in one of my subdomaines?

(when we go to my subdomain open the doreign domain and url not redirect)

I have Cpanel + WHM

View Replies!   View Related
CPanel Allowing / Disallows SSL Access On Subdomain
I am going to buy a godaddy wildcard subdomain SSL certificate. Basically I want the ability to enable and disable ssl on certain subdomains from cpanel. Basically I am going to charge customers extra for an SSL enabled subdomain.

Can I create an .htaccess file in the home folder of the subdomain which forces SSL or unforces/disables SSL? Maybe also do mod_rewrite so for example if they paid extra for ssl support:

[url] WOULD AUTO-REDIRECT TO [url]
Also if they didnt pay for SSL

[url] TO [url]


View Replies!   View Related
Disabling 'Allow Anonymous Access' For FTP In New CPanel Accounts
Everytime a new account is created in WHM/cPanel, the "Allow Annonymous Access for FTP" option is enabled by default. Since this is something I want turned off for all new accounts... does anyone know a way of switching this off globally in cPanel/WHM so that every new account will have this turned off by default?

View Replies!   View Related
Granting An Extra PhpMyAdmin Login Without CPanel Access?
How can I give somebody phpMyAdmin access to a specific database, without giving them the cPanel login for that account?

View Replies!   View Related
Block External Access To Cpanel Through Port 2082?
if it is possible to block external access to Cpanel through port 2082?

View Replies!   View Related
CO.NL Sunrise Opening At EuroDNS – Get 10 Years
EuroDNS announces the opening of the extended CO.NL Sunrise phase, starting tomorrow at 10:00 am GMT and ending on the 10th March, a great opportunity for all trademark holders to secure their CO.NL domain name.

View Replies!   View Related
Sample Code Of Opening A URL
If I want to open a url say, [url]I can use file_get_content

$content=file_get_content[url]

How to do the equivalent using curl, socket, socket, and wget?

View Replies!   View Related
Mass Backup Accounts To Remote FTP With ROOT Access And CPanel/WH
I have a VPS and about 140 accounts on it. I've also got cPanel and WHM installed. I'm moving to a new host, but the thought of having to move all these accounts manually really makes me lazy I have to go into each account and go to backup -> backup to remote FTP, and yeah..

Is there any way I can mass backup all of my accounts, or all accounts I select, to a specified FTP server?

I only have root access on my VPS, but not on the server I'm moving all the backups to..

View Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved