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
ADVERTISEMENT
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
Mar 16, 2013
In my personal website at URL.... I have the top like 'index.php?pg=profile', 'index.php?pg=home' or 'index.php' (without any querystring), 'index.php?pg=diary' etc. I am looking to see if I can have .htaccess file which can make me create links like
index.php/
index.php
index.php/home
index.php/profile
index.php/diary
write an .htaccess for the same?
View 1 Replies
View Related
Aug 22, 2009
I can't seem to remember, but what's that command or file used in Linux so that you can view/adjust the number of open files and others in the system?
View 3 Replies
View Related
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
Jul 3, 2009
It appears that some people like to take advantage of those files for online web applications such as Wordpress which have php files with permissions set to 777. They use those as a means of creating an upload file. The upload files that they create then have access to the whole server somehow... Is there anyway of preventing this from happening?
View 8 Replies
View Related
Jan 8, 2007
Does domlog file and raw access files are same? I mean do the contains same contents?
View 0 Replies
View Related
Jun 25, 2007
i download a script .. when i unzip the script .. all the folder have chmod to 700 + 600
what command could let the folders and sub folders have chmod to 755 ( as root )
i command this
chmod 755 *
but the folders inside the folder didn't chmod to 755
there is alot folders thats why its hard to do it manually :p
View 7 Replies
View Related
Feb 18, 2007
I have download manager script that I use for my customers to download products right after the purchase.
Script generates download link that looks like this:
http://www.yourwebsite.com/download/...582921B&p=1840 (where 2YY6582921B is receipt number that is different with each purchase).
All products are placed in one folder. This folder can not be seen in above download url, but can be accessed thru browser and files can be downloaded that way without paying for them.
Can I use .htaccess and if yes how, to protect all product files the way that they can not be accessed directly by visiting url thru browser (in case somebody will find the correct url), they should be allowed for access only for my download manager script.
View 3 Replies
View Related
Jan 14, 2007
I have anywhere between 80,000 - 90,000 webpages that have a single code into this. Unfortunately at the time the web developer I used didn't use PHP includes. So each .html file has the code in it.
I want a way so I can do a single command either a program or an SSH command can find the syntax in the files and replace it will code I have. Its just a single line of code that is basically for an adsense code, so the pub-blahblahblah etc..
Does anyone know of a SSH command I can use, or a program that will find and replace without manually opening up each file? 80k - 90k of opening files then find/replace will take forever!
View 11 Replies
View Related
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
Jul 26, 2009
I recently had an issue where my box wasnt listing accounts (on logging into WHM for the first time it would, thereafter browsing different functions in WHM it would fail to list any accounts), would not list any zone items when editing DNS zones and in general was acting very strange.
I think the tech support chap narrowed it down to zero free inodes on the filesystem (i was even getting errors when editing files with 'vi'). This was increased for the VPS and all issues seemed to be resolved...
However named and httpd were not starting after reboots. Again on looking closely named and httpd were missing from /etc/init.d (on CentOS 5.3)! This is very strange and i certainly didnt modify those nor delete such critical files.
For a second opinion, is there any cPanel script that can be ran to fix the issues, i am concerned other things have been affected but havent manifested themselves yet (other files deleted etc). Does cPanel update script create the init.d files or is this done by the CentOS operating systems itself? Are these files modified during a cPanel update script?
These init.d files for named and httpd have been readded (copied across from another box) and it seems to be ok again, but ideas on howto proceed much appreciated, as i mentioned i dont want any nasty supprises!
View 2 Replies
View Related
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
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
Jun 30, 2009
When I download a file from my server, only specific extensions are working. This is really annoying since I want to be able to see how much time left to finish a download.
For example I uploaded a video with .vob extension
file.vob --> does not show filesize when downloading
If I rename the same file to different extension:
file.avi --> works fine shows filesize when downloading
file.mp3 --> works fine shows filesize when downloading
file.rar --> works fine shows filesize when downloading
file.mp4 --> does not show filesize when downloading
file.wmv --> does not show filesize when downloading
These are direct download links, not using any download scripts or anything. Why are some extensions displaying the filesize and some not displaying them? I am using Apache 2.x server.
View 2 Replies
View Related
Sep 26, 2008
I have a website that just serves small files, under 10kb most of them. I just need a server that lets me ftp the file to it, set up subdomains and domains for one website. Don't need to manage mysql or anything. Not even php. Just serve files.
A good fast OS? Something like lighttpd? Ioono?
I'm currently doing 600gb of bandwidth per month. I'm expecting to do about 1000gb by the end of the year. Would a small server like a pentium 4 be able to handle just serving files?
View 14 Replies
View Related
Nov 24, 2007
Display some text in a web browser from a file called text.txt
text.txt will have many lines and some of them I do not want users to be able to modify and overwrite.
config_item_1=user can edit
config_item_2=user should see but not edit (could be on any line)
config_item_3=user can edit
config_item_4=user can edit
The user has made their changes in the web browser and clicks submit. I then need this info to be saved as the text.txt file however some checking needs to be done first. Anything matching config_item_2 should be removed. This could be on any line. Anything not matching should be permitted and added.
View 1 Replies
View Related
Jun 4, 2014
How Can I prevent users removing file web.config on FileManager?
I try set attribute read-only, but not effect.
View 4 Replies
View Related
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
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
Sep 24, 2014
we had a problem playing values my.ini file located in C: Program Files (x86) Parallels Plesk MySQL Data..not keeping a copy of the old configuration and that there is now not working properly. What is the configuration which is by default or tell me how I can generate it again?
View 2 Replies
View Related
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
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
Jul 29, 2009
I have a file and i need to change this file name.
But its have space now.
Its: My File Name.tar.gz
How can change this file name to: My-File-Name.tar.gz
View 2 Replies
View Related
Apr 1, 2009
I have a list of files in a folder like this:
/home/files/[url]
And I need to rename them to this format:
awstats092008.[url]
I've played around with sed, rename, and a bunch of others.. but I just can't figure this out.
server is CentOS 5.2
View 2 Replies
View Related
Sep 14, 2007
i have few servers that just serve files (1MB-100MB)
Suse Linux on all
the servers have minimal apps installed and i already got a llarge performance increase by dumping apache
now im look at tweaking at the OS level
any settings in Linux itself to speed up sending files down the pipe?
net.ipv4.tcp... in /etc/sysctl.conf?
View 0 Replies
View Related
Jul 23, 2014
When trying to access any files or pages I'm getting the error:"Not Found...The requested URL /wp-login.php was not found on this server.Apache Server at calmcomputing.net Port 80"
The standard default page displays but my Wordpress installation does not (nor does anything for that matter). I've looked in the file manager (and via ftp) and all the files are there like they should be. This is the same for any of the subdomains that I've setup as well.
View 3 Replies
View Related
Jun 4, 2014
All my PHP script can't upload file. I have tried to set CGI Application or FastCGI Application to my domain, but I can't resolve this issue.
View 6 Replies
View Related
Oct 24, 2014
Where the file that holds PHP fastcgi configuration is located. I was told its here but it's not
/etc/nginx/conf.d/*.conf.
View 3 Replies
View Related