LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache error with Python on CentOS 5.8 (https://www.linuxquestions.org/questions/linux-server-73/apache-error-with-python-on-centos-5-8-a-4175422039/)

oscargim 08-14-2012 11:00 AM

Apache error with Python on CentOS 5.8
 
Hi, I just have installed an application to broadcast voice using freeswitch (http://www.freeswitch.org)

The app have a section where I can upload a CSV file containing phone numbers to broadcast, but Im having an error uploading the CSV file.

Looking at the server logs I found Python errors on Apache logs and I guess that could be the reason of the upload error (I just guess, Im not an expert)

Here is the apache log paste: http://pastebin.com/0FEJuV2d


I tried with google to find a solution but nothing :/

thanks

Valery Reznic 08-15-2012 02:23 AM

Quote:

Originally Posted by oscargim (Post 4753980)
Hi, I just have installed an application to broadcast voice using freeswitch (http://www.freeswitch.org)

The app have a section where I can upload a CSV file containing phone numbers to broadcast, but Im having an error uploading the CSV file.

Looking at the server logs I found Python errors on Apache logs and I guess that could be the reason of the upload error (I just guess, Im not an expert)

Here is the apache log paste: http://pastebin.com/0FEJuV2d


I tried with google to find a solution but nothing :/

thanks


From your log file:
Code:

[Sat Aug 11 22:31:59 2012] [error] python_init: Python version mismatch, expected '2.6.5', found '2.6.6'.
Can you downgrade your python to 2.6.5, as expected by Apache?

oscargim 08-16-2012 01:53 PM

Quote:

Originally Posted by Valery Reznic (Post 4754447)
From your log file:
Code:

[Sat Aug 11 22:31:59 2012] [error] python_init: Python version mismatch, expected '2.6.5', found '2.6.6'.
Can you downgrade your python to 2.6.5, as expected by Apache?



Guess I can try, do you know how to do it??

Valery Reznic 08-19-2012 02:41 AM

Quote:

Originally Posted by oscargim (Post 4755879)
Guess I can try, do you know how to do it??

Find python package with required version for your CentOS 5.8, then (as root)
Code:

rpm -U --oldpackage your_python.rpm


All times are GMT -5. The time now is 01:09 AM.