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:
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
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
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
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
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
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
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
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
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
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
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
|