Socket Restriction?WINDOWS VPS
Jul 24, 2007In VPS WINDOWS machine does any of the providers offer outgoing socket connection for my apps.?
or is it restricted?
In VPS WINDOWS machine does any of the providers offer outgoing socket connection for my apps.?
or is it restricted?
I'm trying to use server side includes in a PHP website but am getting the error open_basedir restriction in effect.
I've tried going in to the PHP Settings for the website and have selected the predefined option
{DOCROOT}{/}{:}{TMP}{/}
Which as I understand it should allow access to all files within my httpdocs folder but I still get the error:
PHP Warning: include(): open_basedir restriction in effect. File(/sparklyphp/cms/inc/checkAdminLogin.php) is not within the allowed path(s): (F:PLESKWWWviwebsitedesign.comhttpdocs;C:WindowsTemp) in F:PLESKWWWwebsitedesign.comhttpdocssparklyphpcmsindex.php on line 1
The thing is I know 100% that the file it's having a problem with is in a subfolder of the
F:PLESKWWWwebsitedesign.comhttpdocs folder (the full F:PLESKWWWwebsitedesign.comhttpdocssparklyphpcmsinccheckAdminLogin.php).
When trying to migrate a server to Virtuozzo i get the following error : getpeername error 88 (Socket operation on non-socket)
Anyone got any idea what this might be?
"Can't write to data socket. Socket error = #10054. fix?"
search around a few websites couldn't find a fix.. just people chatting about there error
If you have a socket F m/b, does a socket 940 heatsink works nicely on a socket F m/b? I can fit the original socket 940 heatsink on a socket F m/b but I am not sure whether there are any cooling related problems?
According to the thermal design guide, it says:
Quote:
The heat sink, fan, mounting spring clip, and thermal interface material used for the AMD PIB thermal solution for socket F (1207) processors are the same as the heat sink, fan, mounting spring clip, and thermal interface material used for systems based on the socket 940 processor.
The plastic retention frame, made of 20% glass-filled Lexan, is a two-piece implementation rather than the single-piece frame used for socket 940. This change accommodates the larger foot-print of socket F (1207) processors.
[url]
So are they interchangeable?
I do have socket F heatsinks just to save the hassle of testing and breaking things.
The reason I am asking is that it is tough to find socket F heatsinks here, and there are some socket 940 HSF floating around so I might as well use socket 940 HSF when somehow the ones that I have are not working or I run out of socket F coolers.
how to a shell with a restriction as not run gcc, screen, limit process to use or not use, run programs like bg process etc etc.
View 1 Replies View RelatedI'm trying to restrict what file types can be upload within a certain folder can this be done using htaccess.
View 4 Replies View RelatedAbout the 29th of last month my crons quit working properly, they are still ran but they did nothing.. I finally found out that its giving me an open_basedir error...
I am trying to run the crons from /home/<user>/crons/...
The first few lines of the PHP Code includes some required files that are used by the rest of the site...
PHP Code:
$root_path = "/home/<user>/public_html/";
include($root_path . "includes/common.php");
However, when the cron is ran I get the following email...
Quote:
X-Powered-By: PHP/5.2.1
Content-type: text/html
Warning: include() [function.include]: open_basedir restriction in effect. File(/home/<user>/public_html/includes/common.php) is not within the allowed path(s): (0) in /home/<user>/public_html/live.php on line 7
Warning: include(/home/<user>/public_html/includes/common.php) [function.include]: failed to open stream: Operation not permitted in /home/<user>/public_html/live.php on line 7
Warning: include() [function.include]: Failed opening '/home/<user>/public_html/includes/common.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/<user>/public_html/live.php on line 7
test
Notice: Undefined variable: db in /home/<user>/public_html/live.php on line 11
Fatal error: Call to a member function query() on a non-object in /home/<user>/public_html/live.php on line 11
WHM 11.11.0 cPanel 11.15.0-R17665
CENTOS Enterprise 4.5 i686 on standard - WHM X v3.1.0
Apache version1.3.39 (Unix)
PHP version5.2.1
MySQL version4.1.22-standard
(Paths have the correct username, I replaced the usernames with <user>...)
I am running asp.net on my 1and1 "shared" hosting account. I just was told I could not add a simple .mp3 player control because it requires "higher" security. I only have "medium" security. They could only suggest a dedicated server.
Is this going to be normal amongst all asp.net hosting companies? Are most asp controls at the higher security level?
Is there a hosting company that gives this to you as a shared customer?
I am trying to use chdir() in one of my scripts. However, I am getting an open_basedir restriction error. I have checked the php.ini and the value is not set (which as I understand should disable open_basedir).
View 4 Replies View RelatedI have a custom made server side bulk email application. My current hosting service does allow unlimited emails (most restrict to around 3-500 per hour) but im having other problems with them.
As such I need a new host for this tool. I send around 45,000 emails as newsletters to my site members about 10 times a year.
I know that a dedicated server is a obvious solution but I dont want the management headaches and higher costs that go with it.
Has anyone got a shared hosting solution that doesn't restrict email numbers or atleast has much higher limits?
I had a problem that ip restrictions inside location didn't work. Config :
Code:
<Location /jkstatus>
JkMount status
Require ip 127.0.0.1
Require ip my_remote_netowrk_1/29
Require ip my_remote_netowrk_2/29
[Code] .....
In that case all IPs were allowed - just propted for login and password.
When i removed login/password part from location, IP restriction has start to work.
Code:
<Location /jkstatus>
JkMount status
Require ip 127.0.0.1
Require ip my_remote_netowrk_1/29
Require ip my_remote_netowrk_2/29
[Code] ....
What is wrong ? I would like to restrict access to this location for some IPs only and secure this area by password as well - even for allowed IPs.
(Plesk version 11.09)
Trying to restrict access to plesk control panel to one IP address (fake 66.67.68.69).
When I add the network 66.67.68.69/255.255.255.254 I recieve the following notification:
Error: The access restriction policy and the list of networks are currently configured the way you will not be able to log in with administrator's rights from your IP address '66.67.68.69'.
Now I would like this to be the ONLY ip address from wich i can log in.
One of my users...let's call him "fictional" is getting the following error message:
---------
Warning: Unknown(): open_basedir restriction in effect.
File(/home/fictional/public_html/blablaja/index.php) is not within the
allowed
path(s): (/home/hurz/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown
on line 0
---------
The strange thing is that the error message refers to another user on my system...named "hurz". Why does it refer to this other username? I looked at the virtual host in httpd.conf for user "fictional" and everything seems alright there:
<IfModule concurrent_php.c>
php4_admin_value open_basedir "/home/fictional:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
php5_admin_value open_basedir "/home/fictional:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule !concurrent_php.c>
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/fictional:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/li$
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/fictional:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
I am working on doing some various upgrades to my workstation computer. I got it back in Nov and have been adding to it every since. The motherboard was bad when I first got it so I had to buy a new one. I already had an athlon 5600 so I figured I would get the mobo for that. Upon advice from various people I got the abit kn9 sli, for socket am2 940 processors and nvidia nforce 570 sli mcp
I am wanting to upgrade the processor now but I havent really found much info on what would be the highest level processor I could drop in. I know the phenoms dont work and some have told me that the athlon 6400 would be the biggest i could drop in but that isnt much more then I have now so would be no point.
So basically I was posting to see if anyone knew the best processor I could drop in this or the best socket am2 940 processor there is
This is on a Debian VPS with Apache installed. I figured this forum would be more appropriate because I think this is an OS level issue. I'm running a basic php client / php server. The php script is requested by the web browser and connects to the php server on the backend. However, if I connect more than a few times by clicking refresh I get this:
Warning: fsockopen() [function.fsockopen]: unable to connect to 127.0.0.1:1240 (Unknown error) in /home/www/client_connect.php on line 3
error opening fp
It should also be noted that I've gotten this same error when I try to do over 20 simultaneous connections with stream_sock_client() running from the command-line (non-root). Or when I try to connect to my backend from my frontend.
Warning: stream_socket_client(): unable to connect to xx.xxx.xx.xxx:1838 (Unknown error) in /home/adam/server/test.php on line 488
failed to connect to xx.xxx.xx.xxx:1838 errno:0 errstr:
~/www$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
max nice (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) unlimited
max rt priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
What can I do to trouble shoot this?
I've a strange problem with my flashchat realized on php and xmlsocket.
I premise that chat works fine with 100 concurrent user.
But When the number rises, and I've been to 350 users at the same time, something happens to the server which makes the whole thing freeze.
After I eliminated just about everything that can go wrong with the php side of things, we came to the conclusion that this must be something related to the apache, since if before the php socket server went bad on account of an error, we simply needed to relaunch the php again, and everything would start up and work just fine untill the next crash.
We have a unix server, using Apache 2, php 4.something or 5 (but again, problem is not there), did anyone knows what this could be? are we passing some limit of sockets connections Apache has that we don't know about? a limit of data transfer we are breaking? my script, when running and holding on to 300 users, use about 2-3 Mbit of bandwidth, nothing to get excited about.
Is there anywhere where I can run a php socket server that is not a dedicated server.
I doubt that there is, but you never know maybe out there somewhere there is someone that allows this.
I am currently developing a PHP socket server for a flash application that needs constant client -> server communication. I understand that this is not typical for hosting solutions so does anyone know of a host that would allow me to run a custom application running on a non-standard port?
View 5 Replies View RelatedIn VPS WINDOWS machine does any of the providers offer outgoing socket connection for my apps.?
or is it restricted?
I saw following error in some of my site in my server.
Coppermine critical error:
Unable to connect to database !
MySQL said: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
or following error :
Invalid mysql server connection
Please help me how can I resolve this error !
/etc/my.cnf :
[mysqld]
datadir=/var/lib/mysql
skip-locking
skip-innodb
skip-networking
safe-show-database
query_cache_limit=1M
query_cache_size=16M ## 32MB for every 1GB of RAM
query_cache_type=1
max_user_connections=200
max_connections=500
interactive_timeout=10
wait_timeout=20
connect_timeout=20
thread_cache_size=128
key_buffer=64M ## 128MB for every 1GB of RAM
join_buffer=1M
max_connect_errors=20
max_allowed_packet=16M
table_cache=1024
record_buffer=1M
sort_buffer_size=1M ## 1MB for every 1GB of RAM
read_buffer_size=1M ## 1MB for every 1GB of RAM
read_rnd_buffer_size=1M ## 1MB for every 1GB of RAM
thread_concurrency=8 ## Number of CPUs x 2
myisam_sort_buffer_size=64M
server-id=1
collation-server=latin1_general_ci
[mysql.server]
user=mysql
basedir=/var/lib
[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
open_files_limit=8192
[mysqldump]
quick
max_allowed_packet=16M
[mysql]
no-auto-rehash
#safe-updates
[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M
[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M
[mysqlhotcopy]
interactive-timeout
My server details :
1 GB RAM
P4 3.00 HT
we will need to do outbound socket programming in PHP. Will the code work under shared hosting? Will hosting providers allow it? or maybe some allow?
View 8 Replies View RelatedI have one mail server. and our one client sending and receiving mails through php coding so i have setup all the configurations in config.php file and sending mail ok but pop retrieves is not working and i m getting error------------>
Cannot create POP3 connection to pop.mxo2.com: Unable
to create selectable TCP socket (3494 >= 1024)
Long shot as I couldn't find anything via google but are there any socket 775 mobos that supports 16GB.
View 2 Replies View RelatedI have a somewhat unusual question for a hosting forum, but it seems to fit here reasonably well. I figure that anyone who does colo would know about buying and selling servers.
Right now, I have a very high-end system, basically a Sun V40z:
[url]
It is fully configured with processors, memory, but only has a single hard drive currently. The system comes with a built in management processor and OS; from the console you can boot/restart the server, check which DIMMs or processors are working (or failed), etc. It has been barely used, and is in mint condition.
I'm thinking about selling it, because I'd prefer a smaller, more compact server.
Where do you guys go to sell servers? Based on listings here, the server seems to sell in the range of 20K, with a warranty of sorts (30 days):
[url]
Obviously, I can provide no warranty, but I have pretty much the same configuration.
It's meant to be a pretty high-end database server, and I just don't need this many horsepower.
Im expericiencing some dificulties to load more than 500 ips and create the socket for personalized dns.
i got "could not listen on UDP socket: not enough free resources"
I suppose theres a limit on bind9, i was looking on docc ...
i developed a socket application to recive data from port.this application recvng data from a unit through port no 4444(Vehicle Tracking unit). this application recvng data and evrything is ok....but some times no anydata is coming in to this application.for eg:if application recves data 2 days after that 2 days it will recve one or two data only....again after 2 days it will recve all data correcly....that means lot of missing data we have....my question is whether this missing data is bse of my socket application or unit?
The manufacturing company telling us unit is sending the data continuiously..but some times this socket application is not recvng data in 2 days interval....i dont know how to solve this issue....is any other setting is required in server to recve data continuously....
i think socket application 100% is ok...unit maufactures telling unit also sending data continuously...then where the problem is???can anybdy share ur idea about this?
Is there a Socket 1156 1U CPU fan available yet?
Has anyone used the new Core i5/i7 chips and the Intel P55 Chipset with CentOS 5.x?
i hosted one server socket application in my dedicated server which is recving the data from different units(vehicle tracking system) through port no 4444.in dedicated machine i am keeping one active session always...that means my socket application exe is opened always in an active session ie sectionA.This session is not logged off insted i used to close the rdp for keeping this session active.Based on settings if userA accessing SessionA then userB cannot able to reach the active sessionA at the same time instead new sessionB will open for userB.
now my question is
if userB also opened socket application in SessionB with same portno ,then which soket application will recive data from the units...whther the applictaion from sessionA or from SessionB?
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
/home/thesymbi/public_html/includes/class_core.php on line 274
I get this around 50 times a day!
I am fed up!