File Restriction

Jan 19, 2007

I'm trying to restrict what file types can be upload within a certain folder can this be done using htaccess.

View 4 Replies


ADVERTISEMENT

How To A Shell With A Restriction As Not Run Gcc

Dec 17, 2008

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 Related

Open_basedir Restriction

Oct 14, 2007

About 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>...)

View 5 Replies View Related

ASP.NET Restriction On 1and1, Is This Normal?

Apr 5, 2009

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?

View 14 Replies View Related

Socket Restriction?WINDOWS VPS

Jul 24, 2007

In VPS WINDOWS machine does any of the providers offer outgoing socket connection for my apps.?

or is it restricted?

View 6 Replies View Related

Chdir Not Working Due To Open_basedir Restriction

Feb 21, 2008

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 Related

Hosting Without Number Of Email Restriction

Nov 20, 2007

I 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?

View 9 Replies View Related

Apache :: IP Restriction For Location Doesn't Work

Oct 11, 2012

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.

View 3 Replies View Related

Plesk 11.x / Linux :: IP Access Restriction Management?

Apr 24, 2014

(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.

View 5 Replies View Related

Open Basedir Restriction Error Refers To Another Username

Dec 16, 2007

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>

View 2 Replies View Related

Plesk 11.x / Windows :: PHP Open Basedir Restriction - Adding Paths Not Working

Aug 16, 2013

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).

View 2 Replies View Related

Plesk 12.x / Linux :: Deny User Upload File Via File Manager Or Hidden File Tab?

Feb 10, 2015

I'm build Plesk Panel for Linux and Presence Builder, I don't want my user can upload their website to hosting via File Manager. How can I do it...

View 2 Replies View Related

"open_basedir Restriction In Effect"

Jul 13, 2008

I've installed CRE Loaded 6.2 on one of my client accounts and am receiving the following error when trying to edit the language files:

Warning: tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (/hsphere/local/home/hrtire:/tmp:/var/tmp:/usr/local/lib/php) in /hsphere/local/home/hrtire/hrtire.net/store/admin/edit_textdata.php on line 151

I've asked for support from my host and they told me that it can be fixed using .htaccess. They said to use:

php_value open_basedir /hsphere/local/home/hrtire/hrtire.net/store/admin/

That doesn't fix the problem and I'm not getting any more responses from them. I've tried variations (e.g. .../store/, .../store/tmp/) and nothing works.

View 6 Replies View Related

1.com/file.php, 2.com/file.php Where File.php Is Hosted On Main.com/file.php

May 26, 2008

Say I have 2 websites and they all use file.php which is located on mainserver.com/file.php.

I want to use the file like this:
website1.com/file.php
website2.com/file.php

View 2 Replies View Related

Ffmpeg :: Cannot Open Shared Object File: No Such File Or Directory In Unknown On Line 0

Mar 6, 2008

Rapidly growing error logs showing the same message

$ug-non-zts-20020429/ffmpeg.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429//usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0

root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429
./ ../ eaccelerator.so*
root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429
./ ../ eaccelerator.so*

Using cpanel 11 / centos 4

View 1 Replies View Related

How Can I Show Hidden File In Cpanel File Management Tool

Jun 16, 2008

i have a server with centos,

i need to edit the hidden file .htaccess from the file management tool of cpanel,

but the hidden files not shown,

ow can i modify the setting and let the files shown in the file management tool of cpanel?

View 6 Replies View Related

Plesk 12.x / Windows :: STOP Resetting File Permissions On DLL File?

Sep 17, 2014

How can we stop Plesk resetting the file permissions on a dll file that is found in

C:Program Files (x86)

??

Specifically,

we have a file, jmail.dll,

here

C:Program Files (x86)Dimacw3JMail

By default Plesk permissions are set to DENY for PSACLN.

But the JMail plugin cannot work with these permissions !

We change this to be ALLOW for READ & EXECUTE and DENY for WRITE.

And everything works fine.

But every time Plesk does an update it reverts it back !

This means that a number of our customers contact forms stop working !

View 12 Replies View Related

/usr/bin/gzip -p Correct Option To Unzip First File To Second File?

Nov 22, 2008

I'm trying to do this

/usr/bin/gzip -p /home/mysite/public_html/shop/feeds/myfile.xml.zip > /home/mysite/public_html/shop/feeds/myfile.xml

But it just tells me

/usr/bin/gzip: invalid option -- p
X-Powered-By: PHP/5.2.5
Content-type: text/html

How do I find the correct option to unzip first file to second file?

View 8 Replies View Related

Apache :: How To Discover Which Php File Allows Malicious File Upload

Oct 10, 2014

i manage linux apache webserver with a few wordpress blogs and from time to time i see someone inject a malicious .php file into wp-content/uploads/2014/10/ directory.

i think its some bad plugin or theme, but these is more blogs, i ugrade, update, WP, but

how can i setup some monitor to tell me which php file (or even line in php file) injected that malicious .php ? I have linux root access so i can setup anything 

View 3 Replies View Related

Links Files In Linux (file.txt For File.php)

Jul 9, 2007

Today I found some cstomer on the servers make a link for named it file.txt and link it to other customer php file.

so that customer have the ability to show the other custoer file content when visiting the url because it is a text wile originally it is a php file.

the php file was a config file, so now he know the database password , and because he is in the same server he can use that databse.

the question , how to avoide this prolem in the future?

notes , the SuExec is rnning and the open_basedir protection is enabled, but the problem still exists.

View 12 Replies View Related

How Can I Convert A PDF File To A WORD Doc. File

Oct 3, 2009

have some E_Books in PDF I want to convert them to word document format

Also need a share hosting for this

View 14 Replies View Related

Put A .FLV Format File On A Web Page With Out Using The .swf File?

Nov 26, 2008

how to put a .FLV format file on a web page with out using the .swf file?

View 4 Replies View Related

Un-tar Big File

Jul 1, 2009

un-tar big file - big head ache - any way to overcome?

I was un-tarring a file of 6.622gb, the un-tar size should be around 14.4gb I think, most of them are image files .jpg's

and its taking hell a lot of time and not to mention the breaks for un-specified time to process once again,

started decompress around 40-50mins earlier and still the process is on,,.....

using centos5 , ssh - root access

is any there any way I can overcome this problem in future, I can't afford to spend so much time on friends vps just to decompress files?

View 8 Replies View Related

FTD File

Jun 12, 2009

Client asked me:

I'd like you " to move my web sites that I have in a FTD file from were it is now to GoDaddy? I have the accounts already set up all that has to happen is the move."

I must confess that I have no clue what he means by FTD file. What am I missing?

BTW, I have Googled it with no results that make sense to me.

View 5 Replies View Related

/tmp File

Jun 25, 2009

I was playing around with this and that as you do, and somehow changed my /tmp folder from rwxrwxrwt to rwxrwxrwx -

iv tried running chmod 1777 /tmp as someone suggested that but nothing seems to of happened?

View 5 Replies View Related

.tar.tgz File

Jan 30, 2008

I have a web site backup file (let's call it 'filename.tar.tgz') that was generated from a home-grown web hosting panel and is ~1.6GB in size. It is resident on a WinXP computer, but I also have it copied to a *nix machine.

I have attempted to restore the backup using the normal restore process provided by the site admin panel, but it will never complete because of the size of the file. So, I need to retrieve the folders/files from within the 'filename.tar.tgz' file so that I can re-upload the files/folders through normal FTP.

I have had no success extracting the files/folders when using tar, gtar, gunzip, etc on the Linux box. 7Zip won't open it either. The Linux terminal reports a 'stdin: not in gzip format' error when trying to decompress/extract the files.

What I need is the exact syntax (with any switches) that I can use in my Linux Terminal Shell for extracting this archive so that I can access the files within.

View 8 Replies View Related

Where Is The My.cnf File Kept For Plesk?

Oct 2, 2007

Where would the my.cnf file be kept for Plesk?

I found one in /etc, but the max_allowed_packet option was there.

View 2 Replies View Related

PayPal Or CC On File?

Apr 2, 2008

If a hosting company offers both paypal and CC on file (CC on file with auto-subscription/-recurring ability), which payment method do you prefer to use as a customer?

View 14 Replies View Related

403 Forbidden / File Too Big?

Jan 12, 2008

I've been recently trying to move an account between servers, but the backup file is always incomplete. I was told that it is possible there are too many files.

I decided to tar some of them and move manually, but I cannot access the tar file. I already changed all permissions (644), owner, group, but I still get 403 Forbidden error. Is it possible that the file is too big (9 BGs), and if it is, how do I change the file size limit?

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved