Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Disabling Python environment



Threaded Mode | Print  

 Disabling Python environment (7 Replies, Read 8452 times)
TraXX
Group: Member
Post Group: Newbie
Posts: 6
Status:
I've tried to disable Python environment using AMPPS config checkbox on a Mac (OSX Yosemite) and after clicking on Apply settings, the system removed my httpd.conf from my conf folder.
After that the Apache server didn't run again and I had to restore Apache's default config and enable Python environment again to run it again.

I've tried several times (always with same results). So it's no way for me to disable Python environment.


Another thing (not related to this) that I've found reading Apache logs is this PHP warning notice:

PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/AMPPS/php-5.5/lib/extensions/ext/pgsql.so' - dlopen(/Applications/AMPPS/php-5.5/lib/extensions/ext/pgsql.so, 9): Library not loaded: /Applications/AMPPS/extra/lib/libpq.5.dylib\n  Referenced from: /Applications/AMPPS/php-5.5/lib/extensions/ext/pgsql.so\n  Reason: no suitable image found.  Did find:\n\t/usr/lib/libpq.5.dylib: mach-o, but wrong architecture in Unknown on line 0
IP: --   

Disabling Python environment
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Hi,

check file permission of Ampps folder
open terminal and execute the following command ls -l /Application/Ampps
Let us know the output of above command

IP: --   

Disabling Python environment
TraXX
Group: Member
Post Group: Newbie
Posts: 6
Status:
These are the results:

total 680
drwxr-xr-x@  3 Salva  admin  102 31 ene  2014 AMPPS Autologin.app
drwxr-xr-x@  3 Salva  admin  102  8 may  2014 Ampps.app
drwxr-xr-x@  3 Salva  admin  102  8 may  2014 Amupdate.app
-rw-r--r--@  1 Salva  admin    0  9 may  2014 Icon?
drwxr-xr-x@  7 Salva  admin  238  8 may  2014 Pure-FTPd
drwxr-xr-x@  16 Salva  admin  544  8 may  2014 RockMongo
drwxr-xr-x@  18 Salva  admin  612  6 may  2014 SQLiteManager
drwxr-xr-x@  10 Salva  admin  340 29 may 11:20 ampps
drwxr-xr-x@  16 Salva  admin  544 18 nov 09:39 apache
drwxr-xr-x@  19 Salva  admin  646 18 nov 10:08 conf
drwxr-xr-x@  9 Salva  admin  306  5 may  2014 extra
drwxr-xr-x@  6 Salva  admin  204 16 may  2014 mongodb
drwxr-xr-x@  18 Salva  admin  612  9 may  2014 mysql
drwxr-xr-x@  5 Salva  admin  170  5 may  2014 perl
lrwxr-xr-x    1 Salva  admin    27 16 may  2014 php -> /Applications/AMPPS/php-5.5
drwxr-xr-x@  9 Salva  admin  306 16 may  2014 php-5.3
drwxr-xr-x@  8 Salva  admin  272  5 may  2014 php-5.4
drwxr-xr-x@  9 Salva  admin  306 16 may  2014 php-5.5
drwxr-xr-x@ 113 Salva  admin  3842 21 mar  2014 phpMyAdmin
drwxr-xr-x@  3 Salva  admin  102 16 may  2014 private
drwxr-xr-x@  7 Salva  admin  238 16 may  2014 python
drwxr-xr-x@  4 Salva  admin  136 21 mar  2014 tmp
drwxr-xr-x@ 174 Salva  admin  5916 21 nov 08:00 var
drwxr-xr-x@  11 Salva  admin  374 16 may  2014 var.old
-rw-r--r--@  1 Salva  admin    4  6 may  2014 version
drwxr-xr-x@  33 Salva  admin  1122 17 nov 17:38 www
IP: --   

Disabling Python environment
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Hi,

Open Ampps Control Center go to Apache Tab.
Click on Configuration button.
Find this Line. 
Include "{$path}/python/python.conf"  and modify.

#Include "{$path}/python/python.conf"
and save then try to run Apache .

and before saving please check the file permission of this file .

ls -l /Application/AMPPS/conf/httpd.conf

let us know if you still facing the same problem. :)

IP: --   

Disabling Python environment
TraXX
Group: Member
Post Group: Newbie
Posts: 6
Status:
Editing the httpd.conf manually works.

The config file's permissions are:
-rw-r--r--@ 1 Salva  admin  20799 21 nov 10:25 /Applications/AMPPS/conf/httpd.conf

And the apache server restarted fine.
These are the logs after restarting:

[Fri Nov 21 10:27:14.575777 2014] [mpm_prefork:notice] [pid 440] AH00173: SIGHUP received.  Attempting to restart
PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/AMPPS/php-5.5/lib/extensions/ext/pgsql.so' - dlopen(/Applications/AMPPS/php-5.5/lib/extensions/ext/pgsql.so, 9): Library not loaded: /Applications/AMPPS/extra/lib/libpq.5.dylib\n  Referenced from: /Applications/AMPPS/php-5.5/lib/extensions/ext/pgsql.so\n  Reason: no suitable image found.  Did find:\n\t/usr/lib/libpq.5.dylib: mach-o, but wrong architecture in Unknown on line 0
[Fri Nov 21 10:27:14.625566 2014] [mpm_prefork:notice] [pid 440] AH00163: Apache/2.4.9 (Unix) OpenSSL/1.0.1g PHP/5.5.12 configured -- resuming normal operations
[Fri Nov 21 10:27:14.625593 2014] [core:notice] [pid 440] AH00094: Command line: '/Applications/AMPPS/apache/bin/httpd'
IP: --   

Disabling Python environment
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Hi

Which version of AMPPS you are using ?
Are you getting this issue with every version of php or with php 5.5 only ?

IP: --   

Disabling Python environment
TraXX
Group: Member
Post Group: Newbie
Posts: 6
Status:
I've tried to switch back to PHP 5.4 and doesn't show any error, so only with PHP 5.5
IP: --   

Disabling Python environment
Rishi_P
Group: Member
Post Group: Elite Member
Posts: 317
Status:
Hi,

Hi go to

go to your Application/AMPPS/conf folder.
and take backup of your php-5.5.inf file in different folder .

Now go to your AMPPS Control Center --> php (Select php 5.5 Version)
and Restore Default Configuration.

now start Apache and My SQL.
Let us know if you still facing the same issue.



IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 7:29 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.018