Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Web Hosting


Advertisements:




SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







PHP.Backdoor.Trojan


As usually I do monthly scan to all files on my site,today I download all backup site into my PC,then scanning them using Norton Antivirus and on one site files Norton detected PHP.Backdoor.Trojan.

I take a look file location and found current file with name xTgsj78Jn.txt

Then I go to my server where site hosted,and i go to the directory and found file above stay on there,I try many time to delete it but always get an error message "Permission denied",I try to change permission but always returned an error.

When deleted it i use command rm -r with root access,then I do ls -l and found details file like below.

-rwxrwxrwx 1 nobody nobody 137787 Mar 19 20:14 xTgsj78Jn.txt*

Please help me to delete this file.

FYI this file uploaded to my hosting file site.


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Trojan C99Shell
I just installed zen cart on my webhosting and after few days later i saw some file written like core1405.php and when i open to view the file it is actually trojan c99shell.

I have deleted all of the core file. Now how can i prevent it from happen again? Cause it is too much work to clean up the hosting server.

View Replies!   View Related
What To Use To Scan For Trojan?
We have a client claming that she gets a Trojan warming when she trys to access her website but using the Trojan scan in cpanel doesn't show anything.

What can we use to scan for Trojan?

View Replies!   View Related
LKM Trojan?
I just installed a fresh copy of centos 4.5, updated some programs and installed chkrootkit. When i run # ./chkproc, it shows the following output:

# ./chkproc
You have 14 process hidden for readdir command
You have 14 process hidden for ps command

Searching for LKM trojans shows the following output:
# ./chkrootkit -x lkm

EXE 9994: /usr/sbin/named
CWD 9995: /var/named
EXE 9995: /usr/sbin/named
CWD 9996: /var/named
EXE 9996: /usr/sbin/named
CWD 9997: /var/named
EXE 9997: /usr/sbin/named
CWD 9998: /var/named
EXE 9998: /usr/sbin/named
CWD 26293: /var/lib/mysql
EXE 26293: /usr/sbin/mysqld
CWD 26294: /var/lib/mysql
EXE 26294: /usr/sbin/mysqld
CWD 26295: /var/lib/mysql
EXE 26295: /usr/sbin/mysqld
CWD 26296: /var/lib/mysql
EXE 26296: /usr/sbin/mysqld
CWD 26297: /var/lib/mysql
EXE 26297: /usr/sbin/mysqld
CWD 26298: /var/lib/mysql
EXE 26298: /usr/sbin/mysqld
CWD 26299: /var/lib/mysql
EXE 26299: /usr/sbin/mysqld
CWD 26300: /var/lib/mysql
EXE 26300: /usr/sbin/mysqld

When i stop mysql and named, and run # ./chkrootkit -x lkm again, it doesn't show anything. When i turn mysql and named back on, it starts complaining about compromises again.

Can it be a false alarm, or should i really be worried? What do you advise me to do now?

View Replies!   View Related
Trojan :: How To Clean Server?
my whm Trojan scanner found 23 possible Trojans.

how can i clean my server?

View Replies!   View Related
Trojan-Downloader.JS.Psyme.hz
I have an hosting account at OXEO.com and I have trojan problems on all my websites

The index files of all my websites show a Trojan program called Trojan-Downloader.JS.Psyme.hz

I checked my websites on Google and Google is warning users for this kind of problems for one of my websites

Does anybody here has experienced the same problem?

View Replies!   View Related
How-to - Rootkit Scan (trojan Etc)
What is a rootkit? The following link is a very good read to answer that question.

http://linux.oreillynet.com/pub/a/li...4/rootkit.html

In Summary, a rootkit is a trojan installed on your Linux server after someone has broken into it. These files are used to cover the hackers tracks, and to give the hacker tools to do more dirty work from your server.

Usage:

1. su - (change to root user)
2. mkdir /usr/local/chkrootkit
3. wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
4. tar -xvzf chkrootkit.tar.gz
5. cd chkrootkit*
6. cp * /usr/local/chkrootkit
7. cd /usr/local/chkrootkit
8. make sense

Now scan your system:

1. cd /usr/local/chkrootkit
2. ./chkrootkit

chkrootkit may from time to time give false positives. If you ever get a positive or "infected hit" scan a second time. If you do get a positive hit, google the hit to research the issue and steps to correct.

Part 2 - automated chkrootkit, and emailed results.

I'm lazy, and like my server to do the work for me so I have it scan every day, and email me the results.

Usage:

1. vi /etc/cron.daily/chkrootkit
2. add the following code.

Code:
#!/bin/bash
(cd /usr/local/chkrootkit; ./chkrootkit -q 2>&1 | mail -s "Daily chkrootkt scan" you@yourdomain.com)
3. chmod 0755 /etc/cron.daily/chkrootkit

This will email you@yourdomain.com every morning with your chkrootkit results. the -q option will only show you exploits.

Removal:

If you don't like getting the emails or just want to remove this from your server:

1. rm /etc/cron.daily/chkrootkit
2. rm -rf /usr/local/chkrootkit

All files will now be deleted from your server.

View Replies!   View Related
15 POSSIBLE Trojan Detected WHM
i have an site on my server when i open it the kaspersky anti viruss detect there is an trojan in this site .. ( see the picture in the attachment )

and i checked the server from the whm and there is result 15 POSSIBLE Trojans Detected

How i can solve this ?? and remove this trojans .

View Replies!   View Related
Trojan :: 687 POSSIBLE Trojans?
I just ran a scan for trojan horses in WHM and it came up with "687 POSSIBLE Trojans". WTH? Are these real trojan horses? If so, how do I remove them?

View Replies!   View Related
How To Remove Virus/Trojan
how can I remove a Virus/Trojan from my website?

View Replies!   View Related
Possible Trojan List By WHM - Do I Need To Worry?
I ran the Trojan scan in WHM and it came up with the list below. I have a strong feeling WHM is mis-reporting these as trojans, but I thought I would ask the experts here:

Scan for Trojan Horses

Appears Clean

/dev/stderr

Scanning for Trojan Horses.....

Possible Trojan - /usr/bin/cpan
Possible Trojan - /usr/bin/instmodsh
Possible Trojan - /usr/bin/prove
Possible Trojan - /usr/bin/xmlcatalog
Possible Trojan - /usr/bin/xmllint
Possible Trojan - /usr/bin/xml2-config
Possible Trojan - /usr/lib/libxml2.la
Possible Trojan - /usr/bin/mysqlhotcopy
Possible Trojan - /usr/bin/Wand-config
Possible Trojan - /usr/bin/animate
Possible Trojan - /usr/bin/compare
Possible Trojan - /usr/bin/composite
Possible Trojan - /usr/bin/conjure
Possible Trojan - /usr/bin/convert
Possible Trojan - /usr/bin/display
Possible Trojan - /usr/bin/identify
Possible Trojan - /usr/bin/import
Possible Trojan - /usr/bin/mogrify
Possible Trojan - /usr/bin/montage
Possible Trojan - /usr/bin/curl-config
Possible Trojan - /usr/bin/curl
Possible Trojan - /usr/lib/libcurl.so.3.0.0
Possible Trojan - /usr/lib/python2.3/site-packages/libxml2mod.la
Possible Trojan - /usr/lib/python2.3/site-packages/libxml2mod.so
Possible Trojan - /usr/sbin/pureauth
25 POSSIBLE Trojans Detected

Is there anything that looks fishy here?

View Replies!   View Related
Websites Infected With Trojan How To Solve?
i see my websites are infected with some trojan.

there are some iframe tag simlilar to this in all index files

<iframe src="http://traff<<removed>>.cn/in.cgi?27" width=100 height=80></iframe>
any idea how might this iframe inserted in my codes.

i have tried to format my systems and remove all saved ftp passwords , but still this virus is comming back and the strange thing is i have website on different servers infected with same virus
any idea how this is happened and how to avoide this?

View Replies!   View Related
Trojan-Downloader.JS.Psyme.hz Remover
can any body help me with the Trojan-Downloader.JS.Psyme.hz remover?

i can't find an remover for linux server for this trojan.

View Replies!   View Related
Trojan-Clicker.HTML.Iframe.g In My Website? What Is This??
I have a website and all works fine, but an user said me that uses kaspersky said me my website has an trojan i don't understand how this is possible, and i'l really worried.

the trojan that appears to my user is:

Trojan-Clicker.HTML.Iframe.g

someone know why i have this trojan?

Now the users refuses to open my website!! i'm more than worried

this is an printscreen of the error: ...

View Replies!   View Related
Trojan Detected On Initial Load Of Site
I have 2 reseller accounts with one provider, and in the last several days I have noticed that when you visit the site for the first time, my AV software detects a trojan on the site, but the code & html files are 100% clean!

I'm suspecting that there is something being injected into the scripts from the server daemons that's either running or something else.

Anyone have any suggestions?

View Replies!   View Related
Trojan-Clicker.HTML.IFrame.amh
I am not that technically proficient so I have to resort to shared hosting solutions...I am currently with Bluehost.

Problem: I have a small site with minimal needs in terms of storage and bandwidth, but the site is controversial and gets hacked and attacked a lot.

I need a shared hosting provider which ranks higher than most in terms of security.

Recently the site was attacked such that any user going to the site was infected with Trojan horse viruses.

Donno if it's useful or not but here are the files from my PC antivirus which was infected when I went to the site with IE:


File generated by Rogers Online Protection Anti-Virus

C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE5PG8E0SM0gifimg[1].htm Trojan-Clicker.HTML.IFrame.amh
Deleted 11/5/2009 12:21:25 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE5GC9JZWI3gifimg[2].htm Trojan-Clicker.HTML.IFrame.amh
Deleted 11/5/2009 12:21:27 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE5QBPA1ELgifimg[1].htm Trojan-Clicker.HTML.IFrame.amh
Deleted 11/5/2009 12:21:27 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE56SLECSUQgifimg[5].htm Trojan-Clicker.HTML.IFrame.amh
Deleted 11/5/2009 12:21:28 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE5EKTEAS82gifimg[5].htm Trojan-Clicker.HTML.IFrame.amh
Deleted 11/5/2009 12:21:28 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE5P5098OY4gifimg[4].htm Trojan-Clicker.HTML.IFrame.amh
Deleted 11/5/2009 12:21:29 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE5IPGNWAB0gifimg[1].htm Trojan-Clicker.HTML.IFrame.amh
Deleted 11/5/2009 12:21:30 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE55VT8B104gifimg[1].htm Trojan-Clicker.HTML.IFrame.amh
Deleted 11/5/2009 12:21:30 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE543XUDX83gifimg[2].htm Trojan-Clicker.HTML.IFrame.amh
Quarantined 11/5/2009 12:21:31 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE56SLECSUQgifimg[5].htm Trojan-Clicker.HTML.IFrame.amh
Quarantined 11/5/2009 12:22:18 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet

View Replies!   View Related
Prevent Of Execution Trojan Shell Scripts, Like R57shell And Other?
Which configuration for php and server that prevent execute shell scripts?

Which funstions you recommend to disable?

Like shell_exec, passthru, proc_open, proc_close, proc_get-status, proc_nice, proc_terminate, exec, system, suexec, popen, pclose, dl, ini_set, virtual, set_time_limit

View Replies!   View Related
/tmp/clamav-77e7bfdbb2d3872b/test2.exe: Trojan.Taskkill.A FOUND
What is the mining of following lines in temp folder. If i have been check daily /tmp folder
many /tmp/clamav are presented in mail server, and occupied the large amount of space in temp folder

/tmp/clamav-77e7bfdbb2d3872b/test1.exe: Worm.Mydoom.U FOUND

/tmp/clamav-77e7bfdbb2d3872b/test2.exe: Trojan.Taskkill.A FOUND

/tmp/clamav-77e7bfdbb2d3872b/test3.exe: Worm.Nyxem.D FOUND

/tmp/malware.zip: Infected.Archive FOUND

View Replies!   View Related
Trojan Activity - Running Perl With High CPU Usage, With User Apache
Running programs named Perl with Heavy CPU usage, with the ownership of user apache.

We found the problem on Fedora 3 and Fedora 6.

In our case, it was the result of a Trojan activity.

Quick Solution

Check the cron jobs of user apache
crontab -u apache -e
*/1 * * * * perl /tmp/.tmp/tmpfile
delete the cronjob entry.
Also delete the file /tmp/.tmp/tmpfile
also added "apache" to the file /etc/cron.deny

That's all

Problem and solution in detail....

View Replies!   View Related
Antivirus/trojan Remover/worms Remover For Servers?
You buy an anti virus for your computer , you run it it checks and get rid of Trojans and worms

OK fine

what about a dedicated server or vps?

how do you do that? what product people use to run and anti virus and get rid of all those worms and Trojans?

View Replies!   View Related
Windows- PHP Exploit Being Used To Render All PHP Sites Useless
This has been happening for about 6 months, someone has been exploiting my windows server and causing 300 php.exe processes to run, therefore making the CPU usage go to 100% and cause all php sites to not function. It is a perl script, and I had gotten ahold of the explot, but am unsure how to block it,

what the following is doing, and how to block it.. once I find the script again I will add it to the post..

I am using Plesk on my box.

View Replies!   View Related
Php Includes Issue On Linux Server With Apache 2.0.63 / Php 5.2.6
I am having some trouble with getting 'include' working. I have a new dedicated server running Apache 2.0.63 and PHP 5.2.6. Local includes on the same domain are running ok, but remote includes are throwing a problem. On the many sites we plan to host on this servber we use a central 'webmaster' page called as an include from a specific site (also on the same server).

I need to edit the PHP.ini and /or recompile the PHP with the appropriate modules to do one of the following...

1 (ideally) - allow includes from any site that is held on this dedicated server

2. allow includes from specified websites

3. simply allow remote includes

right settings to get one of these

options running and solve my problem?

View Replies!   View Related
Update Php And Website Showing Php Code
I have update php successfully 5.2.6 to 5.2.9.

-bash-3.2# php -v
PHP 5.2.9 (cli) (built: Apr 10 2009 00:53:01)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

i already restart the httpd but everytime I go to my website, php page is now showing my php page as php code. :/

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
Php Passthru() Works From PHP CLI But Not Web
php passthru() works from PHP CLI but not web

I have a script which I use to restart processes and I am trying to make it work by clicking a button on the word. It works from running it from php command line but I can never seem to get it to work through the click of a button. Does anyone know what may be the cause of this?

here is some other observations:

old php version 4 seems to work fine, but ever since around 4.3+ it just won't work from the web.

View Replies!   View Related
Apache/MySQL/PHP Issue - PHP Not Loading
I've got a server that was running Apache 2.0/PHP 5.2.5 & MysQL 5.0 just fine, however I needed to upgrade to a newer version of MySQL.

So I uninstalled MySQL 5.0 and installed MySQL 5.1, copied the MySQLlibs over, and recompiled Apache/PHP with easyupdate. Apache & MysQL both start/run fine without errors, however PHP files don't load. Just get black pages (HTML works fine obviously).

I went ahead and updated to Apache 2.2 & PHP 5.2.6 while I was at it, but that doesn't change things. I'm not sure why uninstalling MysQL & reinstalling would break any dependencies, but looks like thats the case. Perhaps I need to reinstall some libraries?

Or would it be easier just to reinstall Apache/PHP entirely? I have no data.

View Replies!   View Related
PHP Bug- PHP Can't Resolve Domains, Server Can
My VPS was a clean build 2 weeks ago and so far i have installed cpanel and configured everything and added accounts. I began that one of my scripts that uses gethostbyaddr($ip) was failing to resolve any of the ip's it received. I made another PHP file to test this, with this code:

PHP Code:

 <?phpecho file_get_contents[url];?>

Resulting in:

Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: Name or service not known

The thing is, the VPS is resolving domains just fine

I can ping, send emails, even dig:

Code:
[root@server etc]# dig google.com

; <<>> DiG 9.2.4 <<>> google.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34548
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 4, ADDITIONAL: 4

;; QUESTION SECTION:
;google.com. IN A

;; ANSWER SECTION:
google.com. 300 IN A 64.233.167.99
google.com. 300 IN A 64.233.187.99
google.com. 300 IN A 72.14.207.99

;; AUTHORITY SECTION:
google.com. 343652 IN NS ns2.google.com.
google.com. 343652 IN NS ns3.google.com.
google.com. 343652 IN NS ns4.google.com.
google.com. 343652 IN NS ns1.google.com.

;; ADDITIONAL SECTION:
ns1.google.com. 343143 IN A 216.239.32.10
ns2.google.com. 343143 IN A 216.239.34.10
ns3.google.com. 343143 IN A 216.239.36.10
ns4.google.com. 343143 IN A 216.239.38.10

;; Query time: 62 msec
;; SERVER: 83.149.80.123#53(83.149.80.123)
;; WHEN: Tue Jul 24 04:49:35 2007
;; MSG SIZE rcvd: 212

I have no clue what's up, and i think there must be a guru here that has an idea of what is going on?

View Replies!   View Related
Alias To A Php Script (php Suexec Installed)
i install roundcube webmail (php)

i want to add an alias like /mail for all domain to /usr/src/roundcube

i add this command in httpd.conf:

Quote:

Alias /mail /usr/src/webmail

but because suphp installed , apache run it under root user (or user assigned to it) and suphp produce "500 Internal server Error"

View Replies!   View Related
Php Not Updating After Php Update On Centos
im trying to update my php version to 5.2+ so i can run phpmyadmin on my server. Ive tried two different methods both produced same results. First method was to download libxml2-2.7.3 and then do ./configure, make,etc then i download php, ./configure, make install, etc. At first i had to yum install make, then a c complier cause make and ./configure didnt work before that. After everything seemed to work fine until the end when it said you may have found a bug on php would you like to submit it? So obviously the php version didnt update at all.

Next i tried adding a repo that already contained php-5.2.5 and then yum install php since centos only seems to support regular yum install up to php version 5.1.6. i did rpm and installed php and thought sweet ive updated php. Ran php -v and i am still running php version 5.1.6.

View Replies!   View Related
Phpinfo.php.gif Executing Php
Having this problem on chroot'ed sites in Ensim.

This is what I have in my php.conf:

Code:
[root@ns1 conf.d]# cat /etc/httpd/conf.d/php.conf
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

LoadModule php5_module modules/libphp5.so

SetOutputFilter PHP
SetInputFilter PHP

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
This prevents file.php.gif from executing in a non-chrooted site, but in my chrooted sites, file.php.gif will execute as a PHP file. Any idea why? Some other config I have to change?

View Replies!   View Related
Php.ini Default For Apache 1.3.39 Php 5.2.5
my php.ini is blank

if maybe please take one php.ini default :-)

View Replies!   View Related
1.com/file.php, 2.com/file.php Where File.php Is Hosted On Main.com/file.php
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 Replies!   View Related
Fast CGI PHP And Normal CGI PHP In Windows 2003
I have these two options when installing PHP 5.2.6 in Windows 2003, is there any problem or advantages/disadvantages if I use fast CGI PHP rather than CGI PHP?

View Replies!   View Related
Php 4 Automatically Becomes Php 5
we compile a php 4 with all the modules that we require. However, after a day or so, it automatically becomes a fresh compilation of php 5. We then recompile to php 4, but same thing, after a day or so it become php 5 again. We've checked cron, and there's nothing to do with recompiling php.

View Replies!   View Related
Installing Php 5 Together With Php 4
my server running freebsd 6.2

i want to installing PHP 5 so my server can run 2 version of PHP (4 and 5)

im following the step here [url]

installing was successful

[root@s1 /usr/local/apache/logs]# /usr/local/cpanel/cgi-sys/php5 -v
PHP 5.2.1 (cgi) (built: Mar 30 2007 17:07:11)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

but when i try to running phpinfo for it, its show me an error

i grep the error from error.log and got this

[Fri Mar 30 17:42:47 2007] [error] [client 202.65.236.10] Premature end of script headers: /home/uletbulu/public_html/info.php
[Fri Mar 30 17:42:47 2007] [error] [client 202.65.236.10] File does not exist: /home/uletbulu/public_html/500.shtml
[Fri Mar 30 17:44:07 2007] [error] [client 202.65.236.10] Premature end of script headers: /usr/local/cpanel/cgi-sys/php5
[Fri Mar 30 17:44:07 2007] [error] [client 202.65.236.10] File does not exist: /home/uletbulu/public_html/500.shtml

but for php 4 there is no problem at all
or the syntax for php 5 not using phpinfo(); anymore?

[url]
[url]

View Replies!   View Related
PHP 5.2.2 And PHP 4.4.7 Released
Quote:

Security Enhancements and Fixes in PHP 5.2.2 and PHP 4.4.7:

* Fixed CVE-2007-1001, GD wbmp used with invalid image size (by Ivan Fratric)
* Fixed asciiz byte truncation inside mail() (MOPB-33 by Stefan Esser)
* Fixed a bug in mb_parse_str() that can be used to activate register_globals (MOPB-26 by Stefan Esser)
* Fixed unallocated memory access/double free in in array_user_key_compare() (MOPB-24 by Stefan Esser)
* Fixed a double free inside session_regenerate_id() (MOPB-22 by Stefan Esser)
* Added missing open_basedir & safe_mode checks to zip:// and bzip:// wrappers. (MOPB-21 by Stefan Esser).
* Limit nesting level of input variables with max_input_nesting_level as fix for (MOPB-03 by Stefan Esser)
* Fixed CRLF injection inside ftp_putcmd(). (by loveshell[at]Bug.Center.Team)
* Fixed a possible super-global overwrite inside import_request_variables(). (by Stefano Di Paola, Stefan Esser)
* Fixed a remotely trigger-able buffer overflow inside bundled libxmlrpc library. (by Stanislav Malyshev)

Security Enhancements and Fixes in PHP 5.2.2 only:

* Fixed a header injection via Subject and To parameters to the mail() function (MOPB-34 by Stefan Esser)
* Fixed wrong length calculation in unserialize S type (MOPB-29 by Stefan Esser)
* Fixed substr_compare and substr_count information leak (MOPB-14 by Stefan Esser) (Stas, Ilia)
* Fixed a remotely trigger-able buffer overflow inside make_http_soap_request(). (by Ilia Alshanetsky)
* Fixed a buffer overflow inside user_filter_factory_create(). (by Ilia Alshanetsky)

Security Enhancements and Fixes in PHP 4.4.7 only:

* XSS in phpinfo() (MOPB-8 by Stefan Esser)

As always get the source code from php.net and compile away.Or wait for your distro to put out an updated package.

View Replies!   View Related
Yum Install Php Or Manually Install Php
What difference between yum install php or manually install php from scrach (build, make and install)?

I know manually install could configure lots of parameters and paths, like --iconv, --mbsting, etc. I don't know anything behind yum install php. If I want to install php everything in the following:

./configure --prefix=/usr/local/webserver/php --with-config-file-path=/usr/local/webserver/php/etc --with-mysql=/usr/local/webserver/mysql --with-mysqli=/usr/local/webserver/mysql/bin/mysql_config --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-debug --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-sendmail=/usr/sbin/sendmail

View Replies!   View Related
PHP As Apache Module Vs. PHP As CGI Module
What are the advantages/disadvantages of running PHP as Apache module vs. running PHP as CGI module on your server?

View Replies!   View Related
Index.php Is Not Working But Index.php? Is Ok
I recompiled apache and php due to some problems. Now apache and php is running and I have a VB forum running fine. However, one folder has a PHP page named index.php when I type its URL I get it downloaded and it is not executed directly from the server.

when I add "?" to the end of the URL[url]" it runs with no problems!

Is it something wrong with httpd.conf or what?

View Replies!   View Related
PHP
Go to: [url]

Quote:

File Line Command Message
common_functions.php 372 file_exists(/proc/swaps) the file does not exist on your machine

This is a CentOS VPS.

View Replies!   View Related
PHP
I'm currently coding a new PHP script, which is more or less just emailing me a form back from a HTML page.

My simple (first hehe) question is, when the email is actually delivered to my inbox, it appears as from "nobody"

How can I change this so it comes from the $email variable i.e. $email = $_POST['Email']; but inserting that into the mail function?

View Replies!   View Related
PHP 5.2.3
I'm having some issues with PHP 5.2.3 that I need some help with.

I have been attempting to upgrade PHP on a server that, as of right now, has PHP 5.2.1.

When I configure/make/make install PHP 5.2.3, every PHP page on the server gives an HTTP 500 error. In Apache's error_log I see these errors:

Code:
[Sat Jun 16 18:10:28 2007] [error] [client x.x.x.x] malformed header from script. Bad header=<?xml version="1.0" encoding=": /home/juan/public_html/radioblog/BelindaStyle/playlist.php
[Sat Jun 16 18:10:28 2007] [error] [client x.x.x.x] File15] malformed header from script. Bad header=<table width="400px" border="0: /home/samurais/public_html/pruebas/crear_noticia.php
[Sat Jun 16 18:10:29 2007] [error] [client x.x.x.x] malformed header from script. Bad header=<head>: /home/webera/public_html/index.php
[Sat Jun 16 18:10:30 2007] [error] [client x.x.x.x] malformed header from script. Bad header= <head>: /home/itech/public_html/index.php
[Sat Jun 16 18:10:30 2007] [error] [client x.x.x.x] malformed header from script. Bad header= <head>: /home/enoyx/public_html/deathnote/index.php
[Sat Jun 16 18:10:31 2007] [error] [client x.x.x.x] malformed header from script. Bad header= <head>: /home/enoyx/public_html/deathnote/index.php
The configure line I use for PHP (Which works fine with 5.2.1) is:

Code:
./configure --prefix=/usr --with-xml --enable-bcmath --enable-calendar --with-curl --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gettext --enable-magic-quotes --with-mysqli --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --with-zlib
I've this noticed in PHP 5.2.3's changelog:
Quote:

Changed CGI install target to php-cgi and 'make install' to install CLI when CGI is selected.

PHP is installed as CGI. (It's a server with cPanel) The only thing I can think of is something with that change to php-cgi, but I do not know. When I revert back to 5.2.1 from 5.2.3 the 500 errors stop.

Does anyone have any ideas as to what is wrong?

Server's OS is CentOS 4.5 and is using Apache version 1.3.37.

View Replies!   View Related
PHP 4.4.7 To 5.2.4
I want to upgrade PHP from 4.4.7 to 5.2.4

View Replies!   View Related
Php 4.4.7
I'm running a cpanel server on CentOS 4.5 32-bit with eAccelerator installed. How do I ugprade PHP 4.4.6 to version 4.4.7 ? Do I need to recompile Apache and/or eAccelerator?

View Replies!   View Related
PHP
I have a PHP script that need's to execute some critical commands such as reboot, halt, start some services, stop another ones etc. I was planning to do this with shell_exec() command, but is there any config to Apache or PHP config files that I need to make before this?

View Replies!   View Related
Re-Compiling PHP
I was recently faced with a problem, i had to install some extensions which were not included by default with php (libcurl being one of them). I didn't have a clue what to do, but because my dedicated server is running debian, i had to force myself to learn.

Anyway, back to the point. I already have php5 running (but it needs to be re-compiled) and i have downloaded libcurl. I used apt-get install php5-curl and that took care of it. The questions are:

To recompile do i need to remove the old installation of PHP before compiling it again to add the extensions?

Do i need enable the extensions like mysql and stuff or do they install as default if not specified, im guessing i would need to specify everything?

Im used to downloading a pre compiled package, running the installer and away we go, actually its MAMP on OSX. I remember in windows you could just add the extension in the .ini i later learned in OSX and Linux its not as easy.

View Replies!   View Related
Ffmpeg - Php
I had is running it on my php4.. I upgraded to php5 using easyapache but now its not working.. Its has the ffmpeg.So in the extenuion folder and php.ini has the extension folder and the extension defined.. Any solution

View Replies!   View Related
Php Imagecreatefrompng
I'm in the process of cloning a feature from a text based game. They have what you call userbars with info on them, but I can't figure out how they did it... I tried just using an iframe on the link to the userbar but its crappy. Then I tried using the iframe in the php imagecreatefrompng to create an image from it, but it doesnt read <font>'s <iframe>'s etc... only plain text. Now I know KNOW there using php imagecreatefrompng but I have NO clue how there processing the colors and custom stuff for names and stuff.

Here's my code.

Code:
<?php
require "global_func.php";
include "config.php";
global $_CONFIG;
define("MONO_ON", 1);
require "class/class_db_{$_CONFIG['driver']}.php";
$db=new database;
$db->configure($_CONFIG['hostname'],
$_CONFIG['username'],
$_CONFIG['password'],
$_CONFIG['database'],
$_CONFIG['persistent']);
$db->connect();
$c=$db->connection_id;
if(isset($_GET['id']) AND ctype_digit($_GET['id'])) {
$id = mysql_escape(trim($_GET['id']));
}
else {echo" Invalid Action";}
if($id) {


$query = sprintf("select level, username,money from users where userid = %u",$id);
$result = mysql_query($query);

$data = mysql_fetch_array($result);
$info ="<iframe src='http://www.evilpirates.com/userbar.php?id=1'></iframe>";

// Create a 400x18 image
$im = imagecreatetruecolor(400, 18);
$image = imagecreatefrompng("images/isonline.png"); // Get a background for jpg it is imagecreatefromjpg()
imagealphablending($image, true); // setting alpha blending on ~~~ remove if not using png
imagesavealpha($image, true); // save alphablending setting (important) ~~~ remove if not using png
$black = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);

// Path to our ttf font file
$font_file = 'arial.ttf'; // Any type of TTF font can take place as it is defining it to an image.

imagefttext($image, 7, 0, 2, 10, $black, $font_file, $info);
// I S R L T C F TX
/*************************
I= Background image
S= Font Size
R= Right Border
L= Left Border
T= Top Border
C Font Color* Colour
F File to load eg.. arial.ttf
TX Text Info
*/
// Output image to the browser
header('Content-Type: image/png');

imagepng($image);
imagedestroy($image);
}
else{echo"<br /> die";}
?>
And here is the code to make the userbar.

Code:
<?
require "global_func.php";
//if($_SESSION['loggedin']==0) { header("Location: login.php");exit; }
$userid=$_SESSION['userid'];
//require "header.php";
//include "who.php";
include "config.php";
global $_CONFIG;
define("MONO_ON", 1);
require "class/class_db_{$_CONFIG['driver']}.php";
$db=new database;
$db->configure($_CONFIG['hostname'],
$_CONFIG['username'],
$_CONFIG['password'],
$_CONFIG['database'],
$_CONFIG['persistent']);
$db->connect();
$c=$db->connection_id;
$result=$db->query("SELECT u.*,c.* FROM users u LEFT JOIN cities c ON u.location=c.cityid WHERE u.userid={$_GET['id']}");
$worked= $db->fetch_row($result);
$hpperc=(int) ($worked['hp']/$worked['maxhp']*100);

print "
<style>
#bar{
font-size: 12px;
font-family: 'Tahoma';
padding: 4px;
}
</style>
<table style='width: 100%;' height='10' id='bar'>
<tr>
<td bgcolor='black' style='border: 1px solid #1d4e80;'>".nameformat($worked['userid'])."</td>
<td bgcolor='black' style='border: 1px solid #1d4e80;'><font color=white>Lvl: {$worked['level']}</font></td>
<td bgcolor='black' style='border: 1px solid #1d4e80;'><font color=white>HP:</font> <font color=#00ff00>{$hpperc}%</font></td>
<td bgcolor='black' style='border: 1px solid #1d4e80;'><font color=white>{$worked['cityname']}</font></td>
</tr>
</table>";
?>

View Replies!   View Related
Zend And PHP
I currently have Suhosin/eAcc installed. Can I get Zend installed as well?

View Replies!   View Related
Nginx And Php
i dunno if any one here can help (im hoping some one can) but basically i have installed nginx onto a freebsd server, added 2 domains to this webserver.

the first domain works correctly and loads up all php files etc how ever the second domain wont.

its pretty confusing as both configs are the same, if i comment out the working config the non working one will work perfect.

i have uploaded a copy of the configs onto

www f1colo com / config.txt

View Replies!   View Related
How To Upgrade To PHP 6
I have a test VPS set-up, and I wish to upgrade to PHP 6 to test out my pre-existing websites (and make any necessary changes pro-actively).

Can anyone point me in the direction of how to upgrade it (and then configure Apache 2.2, MySQL 5 etc as needed)?

View Replies!   View Related
Server Can't Use/see What's After The .php
I just moved my oscommerce installation and now it seams like it can't see what's after the .php. If I write index.php I get to that page, but regardless of if I write anything after (or click on any link) I get to the same page. Please help, what do you think it could be?

The adress is [url]

The server is a linux server with HTTPD/MySQL installed.

View Replies!   View Related
PHP 5.2.8 Update
Did anyone have this problem when upgrade to PHP 5.2.8?

This is the error that i got when i upgrade from PHP 5.2.6 to 5.2.8.

"Failed loading C:PHP5ioncubeioncube_loader_win_5.2.dll PHP Warning: PHP Startup: Unable to load dynamic library './ext/php_mssql.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library './ext/php_msql.dll' - The specified module could not be found. in Unknown on line 0 "

I don't have Ioncube install and when i upgrade from PHP 5.2.5 to 5.2.6. I didn't have the above problem. Is Ioncube a included .dll in for the Windows package? How do i fix the above error? Is there any problem with PHP 5.2.8? Is it stable?

My server is Win2003 Standard/IIS6.

View Replies!   View Related
How To Allow PHP.ini
how I can allow customers to place a PHP.ini in certain directories to override some basic settings like "upload_max_filesize" and what not.

I have seen this done before but not sure how to get it working.

View Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved