Simpleish PHP/flat Files - Create File, Edit, Save
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 Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Links Files In Linux (file.txt For File.php)
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 Replies!
View Related
How Can I Save My /etc/passwd File
how can i save /etc/passwd there is many linux order which show my users on server such as : cat /etc/passwd cat /var/cpanel/acounting.log ls -la /etc/valiases ls /var/named ----------------- and how can i disable the geting orders such as : wget curl -o lynx
View Replies!
View Related
Prevent PHP Files Used For File Uploading
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 Replies!
View Related
Simple Perl Progam To Save Server Load Every 30 Minutes To A File
i use the following perl script(created by me) to save server load every 30 minutes to a log file i just keep it running in the background(probably would be more effective using cron) #!/usr/bin/perl while(1) { $w = `w`; #print $w; $w =~ /load average: (.+) /; $log = $1; my ($sec, $min, $hour, $mday, $mon, $year) = localtime; my $rightnow = sprintf("%04d-%02d-%02d %02d:%02d:%02d ", $year + 1900, $mon + 1, $mday, $hour, $min, $sec); $log = $rightnow . ": " . $log ." "; open (OUTFILE, ">>top_logfile.txt"); print OUTFILE "$log "; close (OUTFILE); #sleep for 30 minutes sleep(1800); }
View Replies!
View Related
Cannot Edit/view Files In Any Directory
Command: CWD /public_html Response: 550 Can't change directory to /public_html: Permission denied Error: Failed to retrieve directory listing That's what I see in FTP, but in File Manager in cPanel I don't see any files. What do I do? The permissions is set to 750 for /public_html and I cannot change them
View Replies!
View Related
Edit /etc/my.cnf File
I am trying to edit my database parameters by editing my /etc/my.cnf file. However I am new to SSH and can't seem to get this working. The parameter I wants to change in /etc/my.cnf file are as follows max_connections 600
View Replies!
View Related
DNS File Edit
For DNS changes I use only CPANEL to edit. Now I need to make massive changes to some parameters ( like contact email, remove some lines unset e.t.c) How can I edit the file with dns records and make the change easy and massive?
View Replies!
View Related
How To Edit Php.ini? Dedicated Server
linux hosting. Basically i want to edit php.ini inside my dedicated box to include Code: disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open, base64_decode, base64_encodem, proc_terminate but how can i edit php.ini? I know where my php.ini and I have root access.
View Replies!
View Related
How Do You Create/generate Config Files
When deploying new server/servergroup/cluster to your IT infrastructure, deployment (simplified) consist of following steps: OS installation: to do it over network, boot server must be configured for this new server/servergroup/cluster, configuration/package management: configuration server has to be aware of the newcomer(s), monitoring and alerting: monitoring software must be reconfigured, performance metrics: a tool for collecting data must be reconfigured. There are many excellent software solutions for those particular jobs, say configuration management (Puppet, Chef, cfengine, bcfg2), monitoring hosts and services (Nagios, Zabbix, OpenNMS, Zenoss, etc) and performance metrics (Ganglia, etc). But each of these tools has to be configured independently or at least configuration has to be generated. What tools do you use to achieve this? For example, when you have to deploy a new server, how do you create configs for, let's say, PXE boot server, Puppet, Nagios and Ganglia, at once?
View Replies!
View Related
How Do I Create A Daily Copy Of Just One File
I seem to be having a problem where periodically the data in one file is getting corrupted. I haven't been able to figure out a pattern to it, so I wanted to run command by crontab that would create a copy of the file each day. To avoid overwriting previous backups the filename of each day's copy would have to be unique like... cp filename filename-2008-07-03 Is there a way to include this year, this month, and this day variables in a linux command?
View Replies!
View Related
Wordpress Drupal Wont Create Files On Server Lamp
I built a web hosting server, the following is its state Cent os 5 AMP server loaded updated (installed it as a complete suite during installation so it was all set to go with php mysql modules loaded) webmin usermin virtualmin created 2 named based hosts. now when i load up wordpress in a site and try to run install.php the following pops up "Sorry, I can't write to the directory. You'll have to either change the permissions on your WordPress directory or create your wp-config.php manually." I had this issue before and research said to redo the entire server (tried everything and was fed up had fedora then" you can have a look at www.itgrunts.com just click create config file and the errror pops up. The php and mysql db work great on simple scripts but i dont know why this happens. i worked with assigning the users and apache user to the directory and everything, no joy.
View Replies!
View Related
IWeb8 Technologies - A Flat Out Nightmare
I warn you, there is not a single good thing to be said about iWeb8 after our vast experience with them so if you want cliffnotes, picture a man shuffling through around 100 emails, invoices and chat logs while screaming in frustration. I’m attempting to piece together a structured account of our experience at iWeb8 Technologies through all that so bear with me here. We run a non-commercial website that receives around 20 million page views per month. The problem is we quickly outgrew our technical know-how and had a pickle on our hands once our dedicated server at HostGator started buckling under the pressure. Friday is our most active day, as that’s when we have new content for our members – it’s also the day when our server became virtually inaccessible due to the traffic. We needed a solution, because HostGator basically told us to upgrade our machine or stop bothering them, [click here] for that story. We narrowed our choices down to 2, SoftLayer or iWeb8 Technologies. We called them both up and learned about their datacenters and what direction we should go with our situation. SoftLayer’s salesman misunderstood a bit (as we later learned, more on that later) and offered us an overwhelmingly costly setup (upwards of $1500+ per month). iWeb8 ‘s sales representative “Brian” reeled us in with a couple promises – 1)The solution they outlined to us (2 web servers, 1 database server) would work. 2)If we opted for Level 5 management ($149/month) they would “treat our servers as if they were their own” (word for word) We were very excited and worked out the details with them. We were convinced to go with a 12 month plan which would save us money in the long run. Our server manager suddenly switched from “Brian” to “Patrick Bertrand” at that point. And then the problems started. The very first Friday we were fully set up on their servers, we crashed. We crashed under less traffic than our single cheap dedicated server at HostGator handled. It took iWeb8 1 hour to reboot our server. The next Friday, we crashed. We were down for 3 hours before we were rebooted. On 11/08/07 We asked for a hardware diagnostic and an inquiry into why we were crashing with pretty much twice the power we previously had – they told us we should add 2GB more ram to our servers for $50/month each. We had them install the 2GB on one server to do them in phases, and thus minimize downtime. After the installation of ram that server performed far worse than it ever did before, and shot up to 100% CPU usage with 1 user online. This was my first experience with the post 6 PM Janitors who man their support staff. Apparently after that timeframe all the knowledgeable techs go home. After hours of waiting and talking on live chat / phone (to the same person every time, the only person who answered…) I was basically told that nobody there could do anything and I would have to wait until 8 AM EST for a senior technician to look at it. OTHERWISE, I could pay $180/hour or some ridiculously high number to get it immediately looked at. That Level 5 support really pays for itself huh? I hired an emergency outsource administrator to look at it, he quoted me at $200 until the problem is resolved which was a steal. He found that I didn’t need ram at all. It was in fact my faulty motherboard that was causing the problems on that server. Ooooooh! Thanks for doing your “hardware diagnostic” properly and telling us to upgrade our ram for $50/month iWeb8, you’re really looking out for your customers. Finally at 12:15PM EST noon the next day it was looked at and replaced. Exactly 1 week later on 11/15/07 all of our servers went offline for an hour or two. We were told it was a network issue and it was resolved. Nice. Now here’s where the monster problems started. On the evening of Tuesday 12/01/07 all of our servers went offline. We opened an emergency ticket and the Janitor responded saying 3 apache modules were missing (huh?) and that it was fixed. Thing is, it wasn’t fixed at all. All 3 servers were still offline and unreachable. Finally our outsourced server admin gets into one of them and sees the load at 150+ with a ton of httpd threads open. He runs netstat and concludes we’re being DDoS attacked. Swing and a miss again, iWeb. After exchanging pleasantries with the Janitor all night the senior staff finally got in at 8AM. His conclusion was to shut down apache and wait it out, since iWeb8 has no DDoS mitigation systems. Great. 2 days pass and nothing improves. We talk with our server manager to find out if we can terminate our contract and take our business elsewhere due to the pile of [expletive deleted] they’ve dumped on us ever since signing us, and the uselessness of “Level 5” support. He responds saying, and I quote “Concerning level 5 support, have you requested the monitoring service alerts to be sent to our sysadmin cell phones ? if you did please provide the original RT number so that i can investigate to see why it has not been done on our side” Wonderful. So you’re basically paying for nothing until you use your psychic powers to determine that you need to request something you thought was assumed with your $149/month. Nowhere when we signed up were we told we had to submit a ticket to request that our Level 5 support is useful. He also mentioned that the original salesman was “wrong” in offering us the phrase “we treat your servers like they’re our own”. He responds again saying the website is working from his side. We test from 3 ISPs and proxies and we can’t connect, so no, it’s not working. Our server admin determined that their solution involved blocking pretty much all incoming traffic except their own range. We once again requested that the contract be terminated, as we were blatantly lied to on multiple occasions and they’re threatening our website with their poor level of service. He says he needs to discuss it with the higher ups. At this point I’d already moved my sites to a 2 web server 1 database setup at SoftLayer, they put my site under their Cisco Guard and their team actively worked against my DDoS attack, ending it within a few hours. I’ve been happily at SoftLayer ever since 12/5/07 without any issues on this setup. See my review of them by [clicking here]. Anyway, on 12/17/07 iWeb sends a global email to all their customers informing them that “Improvements will be made to night and weekend customer service”, thus admitting that they were actually manning their Janitors – too little too late though. On 01/15/07 we still hadn’t heard from them (except for a couple dozen invoices that failed because we weren’t going to send them anything until this was finalized), so we talked to our lawyer and threatened legal measures on iWeb8 if we didn’t hear from them so that we could terminate the contract. On 01/16/07 we got an email from Patrick Bertrand confirming that the contract could be ended, they would send us the details later. Turns out the details was they wanted 20% of the remaining contract value to terminate, which he ensured me was a “good deal” because “he knows his company and this is the lowest they’ll go”. Is he trying to sell me a car or what? At this point it’s whatever, if we can pay $1,495.26 (20% of the remaining contract) to make the iWeb8 nightmare end, let’s do it. So we did, on 01/25/08 we paid the entire amount and our contract was effectively terminated. Now in March the nightmare returns. We receive an email from them demanding that we pay $740.00 for “services” rendered from the period of when he said he’d talk to the higher ups till we were waiting for them to do virtually nothing until we called them up in January. At this point we’re weighing the option of paying off these swindlers and being done with it once and for all (even though they’ll probably come back to us in June with “interest” invoices on this current one) against fighting it. That’s where we’re at now… I hope this was enlightening for you if you’re considering falling for iWeb’s lies, random surcharges and all in all horrible service.
View Replies!
View Related
How NOT To Require CHMOD 755 Permissions To Create, Write And Delete Files On Linux
On my previous server and on some other hosts, I was able to write to files (for example with PHP) without having to chmod the files first. Now I cannot, and files are required to be chmoded properly so I can write to them. I cannot even touch() a file with PHP. Is there any way to have this permissions removed? I don't want to chmod the all thing, all I want is to change the configurations so I can fwrite() or file_put_contents() normally. I's a dedicated un-managed server, so basically any advanced configurations can be done.
View Replies!
View Related
Create A Symlink Between Different Users That Targets To PHP
I’ve been working on a project for weeks and I can not solve this, hope you can give me an idea. I am working on a dedicated server, and I need to create some symlinks between different accounts and users... Both accounts are on the same partition of the server (home) and I have root access and SSH access for everything. If I create a symlink to a directory of another account and on that directory there is any HTML file (e.g. Index.html), that symlink works great and it shows the content on that file. HOWEVER if the symlink targets to a directory in which there is a file in (e.g. Index.php) or any script programmed in PHP (e.g. Joomla) it does not work and gives... “Internal Server Error” + Additionally, a 404 Not Found error was encountered... When I go to Cpanel the “error log” says... [Sun Jul 05 09:15] [error] [client zz] File does not exist: /home/zzz/public_html/ 500 shtml [Sun Jul 05 09:15] [error] [client zz] SoftException in Application.cpp:367: Mismatch between target UID (123) and UID (123) of file "/home/zzz/public_html/my-dir/my-symlink/ index php" However, If go to SSH and edit server owner of the symlink, so both symlink and target file has the same owner (chown user:user directory_name) the problem is the same, but on the “error log” the UID Mismatch disappear and I only find... File does not exist: /home/zzz/public_html/500 shtml I’ve also tried modifying suexec by changing... “domain . tld ” for “domain - tld ” on the server alias, and does not work. Here I give you more info about server file structure... serveralias generation path... /var/cpanel/userdata/USER/DOMAIN suexec location... /usr/local/apache/sbin/suexec Server Information System Linux Apache Version 2.2.11 (Unix) PERL Version 5.8.8 PHP Version 5.2.8 So the question is... HOW can I create a symlink between different users on the same dedicated server partition, that target to PHP scripts or how can I allow the server to execute PHP scripts through symlinks of different accounts?
View Replies!
View Related
Strange PHP File On My VPS. (oxb.php)
I found a strange PHP file in a strange folder on a VPS I am using to host a few sites. I've looked through the logs but can't figure out how it got there and I've look at the code and can't make any sense of it. Can somebody take a look at the code and tell me what they think of it: .....
View Replies!
View Related
Use .htaccess File To Allow Access To Zip Files Only From My Script
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 Replies!
View Related
SSH Or Program How To File Replace Lots Of Files
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 Replies!
View Related
File Size (content Length) Not Showing When Downloading Files
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 Replies!
View Related
What Type Of Server And Os, Etc For Just File Serving- Small Files Like Under 10kb
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 Replies!
View Related
Create A Zend Id For Your Machine. This Is Apparently For Them To Create A Product Key For Their Software
Customer has requested the following: "Create a zend id for your machine." This is apparently for them to create a product key for their software and have to bind to it?! I have never heard of this and have been unable to locate any information on it. This is a Centos box with php 5.2.5 installed: Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies how to go about this or even what this is?
View Replies!
View Related
WHM Not Listing Account, DNS Etc, Missing Files, File System
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 Replies!
View Related
Php Files Pop-up Sometimes
In the last couple of days my server/website has been acting a little strange and I can't recall doing anything to it in this time. 1) Now and again a normal PHP page will pop-up in the Firefox download manager. Usually the page is simply compiled and shown to the browser. 2) Images that really are present on the server sometimes randomly don't show in IE. PHP 5.1.4 MYSQL 5.0.27 Apache 1.3.37 APC 3.0.12p2 (latest)
View Replies!
View Related
Using Php To "create" Balanced Static Hosting
My host [in USA] that I only use for php/mysql points to my static content CentOS server [in Japan] in my house connected to my CATV. At least for testing (outside my house) I can't notice any bad latency since my USA host just serves up small HTML code dynamically and the static content (up to 100k-500k per file) is already available inside Japan. I want to keep (and scale up, if needed) my php/mysql in USA due to language and other issues so I'm hoping (?) as the number of users goes up (or any other issues I can't think of now) latency does not become a problem just for the html. Any comment on that? My next step to "create" balanced static hosting in Japan is to get two different VPS accounts here in Japan (on two different physical servers) and use php to randomly select which VPS will provide the static content when a user logs in. PHP will also test to make sure the static server is active. If it is down the code will direct to the other server. If my project grows I will - on the Japan side - get more VPSs or even multiple dedicated servers and use the php to manage this "balanced" system like I described.
View Replies!
View Related
PHP Files Not Work On My Server
I have a dedicated server, on this server I have only 2 website. I created an account before and that account work correctly. now I created a new account and when I trying to run a simple php file show me "Internal Server Error". I can view html files and I haven't .htaccess file . Server Inofrmation: CentOS , cPanel , Apache 2, PHP 5
View Replies!
View Related
Apache Not Recognizing My .php Files
Yesterday I was told by my hosting provider that my machine was at kernel panic, so they restarted it and I restarted my webserver (Apache). I created a sub folder as I wanted to install a PHP script, so I created the folder using FTP and uploaded all of the script files. The problem is, when I now visit that URL, my browser is asking me to download the .php file instead of the webserver executing it: [url] My web host said this: it sounds like you aren't loading your php module library in your apache.conf and/or not associating the .php extension.
View Replies!
View Related
PHP Files In IIS Blocked
I setup php on my IIS in my box and i know i set it up correctly, but each time i reinstall it because of this error i keep getting it. When i try to see any php file on my IIS through a web browser it shows me some login page no matter what kind of php file it is. If its html or asp it works fine like here 66.221.255.17 or 66.221.255.17/index.html but this doesnt work it shows some login 66.221.255.17/index.php and so do all other php files.
View Replies!
View Related
Check Which Php Files Are Running
When I am having server issues with my VPS, tech support comes back with something like Quote: Following processes are using CPU resources. Top Process %CPU 56.4 httpd [ www .myurl.com ] [/php/index.php?qdGFnZ2VkLmNvbQ--&hl1111101001 ] Top Process %CPU 53.5 httpd [ www .myurl.com] [/php/index.php?qdGFnZ2VkLmNvbQ--&hl1111101001] Top Process %CPU 25.4 httpd [ www .myurl.com] [/php/index.php?qaHR0cDovL3d3dy50YWdnZWQuY29tLw%3D%3D] Can you check which php files are running? where does that come from? I know they use shell access but where is that info?
View Replies!
View Related
PHP File Upload
I think I messed php config and I can't upload anything with php now Dir is chmoded on 777 and File_Uploads = On in php.ini I'm running lsphp5 with suhosin, when I try to import db via phpmyadmin I get error: Uploading is not allowed and when I try to upload some file via php script I can't
View Replies!
View Related
Php File Corruption
I have a Linux VPS with Liquidweb which is working fine except for one problem: On one domain I have a shopping cart (a highly modded CubeCart). A number of the files are encrypted php files (part of the extensive mods). For several weeks all will work fine, then out of the blue, the cart will stop working because a number of the encrypted files have become corrupt. The result is either a totally blank page or a 'checksum error'. Uploading the files from a local backup fixes things for another few days or weeks. I have no idea why this is happening, or what triggers it, so if anyone can point me in the right direction to find out what is behind the problem, I would greatly appreciate it. The server uses PHP 5.2.x
View Replies!
View Related
Internal Server Error For All Php Files
I switched over a new host and everything was working perfectly. I then uploaded one last directory but it had a weird internal server error when trying to access the index.php file. I then googled it and changed directory permissions to 755, and I am not sure if it is a coincidence but now every site on my server with php files displays that error but html pages are fine.
View Replies!
View Related
Cron Jobs Not Executing PHP Files
I have a new dedicated server and am trying to set up a cron job via CPanel on on of my accounts (we'll call it "abc" account). In the Cron job area, where it asks for the command to run, I enter this: /home/abc/public_html/forum/class/sendnotice.php But when the job runs, it doesn't seem to be executing the .php file. Instead, I get stuff like this via email: /home/acb/public_html/forum/class/sendnotice.php: line 1: ?php: No such file or directory /home/abc/public_html/forum/class/sendnotice.php: line 2: ////////////////////////////: is a directory /home/abc/public_html/forum/class/sendnotice.php: line 3: //: is a directory /home/abc/public_html/forum/class/sendnotice.php: line 4: //: is a directory /home/abc/public_html/forum/class/sendnotice.php: line 5: //: is a directory /home/abc/public_html/forum/class/sendnotice.php: line 6: //: is a directory /home/abc/public_html/forum/class/sendnotice.php: line 7: //: is a directory /home/abc/public_html/forum/class/sendnotice.php: line 8: //: is a directory /home/abc/public_html/forum/class/sendnotice.php: line 9: //: is a directory So it is as if the cron job is reading each line of the .php file instead of just running it. Am I doing something wrong in setting up the cron job to run that file or could it be a configuration issue with the new server?
View Replies!
View Related
Apache 1.3 Not Parsing Any Kind Of PHP Files
I using RHES 4 + cPanel. I have MySQL 5.x, and PHP 4.4.6. I noticed that all sites on the server, can not parse php files, tried restarting httpd, recompiling using apache update or easyapache script, and the problem stills. index.php is at DirectoryIndex, also Addtype shows php extension active at httpd.conf. but, when I type "php -v" from the shell, i got this message: Code: php: /usr/lib/libmysqlclient.so.14: version `libmysqlclient_14' not found (required by php) I found someone with the same problem, tested the solution posted there but it doesnt seems to solve this issue.
View Replies!
View Related
Save My Site From Hackers
My site is going down lot of times due to high cpu quota and when i check cpu exceeded logs i could see some ip addresses trying to open non existenet permalinks i.e. my site is smartdesis.com and they try to open smartdesis.com/xxx which gives a 404 error which is causinf high cpu usage. Repetedly they are trying to open differnt urls by appending /xxx to them, i banned nearly 100 ips but they seem to be growing.
View Replies!
View Related
Cron: How To Run Php File
My server with cPanel, I'd like run file http://domain.com/file.php at 0h00 everyday, I have set the Cron Job in cPanel : Code: 0 0 * * * /usr/bin/ehpwget http://domain.com/file.php but The cron is not working well Code: /bin/sh: /usr/bin/ehpwget: No such file or directory Can any one please let me know how to run a php file with cron. (as user or root)
View Replies!
View Related
[php] <defunct> - What File Generating That ?
On my server, i have one user ho create load on my server. user 29508 22.0 0.0 0 0 ? Z 15:18 0:00 [php] <defunct> That user has more site added with addons from cpanel. How can I found witch site is generating that high load ? Also some time, I have php index.php ( and that don't help me very much ) The server run php as cgi module.
View Replies!
View Related
PHP Permissions (file Owner)
I have setup an ftp user which can upload files to /home/ftp/upload and obviously it assigns the ftp user as the owner when it uploads. Now, I want PHP to be able to rename those files, but getting a permission denied, presumably because apache aint the owner or doesnt have permission to do that, so how do I grant it the right permission(s)?
View Replies!
View Related
PHP File Change String
I currently have this code in my Image Upload script which changes the file name into sets of numbers and letters Quote: $new_file_name = "uploads/" . md5($_FILES['selector']['name'] . time()) . "." . $extension; How can i make it so its smaller than an md5, about 6 or 7 numbers and letters.
View Replies!
View Related
|