My Site Cannot Run Php Files
my site cannot run php files
move from server 1 to server 2
another site no ploblem move from server 1 to server 2 too
What ploblem i need fix this
here my site
[url]
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Run Php4 For .php4 Files And Php5 For .php [httpd.conf]
First off my error: apache force downloads .php4 files Background: Im attempting to run php4 and php5 at the same time. I had php 5 installed with the server when I got it. I have installed php 4 from the source like this: Code: ./configure --with-apxs=/usr/local/apache/bin/apxs --prefix=/PHP4 --without-mysql I then copied the php.ini file to /PHP4/php.ini In my httpd.conf Im loading and adding both php 4/5 modules like so: Code: LoadModule php4_module libexec/libphp4.so LoadModule php5_module libexec/libphp5.so AddModule mod_php4.c AddModule mod_php5.c Then later in the httpd.conf Im trying to tell apache to handle .php4 files with PHP 4 and .php with PHP5 Code: AddType application/x-httpd-php .php AddType application/x-httpd-php4 .php4 I restarted apache to load the new conf. .php files still use PHP5, but for some reason .php4 files are being downloaded, not running with PHP 4. If I use htaccess to application/x-httpd-php4 php, .php files also force download. What am I missing?
View Replies!
View Related
Run An Existing Site On A LAN
I am currently trying to transition a website from one CMS to another. I need to configure and build the new CMS so that it retains the same features of the previous CMS. I don't want to interrupt service to the website, thus I need to build the new one offline and then switch the two. Can a domain server with the same domain structure of the WWW be run on a LAN? I was thinking of configuring a FreeBSD server with apache on a private IP LAN. Then I would run a DNS server to emulate the internets domain structure (.com, .net and .org).
View Replies!
View Related
Setup A Webalizer Which Can Run Weekly To Process W3log Files
My IIS W3Log File is under C:Inetpubw3LogFilesW3SVC1 looks like this which is daily log file: C:Inetpubw3LogFilesW3SVC1ex081022.log C:Inetpubw3LogFilesW3SVC1ex081023.log C:Inetpubw3LogFilesW3SVC1ex081024.log All my web site is under c:InetpubVS c:InetpubVSWebSite1.com c:InetpubVSWebSite2.com c:InetpubVSWebSite3.com There is a webalizer directory under each domain folder. Does anyone know how to setup a webalizer which can run weekly to process W3log files and put the result into corresponding domain webalizer folder?
View Replies!
View Related
I Run A Heavy Site, And Httpd Always Failing
I run a heavy site, and httpd always failing... I have a server with these specs: Q6600 8GB RAM 500 GB SATA HD Cpanel/WHM I run a filehosting site actually and there are alot of people downloading at the same time which i think the server goes down and then httpd restarts itself and all the people downloading the files, their files get currupted. How can i make it so it stays stable?
View Replies!
View Related
Safe To Run Your Website And WHMCS On The Same Account Or Site?
Is it safe to run your website and WHMCS on the same account or site? Say for example I was running Joomla and WHMCS on the same account. If ever a vulnerability in Joomla was found which allowed hackers to view, edit, or download files on the account, this could mean whmcs getting hacked into. End result would be all account information being stolen or worse all the account being deleted or hacked.
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
Cron Run Php Scripts
I have my own server. I create php file for adding cronjobs. I checked /etc/cron.deny and /etc/cron.allow. both of them is empty so no problem. I execute the php script but nothing : I check with crontab -u user l and it told me no cronjobs for that user. When I access as root from ssh and try teh same command, it works fine. I don't understand how to fix that.
View Replies!
View Related
Get PHP To Run On Windows Host
I want to get PHP to run on Windows webhost. The webhost is not able to run a simple PHP file with phpinfo() yet. Tech support says I can use .htaccess to get PHP to run. What is the best way to setup PHP on Windows Host so that it can run Joomla?
View Replies!
View Related
How To Run PHP 4 And 5 In Ubuntu Without CGI
When we chose Symfony to implement [url], PHP 5 was needed but we only had PHP 4 installed in our Ubuntu hosting servers. We couldn¡¯t just migrate everyone to PHP 5 since some of client¡¯s applications were incompatible with PHP 5. Some tutorials were found online explaining how to run PHP 4 and PHP 5 simultaneously such as [url] and [url]but they all used CGI. As you probably know, CGI is not scalable and we needed to scale in PHP4 and PHP5 since we needed to server millions of hits in both configurations. The following are additional the requirements we had: 1. Run Apache 2. Use mod_php for both PHP versions. 3. Run eAccelerator with both PHP versions. 4. Use as many Ubuntu packages as possible to ease maintenance issues and easily deploy on multiple servers. 5. Use Ubuntu 6.06.1 LTS The solution we came up with was to run Apache 2 with PHP 5 and run Apache 1 with PHP 4 on separate IPs. Ubuntu comes already with these packages. The only package we had to compile was eAccelerator. The following lists the steps taken to get this setup: Apache 2 with PHP 5 * apt-get install apache2 libapache2-mod-php5 php5 php5-cli php5-curl php5-gd php5-mysql php5-dev make php5-mcrypt php5-imap * vi /etc/php5/cli/php.ini and uncomment extension=mysql.so * vi /etc/apache2/ports.conf and put Listen Your.IP.Goes.Here:80 * a2enmod expires * vi /etc/apache2/conf.d/hosting <VirtualHost *> DocumentRoot /home/httpd/mainpage ServerName mainpage.com ServerAlias www.mainpage.com Options Includes FollowSymlinks AddType application/x-httpd-php .php DirectoryIndex index.php index.html index.htm </VirtualHost># Cache images and javascripts ExpiresActive on ExpiresByType image/gif ¡°access plus 1 week¡± ExpiresByType image/jpeg ¡°access plus 1 week¡± ExpiresByType image/png ¡°access plus 1 week¡± ExpiresByType image/x-icon ¡°access plus 4 week¡± ExpiresByType application/x-javascript ¡°access plus 4 week¡± ExpiresByType application/x-shockwave-flash ¡°access plus 4 week¡± * cd /usr/local/src * wget http://bart.eaccelerator.net/source/...-0.9.5.tar.bz2 * tar xjvf eaccelerator-0.9.5.tar.bz2 * cd eaccelerator-0.9.5/ * phpize5 * ./configure * make * make install * mkdir /var/tmp/{eaccelerator4,eaccelerator5} * chown www-data /var/tmp/eaccelerator* * chmod 700 /var/tmp/eaccelerator* * vi /etc/php5/apache2/php.ini and add the following: zend_extension=¡±/usr/lib/php5/20051025/eaccelerator.so¡± eaccelerator.shm_size=¡±0¡å eaccelerator.cache_dir=¡±/var/tmp/eaccelerator5¡å eaccelerator.enable=¡±1¡å eaccelerator.optimizer=¡±1¡å eaccelerator.check_mtime=¡±1¡å eaccelerator.debug=¡±0¡å eaccelerator.filter=¡±" eaccelerator.shm_max=¡±0¡å eaccelerator.shm_ttl=¡±0¡å eaccelerator.shm_prune_period=¡±0¡å eaccelerator.shm_only=¡±0¡å eaccelerator.compress=¡±1¡å eaccelerator.compress_level=¡±9¡å Apache 1 with PHP 4 * apt-get install libapache-mod-php4 php4-mysql php4-gd apache-ssl apache-common libzzip-0-12 php4-common php4-dev apache * dpkg-reconfigure apache and uncheck mod_userdir and check mod_php4 and cancel on hostname * vi /etc/apache/httpd.conf and make sure to add this Listen Your.SECONDIP.Goes.Here:80 NameVirtualHost *# Cache images and javascripts ExpiresActive on ExpiresByType image/gif ¡°access plus 1 week¡± ExpiresByType image/jpeg ¡°access plus 1 week¡± ExpiresByType image/png ¡°access plus 1 week¡± ExpiresByType image/x-icon ¡°access plus 4 week¡± ExpiresByType application/x-javascript ¡°access plus 4 week¡± ExpiresByType application/x-shockwave-flash ¡°access plus 4 week¡±Remove the following <IfModule mod_alias.c> Alias /icons/ /usr/share/apache/icons/ <Directory /usr/share/apache/icons> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> Alias /images/ /usr/share/images/ <Directory /usr/share/images> Options MultiViews AllowOverride None Order allow,deny Allow from all </Directory> </IfModule> <IfModule mod_alias.c> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory /usr/lib/cgi-bin/> AllowOverride None Options ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> </IfModule> Change <Directory /> Options SymLinksIfOwnerMatch AllowOverride All </Directory> ServerSignature Off ServerTokens Prod * cd /usr/local/src * rm -rf eaccelerator-0.9.5 * tar xjvf eaccelerator-0.9.5.tar.bz2 * cd eaccelerator-0.9.5/ * phpize4 * ./configure ¨Cwith-php-config=/usr/bin/php-config4 * make * make install * vi /etc/php4/apache/php.ini and add the following: zend_extension=¡±/usr/lib/php4/20050606/eaccelerator.so¡± eaccelerator.shm_size=¡±0¡å eaccelerator.cache_dir=¡±/var/tmp/eaccelerator4¡å eaccelerator.enable=¡±1¡å eaccelerator.optimizer=¡±1¡å eaccelerator.check_mtime=¡±1¡å eaccelerator.debug=¡±0¡å eaccelerator.filter=¡±" eaccelerator.shm_max=¡±0¡å eaccelerator.shm_ttl=¡±0¡å eaccelerator.shm_prune_period=¡±0¡å eaccelerator.shm_only=¡±0¡å eaccelerator.compress=¡±1¡å eaccelerator.compress_level=¡±9¡å
View Replies!
View Related
Can't Run PHP Stable With Versions Above 5.0.3
Windows 2003 IIS6 PHP 5.0.3 and PHP 5.2.1 running with the ISAPI dll MySQL 5.1.11 I kind of have 2 problems, the first being the one in the thread title and the second is while running any version of php my main site experiences slowdowns and hangs. For some reason whenever I try to install a new version of PHP I have major problems. I have tried several times when new versions come out. I just recently tried the newest, 5.2.1, which I want to try and use, I think there are performance improvements for IIS and windows platform in the new 5.x versions? Anyway I can install 5.2.1 and get it running, and my sites load, but soon after my main site starts to hang, stops loading or loads extremely slow. I can't figure it out. I even tried using the exact same PHP.ini settings from my old working php install. So everytime I am forced to go back to the latest version that I know works with my server/sites, 5.0.3 [url] If I restart IIS the pages start loading fast again right after, even recycling the worker process that the site uses usualy makes the pages load normal again. I tried setting the worker process to recycle every 60min and to use 2 web gardens. These changes havn't really had any affect for better or worse. Downgrading back to PHP 5.0.3 seems to run a bit more stable, but even with this version I get these slowdowns now. I have been running my site(s) on this server for 3 years now and most of the time they have ran stable. -------------------------------------------------------- I was sleeping this morning and recieved a text-message saying the site wasn't loading. So I wake up and the site indeed was pretty much not loading at all. I look at permon that I left running to see this: [url] I give IIS a restart, which you can see above, then the levels go back to normal, here is a screen shot a couple minites later to what the "Current Connections" graph usualy looks like when the site loads fine. [url] During this slowdown the CPU usage was not maxing out, was maybe averaging 60% and ram was 50%. I am getting a 2nd server soon to off-load the MySQL to it and have it dedicated for that. But i don't think that will help this current issue. Here is the system resources when the site is loading fine: [url] I have around 40 or so other sites hosted on IIS and my main site "canadaka.net" which is purple on the top graph, is the only one that hangs or slowsdown. When this slowdown happens to this site, all the other sites on IIS, which are on a seperate worker process, continue to load fine. I can't figure out why these slowdowns are happening.
View Replies!
View Related
Crontab To Run PHP [without Using Wget And Lynx]
Hello, I don't know how to use crontab to run PHP without using wget and lynx 1) The PHP script can run via SSH command line mode without problem 2) I can use crontab to run the PHP script with wget or lynx. However, 3) The script will not run if i using below entry 1 2 * * * php /path/to/script/crontest.php 1 2 * * * php -q /path/to/script/crontest.php 1 2 * * * php -f /path/to/script/crontest.php 1 2 * * * /usr/local/bin/php - /path/to/script/crontest.php 1 2 * * * /usr/local/bin/php -f /path/to/script/crontest.php 1 2 * * * /usr/local/bin/php -q /path/to/script/crontest.php
View Replies!
View Related
IIS - Make PHP Run With .html Extension
I know nothing about IIS as I ormally use Linux / Apache so I'm not sure this is possible. I have built a site in PHP that the client now wants to move over to a IIS-hosted server. Although it's all in PHP because it was a re-build of an old static site I used ModRewrite to make all the page .html. I know IIS doesn't have a URL rewrite feature as such. What I was wondering is, is it possible to configure IIS so that a PHP page can have a .html extension?
View Replies!
View Related
Cheap Reliable Server That Can Run PHP/MySQL With Plesk
I currently have a decent server that runs around 10 websites, but 1 of those sites contributes around 99% of the total traffic. This large site is being moved onto a new server, leaving the remaining 9 sites rattling around on this big (and expensive!) server. So, I am now looking for a smaller server to handle the other smaller sites. They get minimal traffic - around 5k uniques a day.
View Replies!
View Related
Changing Register_globals From .htaccess Will Cause 500 Error When Php Run As CGI
Today I have a customer want to swich the register_globals on on his account ,,, i'm running PHPSuExec and running php as cgi not as Apache module , and as you know using php as cgi will cause internal error 500 if some one add php_flag register_globals on to .htaccess file. what is the soluation to switch register_globals on for his account only without using the .htaccess file. put in mind the php files that need the register_globals to be on is encrypted with zend , so we does not have access to it for modification. have any one have the solution?
View Replies!
View Related
Hosting Site With 10GB Download Files
I want to know the best offer for hosting my site: I've 10 GB dowloadable files zip, mp3,... I need to host at least 10 Domains and unlimited SubDomains. PHP5 and at least 10 MySQL DBs. I prefer Umlimited Bandwidth and Ulimited visitors hits. I've a forum with +22k I prefer to e-mail them weekly so I want to know outgoing e-mails limit. It will be good if there is a Shell access.
View Replies!
View Related
Downloading Files From My Site/server Faster
Ive been recieving some complaints/feedback that the download speed on my site is too slow. I test it myself and at night i download at about 60k/s, late at night, mornings its around 300kb/s Im guessing my site is basically getting high traffic and load issues in the evenings. (average daily bandwidth is around 200-300gb) So basically i need to rectify this pronto. What are the possible solutions? i thought if i bought a second cheaper server that could step in when the load gets too much for my primary server this could help out the speeds. Am i correct, are there cheaper ways of speeding things up?
View Replies!
View Related
Make Downloading Files From My Site/server Faster
Ive been recieving some complaints/feedback that the download speed on my site is too slow. I test it myself and at night i download at about 60k/s, late at night, mornings its around 300kb/s Im guessing my site is basically getting high traffic and load issues in the evenings. (average daily bandwidth is around 200-300gb) So basically i need to rectify this pronto. What are the possible solutions? i thought if i bought a second cheaper server that could step in when the load gets too much for my primary server this could help out the speeds. Am i correct, are there cheaper ways of speeding things up?
View Replies!
View Related
Securing My Site So Only Registered Users Can Download Files
I'm setting up a web site for my online music library, doing it the hard way and learning as I go! What I want to do I keep all the audio files secure so only registered users can get at them, how do I do this? FTP? permissions? Can I pass the user data from the client database somehow or do I have to set it up manually for each client? I'm using php and mysql and have a table set up with all the file locations in it and that side of things is mostly working well. Once a user gets the URL of the file how do I make sure only that user can download the file? I've tried searching the web for info but I have the sneaking suspicion I'm not asking the right question.
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
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
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
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
Apache 2.2 / Php 5 Update: Calling Files Behind Root
With my old Apache 1 and PHP4 I was able to pull files from behind the public_html using a php file without any problems. Is there a reason why this does not work with Apache 2.2 and PHP5? the piece of coding below is what grabs the image. Right now i'm just seeing a red X for each image. PHP Code: if ($private == 1) { header("Content-type: image/jpeg"); $im = imagecreatefromjpeg('/home/site1/private/' . $type . '/' . $mid . '-' . $iid . '.jpg'); imagecolorallocate($im, 255, 255, 255); imagejpeg($im); imagedestroy($im); }
View Replies!
View Related
People Uploading Much Bigger Files To My Server, That I Want (using Php)
i have free hosting server and a rule to upload 3MB file max. it works for FTP, but somehow it doesn't work for php. It seems for php the limit on my server is 100MB (no idea why) i use following directives to limit file size in php.ini : ; Maximum size of POST data that PHP will accept. post_max_size = 4M (4 just for some margin ) ; Maximum allowed size for uploaded files. upload_max_filesize = 3M and i still can find 100MB files on disk. this is part of log file from apache from the account that uploaded it to me: Code: boorako.[] someip - - [13/May/2007:12:21:22 +0200] "POST /a/redir.php?capthatag=accesscode&saveto=&path=/some/path/boorako.[]/a&comment=&domail=&email=&useproxy= &proxy=&split=&method=tc&partSize=10&redirto=/a/index.php&link=redir.php?capthatag=accesscode&saveto=&path= /some/path/boorako.[]/a&comment=&domail=&email=&useproxy=&proxy=&split=&method=tc&partSize=10&redirto= /a/index.php&link=[url] HTTP/1.1" 302 188 [url] boorako.[] someip - - [13/May/2007:12:21:35 +0200] "POST /a/redir.php?capthatag=accesscode&saveto=&path=/some/path/boorako.[]/a&comment= &domail=&email=&useproxy= &proxy=&split=&method=tc&partSize=10&redirto=/a/index.php&link=redir.php?capthatag=accesscode&saveto=&path= /some/path/boorako.[]/a&comment=&domail=&email=&useproxy=&proxy=&split=&method=tc&partSize=10&redirto= /a/index.php&link=[url] HTTP/1.1" 302 188 [url] "Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3" as the effect of this (at least i think so), there was 100MB file in his home dir. any idea how can he POST such big files even with those two directives? i have also set LimitRequestBody to 5194304 and LimitXMLRequestBody to 5194304 in apache2.conf which also should stop files being POSTED as big as 100MB. i have php 4.4.4-9, Linux Debian, apache 2.2.3 working in worker mpm, and php as fastcgi. P.S. i removed server info like IP, dir and address to not show specifics about my server in public, i put [] there.
View Replies!
View Related
Host The Php Site
I bought a server,installed windows server 2003 and PHP 5. now, the website can be seen with local IP [url] My server is behind the router, So, I've already configured port(80) forwarding to my server in the router setting. But, The website is still not working internet.
View Replies!
View Related
Hacker Adds Malicious Code To All Html And Php Files
we have been having a strange hacking problem on our server that we can not seem to find how they are managing to accompish. I am just wondering if anyone here may be able to offer any suggestions on this? The problem: On our server, a hacker has managed to add malicious code to all html and php files on two hosting accounts that we operate. These two accounts are seperate and do not share login information. This is the 2nd time this has happened within the past two weeks. Originally it was suspected that we needed to add SuPhp to prevent insecure permissions. This has been done, yet the problem continues. On all html pages, malicious javascript has been added, and on all php files malicious php code has been added. We have a lot of accounts on this server, and as mentioned only the two accounts seem to have been affected by this. What we have done to attempt to secure the server: 1) We have installed SuPhp. 2) We have ensured that all scripts on the affected websites are updated and running the latest versions. 3) We have changed all the passwords. Our server is a managed server, and our server company has been very helpful, however at the moment can not seem to pinpoint the problem. There also does not appear to be any indication via the access logs of the infected files being altered, yet they have been altered. The computers used to access these websites are clean, and do not have any malware running, which would allow a hacker to obtain any passwords. It also does not appear that the hacker was able to obtain root access. One other thing I noticed, we run Kayako on one of the sites. When this problem occurs we receive a message that Zend Optimizer is not installed on our server when attempting to login to Kayako, when in fact it is. Searching Google, I found the following link on the Zend site in which the symptoms seem to be very similar. What are the odds this could be a Zend vulnerabilty? [url]
View Replies!
View Related
Rkhunter :: 'not Found' In Local Files And Unknown For Exim And Php 5.2.5
how to fix rkhunter from; 'not found' in local files and unknown for exim and php 5.2.5. System checks * Allround tests Checking hostname... Found. Hostname is Checking for passwordless user accounts... OK Checking for differences in user accounts... OK. No changes. Checking for differences in user groups... OK. No changes. Checking boot.local/rc.local file... - /etc/rc.local [ OK ] - /etc/rc.d/rc.local [ OK ] - /usr/local/etc/rc.local [ Not found ] - /usr/local/etc/rc.d/rc.local [ Not found ] - /etc/conf.d/local.start [ Not found ] - /etc/init.d/boot.local [ Not found ] * Application version scan - Exim MTA 4.68 [ Unknown ] - GnuPG 1.2.6 [ Old or patched version ] - Apache [unknown] [ OK ] - Bind DNS 9.2.4 [ OK ] - OpenSSL 0.9.7a [ Old or patched version ] - PHP 5.2.5 [ Unknown ] - PHP 5.2.5 [ Unknown ] - Procmail MTA 3.22 [ OK ] - OpenSSH 3.9p1 [ OK ]
View Replies!
View Related
PHP Error_logs Per Site On Windows
How does one setup the PHP "log_errors" and "error_log" in php.ini to create a seperate php error log for each site? Preferably in the sites root folder. I am on a windows 2003 server with IIS, so i'm not sure if thier is any special considerations with that setup.
View Replies!
View Related
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 Replies!
View Related
Site Hacked Via Php Script Placed In WordPress Uploads Directory
First of all, I discoverd this forum during my quest to unravel the mysteries of how my site was hacked. I hope this is an appropriate forum to discuss the issues even though I am not a web hosting provider, but merely a customer of a web hosting company, hostrocket.com I have an installation of WordPress 2.1 WordPress creates a couple world writable directories such as Uploads and Cache which are owned by nobody. Apparently (according to the tech support at hostrocket.com) someone was able to insert and exectue a php script in my world writable Uploads directory. Over 40MB of scripts, executables and files were uploaded. As best I can tell, my space was being used as some sort of link farm or perhaps acting as a server in my webspace. I do not have much knowledge about these things and consequently can't talk very inetlligently about them. But I am trying to grasp what little I am able to absorb about how this could have happened, what I can do to mitigate it from reocurring in the future. Some of the stuff that was in the directory is as follows... 2421 bindz h4ckerz mass.pl p trace-kmod 2421.1 brk help.php mybindshell ptrace24 99.php coredump idf.php netcat pwned CMD.php dc.pl index.html online r0nin TMT.htm elfdump kmod2 online.tar.gz raptor TTdummyfile gcc krad3 prctl2 uselib24 bind.pl g cc.1 list.txt ptrace The "online" directory contained over 40MB of directories such as... abortion diethylpropion accounting diflucan accupril diovan acne distance-education actonel dospan actos dovonex acyclovir doxycycline adderall drug adipex drug-rehab adventure-travel drug-test adware dvd adware-spyware e-pathto affiliate-program effexor air-travel elavil aldara enalapril alprazolam equity-loan altace estradiol amaryl evista ambien fioricet amitriptyline flexeril amoxicillin flonase amoxil florida-lottery antivirus fluoxetine atenolol fosamax ativan free-poker avandia free-slots avapro free-spyware baclofen furniture bankruptcy gambling bextra home-equity-loan biaxin home-loan bingo hosting black-jack hotel blackjack hydrocodone blackjack-game images bontril imitrex britney-spears insurance-life business internet-betting buspar internet-gambling buspirone loan butalbital loans buy-hardware lortab buy-phentermine lottery california-lottery lotto captopril mesothelioma car mortgages car-insurance online-black-jack carisoprodol online-casino cars online-gambling cartia online-loan cash-loan online-pharmacy casino online-poker casino-games online-roulette casino-las-vegas online-slot celebrex payday-advances celebrex-online phentermine celexa poker celexa-online poker-chips cephalexin poker-game cialis poker-tables cigarette refinance cigarettes refinance-house cipro refinance-loan claritin refinancing clindamycin ringtones clonazepam roulette clonidine slot-machine codeine slot-machines consolidate-card slots cozaar steroids credit structured-settlement credit-card texas-holdem credit-card-debt texas-holdem-poker credit-card-debt-consolidation texas-holdem-rules creditcard texas-lottery cyclobenzaprine tramadol darvocet travel dating travel-insurance debt-consolidation ultram debtcard valium denavir viagra diazepam vicodin diclofenac video-poker didrex wagering diet-pills xanax As you can see, I was had in a BIG way. So the first thing my webhost had me do was to change ownership of the directories owned by nobody to me. Then I was able to change permissions from 777 to 755. However in so doing, I am no longer able to use the Dashboard of WordPress to upload images anymore, unless I temporarily change permissions back to 777. The other thing the tech support guy did is to create an .htaccess file with, php_flag engine off I guess this basically renders php scripts impotent from running. So without flaming me, can you help me understand how someone in a shared server environment is able to put a php script into one of my directories? What amazed me was this particular script, "99.php" actually when viewed in a browser window titled phpshell was called "c99adult v. 1.0 pre-release build #16". It basically enabled whoever had access to the URL, to view my webspace, and do all sorts of nasty things. Talk about a wake-up call! Obviously this enabled the hacker to view my config.php file and ascertain my database password and everything else. Whether he did, or whether there is a logfile of that info that could enable him to hack the database at some time in the future is unknown to me but it's really freaking me out.
View Replies!
View Related
Can Installing PHP On Windows IIS Server Crash Your Site
The company I work for unfortunately runs their site on a IIS server. I want to install some forum software, vBulletin or phpBB onto the server and run it on the same site. PHP of course needs to be installed to do this. Boss is worried that putting PHP on same server as ASP might take down the site if something goes wrong. What are the odds of this happening if I follow directions and what steps should I take to install?
View Replies!
View Related
How To Generate PHP Error.log Files In The Directory Of Error
unable to get any php5 error logs Here are my settings in the /etc/php5/apache2/php.ini file: display_errors = On display_startup_errors = Off log_errors = On log_errors_max_len = 1024 ignore_repeated_errors = Off ignore_repeated_source = Off report_memleaks = On error_log = /var/log/php5/error.log However unfortunately I never see any error log being generated in the /var/log/php5/error.log file? Also with my shared hosting site one thing which I noticed was, due to some configurations set by them, the error.log used to generate in the folder where the error occured. This is a cool thing which they used to do, but I just dont understand how did they do that.
View Replies!
View Related
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
ManageMyServices... Run.. "Forest" Run
Server been down over 14 hours..... over 50 sites down.... standard response within a few hours... we will reboot your server within the next 30 min. Sites come up for 3 minutes then down again.... Resubmit ticket... few hours later.... same response... reboot server.... same result... server still down. Last ticket submitted over 3 hours ago.... no response...server still down. No phone number... Hard to believe anyone would run a business in this manner, knowing peoples livelyhood depends on their sites being up.
View Replies!
View Related
Transferring 200 Files : Total Files Size Is 25 GB!
I couldn't keep my mouth shut (technically fingers). A customer wanted to upgrade servers and he needed a way to move the data across. Since I don't allow hard drives to be swapped, they have to do it manually all by themselves. I generally allow up-to 4 days for them to transfer data and make DNS changes, etc. But this time, I offered help! I agreed to move the data (darn me) and it just came out of me, involuntarily. God knows what just happened... but in a positive way, customer is extremely happy! So... Both servers are on cPanel - with root access (duh) 200 odd files which total to 25 GB 1 database about 100 MB in size (no biggie) I was planning on using one of my Windows 2003 servers (via remote desktop) to download the 25 GB and upload the 25 GB, but that sounds like a waste of resources and time.
View Replies!
View Related
Static Routes With Linux & Shorewall (site To Site VPN Virtual Private Network)
Attached is a (badly) drawn diagram of two sites, connected by a vpn. The site to the left, is network 10.0.0.0/24 which runs a linux server as the router for the network. The site to the right, is network 10.1.0.0/24 which runs a windows 2003 server as the router for the network. Now, my problem is, the clients behind the windows 2003 server can ping any machine on the first network because i setup a static route to route all traffic to 10.0.0.0/24 over the vpn interface. now, my problem is, only the linux server can ping any machine on the windows 2003 network, any client behind the linux server cant seem to route over the interface. I have the following route on the linux server: .....
View Replies!
View Related
|