Apache :: Recognizing Files Coded In Python

Jan 31, 2015

I have installed mod_python and the mods-enabled directory in the Apache2 directory looks correct (links to the available directory and the .load file), but I can't get Apache2 to process Python coded files.

I am missing something, but don't know what.

View 4 Replies


ADVERTISEMENT

Apache Not Recognizing My .php Files

Jun 29, 2008

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 5 Replies View Related

Plesk 11.x / Linux :: Python Permissions To Write Files In Another Web Space On Same Server

May 15, 2014

I have a python script that generates images and is able to write them into a directory on the same web space

However, I would like the same script to write files into another directory located in the web space of another domain on the same server.

For example, script lives here...
/var/www/vhosts/domain1.com/httpdocs/scripts/myscript.py

this works...
/var/www/vhosts/domain1.com/httpdocs/scripts/images/

this fails...
/var/www/vhosts/domain2.com/httpdocs/web/images/

The directory structure already exists, so there is no need to create any new directories

I have tried setting permissions for the destination "images" directory to 777 and that didn't work.

Do I need to specify something within Plesk to enable it to write to another directory?

View 6 Replies View Related

Windows Not Recognizing A Parition

Apr 30, 2007

I have vista installed and I need a few applications to run in XP from time to time, so I decided to try to set up a dual boot config. Well unfortunately I couldn't get very far because the partition I made with disk manager, and in fact the unpartitioned free space as well, is not being seen by windows XP when I go to install it.

View 3 Replies View Related

SSH/Python

Aug 8, 2007

I am following this guide to make my sitemap:
[url]

Here is the config file I am using (edited for my site):

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!--
sitemap_gen.py example configuration script
This file specifies a set of sample input parameters for the
sitemap_gen.py client.
You should copy this file into "config.xml" and modify it for
your server.

********************************************************* -->

<!-- ** MODIFY **
The "site" node describes your basic web site.
Required attributes:
base_url - the top-level URL of the site being mapped
store_into - the webserver path to the desired output file.
This should end in '.xml' or '.xml.gz'
(the script will create this file)
Optional attributes:
verbose - an integer from 0 (quiet) to 3 (noisy) for
how much diagnostic output the script gives
suppress_search_engine_notify="1"
- disables notifying search engines about the new map
(same as the "testing" command-line argument.)
default_encoding
- names a character encoding to use for URLs and
file paths. (Example: "UTF-8")
-->
<site
base_url=[url]
store_into="domains/mydomain/public_html/sitemap.xml"
verbose="1"
>
<!-- ********************************************************
INPUTS
All the various nodes in this section control where the script
looks to find URLs.
MODIFY or DELETE these entries as appropriate for your server.
********************************************************* -->
<!-- ** MODIFY or DELETE **
"url" nodes specify individual URLs to include in the map.
Required attributes:
href - the URL
Optional attributes:
lastmod - timestamp of last modification (ISO8601 format)
changefreq - how often content at this URL is usually updated
priority - value 0.0 to 1.0 of relative importance in your site
-->
<url
href=[url]
changefreq="monthly"
priority="1"
/>

<url
href=[url]
changefreq="monthly"
priority="0.8"
/>

<url
href=[url]
changefreq="daily"
priority="0.8"
/>
<url
href=[url]
changefreq="yearly"
priority="0.8"
/>
<!-- ********************************************************
FILTERS
Filters specify wild-card patterns that the script compares
against all URLs it finds. Filters can be used to exclude
certain URLs from your Sitemap, for instance if you have
hidden content that you hope the search engines don't find.
Filters can be either type="wildcard", which means standard
path wildcards (* and ?) are used to compare against URLs,
or type="regexp", which means regular expressions are used
to compare.
Filters are applied in the order specified in this file.
An action="drop" filter causes exclusion of matching URLs.
An action="pass" filter causes inclusion of matching URLs,
shortcutting any other later filters that might also match.
If no filter at all matches a URL, the URL will be included.
Together you can build up fairly complex rules.
The default action is "drop".
The default type is "wildcard".
You can MODIFY or DELETE these entries as appropriate for
your site. However, unlike above, the example entries in
this section are not contrived and may be useful to you as
they are.
********************************************************* -->
<!-- Exclude URLs that end with a '~' (IE: emacs backup files) -->
<filter action="drop" type="wildcard" pattern="*~" />
<!-- Exclude URLs within UNIX-style hidden files or directories -->
<filter action="drop" type="regexp" pattern="/.[^/]*" />
</site>
I have put the config file and the python script file in the directory /domains/mydomain/public_html/

Now I am trying to run the script via SSH. I have logged in fine to the admin account, and I am running this command:

Code:
python domains/mydomain/public_html/sitemap_gen.py --config=config.xml
Here is what is returning:

Quote:

Reading configuration file: config.xml
[ERROR] Cannot read configuration file: config.xml
Configuration file errors -- exiting.

View 11 Replies View Related

Python On Virtuozzo

Jun 16, 2009

We are having an issue when trying to cache Fedora Core 10.

Code:

vzpkg create cache fedora-core-10-x86_64
Creation OS template cache for fedora-core-10-x86_64 template
Error: Python directory not found in /vz/pkgenv/rpm46x64
Error: Can't find environment directory /vz/pkgenv/rpm46x64: No such file or directory

The only recent changes that have been made is the Hostname. Before making this change, I was caching OS templates like it was christmas.

View 1 Replies View Related

Python On Centos 5.2

Mar 27, 2009

i have been thinking of getting dedicated server and was wondering is it easy to install python on CentOS or is it already installed?

View 8 Replies View Related

Django / Python

May 28, 2008

to enable these on a shared cpanel server (which is using php 5x, apache 2x, suphp)

python
mod_python
django

How can I enable all these 3 safely without any negative conflicts?

View 3 Replies View Related

Python Host

Nov 24, 2008

I currently host my site with Sharkspace [url] and have been very very pleased. I would recommend them without any hesitation. PHP, MySQL, Cpanel, great and affordable hosting packages.....

However, I want to start developping using Python and the Django framework.
With Sharkspace, Mod_python is not enabled. Django framework cannot be used on their shared hosting servers.

So, I need recommendations on a host who has Mod_python enabled (LoadModule python_module modules/mod_python.so)and allows Django to be installed.

I was told by Sharkspace that Django requires root access. I am not very familar with this framework as I have been using PHP and Zend Framework up until this point.

View 7 Replies View Related

Is Python Required

Dec 26, 2008

I have Python on my server and it is using the most CPU and Memory on my server than any other process. I don't believe any of my clients use it so I am planning to delete it.

I am just wondering, does CentOS 5.2 (With cPanel) require Python, or is it not required so I can delete it without any problems caused?

View 14 Replies View Related

Mysql-python

Mar 2, 2007

If a shared hosting server has mod_python enabled, can we assume that it also has the MySQLdb module installed?

I mean, whats the point in having mod_python if theres no way to connect to a database?

View 0 Replies View Related

Adventures In Updates-Yum/python Fun

Dec 27, 2007

this only shows up in Centos 5, it seems.

You do the good ole "yum update"

and...something very bad happens:
Loading "installonlyn" plugin
>> Loading "rhnplugin" plugin
>>
>>
>> Could not find any working storages.

Ok..this is one of the times google fails me..I guess because this is a fairly new problem.

If you are lucky:

Visit the rpm repo of your choice..manually download:

python-sqlite*
and
sqlite*

and force a re-install:

rpm -ivh python-sqlite* --force
rpm -ivh sqlite* --force

Sadly..I did find that..and it was tried..and did not work for me.

The fix? Ohhh...you gonna love this:

I completely removed python and everything that depends on it.

Drastic? Oh yeah. But after wasting two days with fixes that did not help...I figured this was the only way. Drastic measures were called for.

It was. It worked. You put everything back..and it is fine.

Oh..I noticed yum.3.2.1is available..and decided to give that a shot as well. It is fine.

Certainly not as much fun as the time I decided to attempt a upgrade of glib2 on a vps..but close.

View 1 Replies View Related

Disable Python In Cpanel

Aug 26, 2007

how may in disable pytion in cpanel?

View 4 Replies View Related

Need A Hosting Provider For Python, CGI, Lot Of Emails

Feb 13, 2009

I plan to develop a nice website in Python,AJAX with backend as mySQL database. This website is gonna send out a lot of notifications depending on the kind of activities that every account/logins does.

I am not very sure whats the business going to be for this website but would want to wait for few months after launching.

So, Please suggest me a cheap Hosting provider who can help me host my code in Python , MySQL database and also allow 100s of emails every day. I would also want to register a domain for my website too. Would everything comes as package?

I should also have 100GB space atleast to be prepared to grow !

I have not hosted any of my code yet though have written a lot which runs in my system only. Please guide me folks! thank you.

View 7 Replies View Related

Python Error On Virtuozzo Container

Oct 22, 2009

While Installing Applications on VPS Container On virtuozzo I`am running Into a error given below.

Operation install with the Env(s) "web209" is finished with errors: Can not install packages: exec failed: Error: python-devel conflicts with python < 2.4.3-27.el5 Error: Missing Dependency: gnutls = 1.4.1-3.el5_2.1 is needed by package gnutls-devel Error: Missing Dependency: nspr = 4.7.4-1.el5_3.1 is needed by package nspr-devel Error: /usr/share/vzyum/bin/yum failed, exitcode=1 .

View 0 Replies View Related

Linux Host Supporting Ruby, Php 5 And Python

Oct 24, 2007

Any good stable, secure Linux web host providing the same you know of?

View 3 Replies View Related

Parsing EML Files On Apache

Jul 25, 2008

to open EML files on apache webserver, actually when I load an eml (outlook email message) by using an URL, it shows the email code, it is not pasing it correctly.

What libraries (apache or system) do I need installed to parse this kind of files?

Im using apache 2.0.6.3, php 5.2.6 and RHE 5.2

View 3 Replies View Related

Where Are Previous Apache Log Files?

Apr 21, 2008

log file for one of our accounts.

I going to /usr/local/apche/domlogs and but in this folder I can found logs for today only.

How can I found previous log files?

View 2 Replies View Related

Apache :: How To Delete Files

Jun 5, 2013

My server is with Centos OS. I have a cache directory which has tons of scrap files. I am unable to delete it. rm -rf dirname gives an error.Is there any way to remove this directory quickly. 

View 6 Replies View Related

CGI Scripts(Perl/Python) Are Not Able To Run On Plesk Windows Server 2003

Jun 23, 2008

I have a Windows 2003 dedicated Server with Plesk Control panel

I am not able to execute CGI scripts(Perl/Python/CGI) on it

when I try to execute on it

I get these errors:

Access denied to invalid credentials 401 Error

Error is 401.3 ACL restrictions....

what I tried is

I have tried to change IIS settings for IUSR_name

and also I tried editing in httpdconf file for CGI settings and restarted the server...

but all of no use

I am executing these scripts in CGI-BIN folder and outside of it..

View 9 Replies View Related

Plesk 12.x / Linux :: Backup Restore Error - Python Is Not Supported

Aug 19, 2014

I cant restore my back up. Get following warnings:

Warning:

php_version 5.3 is not supported. It will be replaced with php_version 5.4 for the following service plans: Unlimited, Admin Simple, Default Domain, Default Simple, Web Presence Builder, SiteBuilder

Warning:

python is not supported. It will be disabled for the following objects: Service plan 'Unlimited', Service plan 'Admin Simple', Service plan 'Default Domain', Service plan 'Default Simple'

Warning:

The component fail2ban is not installed. It will be disabled for the following objects: Server settings

Warning:

php_version 5.3 is not supported. It will be replaced with php_version 5.4 for the following websites: swen.flugzeugbilder.orgClick to expand...

View 3 Replies View Related

Hide Files/directories On Apache

Jan 20, 2008

how can i hide all files and directories in public_html so when using apps suck Flash Get Site Explorere and similar software it will not show any file or directories in public_html.

View 5 Replies View Related

Hacker Detection On Apache Log Files

Jul 2, 2009

I have a client that is certain someone is trying to hack her web-portal. I need to set up something that will alert me on suspicious activity on the server. For example someone fiddling with requests trying to make SQL / shell .. injection and similar threats.

Does any tool (for example bash script with grep) exist that would parse the raw apache logs and report if something is suspicious. Apache logs don't show the POST data so I am talking to admin to setup dump_io apache mod that enables this.

Or am I going into wrong direction here and there is whole another way to do this? I searched the web and forums for anything like this and didn't find anything.

View 4 Replies View Related

Apache Error Log: Log Files That Exist

Jul 4, 2007

I have moved my sites from old server with Apache 1.3 to new one with Apache 2.2.4. Since that time, the error log is full of these lines:

Code:
[Wed Jul 04 05:36:32 2007] [error] [client 212.47.9.194] File does not exist: /home/domain/public_html/russia
[Wed Jul 04 05:36:39 2007] [error] [client 212.47.9.194] File does not exist: /home/domain/public_html/russia
[Wed Jul 04 05:36:45 2007] [error] [client 213.192.18.2] File does not exist: /home/domain/public_html/italy
[Wed Jul 04 05:36:57 2007] [error] [client 83.8.104.181] File does not exist: /home/domain/public_html/mexico
The access logs show even more accesses, so sometimes the same page is ok, sometimes it is logged here. The strange thing is that these files (pages) exist! They are accessible through the browser without any problem.

Do you have any idea where could be the problem? It would helped me lot, I am unable to find any real problem now, when error log is full of these.

My OS is Ubuntu 6.06. I use mod_rewrite through .htaccess. I can provide list of apache modules, if it helps.

View 3 Replies View Related

Apache 1.3 Not Parsing Any Kind Of PHP Files

Mar 24, 2007

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 9 Replies View Related

How To Avoid That Files Belong To Apache

Oct 6, 2007

I'm moving to a dedicated server for first time in my life and I have some questions that I want to share with you all.

I have run many scripts like joomla, vbulletin, etc, and I have found that when I install a module or template or when I upload images using this scripts, the permisions of this files are wrongly assigned as they belong to apache:apache instead of myuser:mygroup.

The problem is that as my new server is going to be fully managed, I am not going to have root access to chmod this files to the right myuser:mygroup and as a consecuence I'm going to be unable to dmove or delete them usinf my ftp or shh user acount.

Hope you can help me this this issue. I need to tell my hosting company what I want to do to avoid this way of working but I have no idea of how can this be solved

View 1 Replies View Related

Apache :: Making All Necessary Changes To Conf Files

May 28, 2014

I recently upgraded my Apache 2.2.22 installation on Win 8.1 to 2.4.9, making all necessary changes (I believe) to the conf files. I am puzzled that two files in the format authdigest_shm.xxxx now appear in my logs directory when the server is restarted. (Edit: there is also no httpd.pid file)I assume this is to do with running digest authentication, but is a new phenomenon since the upgrade.what conf file setting(s) have I screwed up?!

View 2 Replies View Related

Apache :: Prevent Access To Files

Mar 6, 2014

When a user enters the whole url to a file on the webserver he/she can view this file. I want to prevent this and only allow access to the files from within the application (under apache). How can I do that? I already tried:

<Directory /var/www/html/folder/files>
order deny,allow
allow from localhost
</Directory>

This works BUT the file also isn't viewable from within the application anymore.

View 1 Replies View Related

Apache :: MP4 Files Won't Play On IPhones

Oct 13, 2014

I own a VPS server running CentOS with Cpanel WHM where no one can watch videos i post on any apple product.

The file plays fine on iphones when watching it on that website. BUT if i download that mp4 file and upload it to my own server, anyone with any iphone cant watch that video on my own server. I do now modify the file in any way. It plays fine on a PC or android phone / table but not Ipad and iphone...

Here is an example of hosting the above file on my server and linking it externally on my server. [URL] ....

View 1 Replies View Related

Apache :: Tomcat - Timing Out On Web Files

Dec 15, 2013

First time configuring Apache (2.2 w/ mod_jk) and when running locally (192.168.1.x), no problem.

When configuring from a DynDns through my UVerse router, I get several JS and CSS 'not found' and of course bad rendered site.

View 5 Replies View Related

Apache :: A Way To Upload And Manage Files

Jan 25, 2014

I have a apache server, and i'd love to find a way to be able to upload files to my server, allowing me to view the files on my server or in a folder, allowing me to download these files, edit them and re-upload them, replacing them such as files like word documents. I want it to be web-based as i'll be using it for school work, so i can upload them.

View 2 Replies View Related







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