Apache fails to start as Windows service with mod_wsgi - windows

I'm using Apache 2.4, Python 3.5 and appropriate mod_wsgi from Gohlike binaries page, everything is 64-bit. Apache works as intended when it's started manually, but when I'm trying to start it as service it fails and produces
httpd.exe: Syntax error on line 180 of C:/Apache24/httpd.conf: Cannot load c:/Users/<Username>/AppData/Local/Programs/Python/Python35/Lib/site-packages/mod_wsgi/server/mod_wsgi.cp35-win_amd64.pyd
into server: \xcd\xe5 \xed\xe0\xe9\xe4\xe5\xed
\xf3\xea\xe0\xe7\xe0\xed\xed\xfb\xe9 \xec\xee\xe4\xf3\xeb\xfc
(Specified module could not be found).
to Windows event log.

Problem is solved. The error occured because Python installation wasn't system-wide.

Add python to path before install
set PATH=E:\python35;%PATH%
httpd.exe -k uninstall
httpd.exe -k install

Related

Getting Error: pexpect not installed, try: pip install pexpect

Configuring Rundeck remote windows node using py-winrm. Successfully configured using Basic Auth, then trying to configure to use Kerberos I started getting an error meeting the requirements for Py-Winrm.
Rundeck 3.3.11 with py-winrm on Windows Server 2016 Server. Getting an error connecting to remote host running a Command job.
Error: pexpect not installed, try: pip install pexpect
Python3.9.6
verified pexpect 4.8.0 installed using pip list
I've tried;
uninstalled/reinstalled pexpect and Python and restarted Windows after Python reinstall and Rundeck Service after each change.
Any help would be greatly appreciated.
Thank you
Go to Project Settings > Edit Configuration and click on the "Default Node Executor" tab, (make sure that you're using "WinRM Node Executor Python" as default node executor), on the "Python Interpreter" textbox put the python3 binary full path (the python3 path that you're used to installing the pexpect module). Same for the "Default file copier" tab.

xampp is not starting and not even showing any error

This is the error image
I have installed latest version of xampp first and then installed previous version.But it is not working now
I think you've Apache server installed explicitly (ie as a separate service). Apache server starts while system boot and thus this is preventing XAMPP from starting Apache again.
So, you either need to stop Apache server on CMD as:
cd C:\Apache24\bin
httpd -k -restart
Then, restart Apache on XAMPP.
Or, you'll have to uninstall Apache as a service completely as is given in this post: apache 2.4 - remove | delete | uninstall

Issues with manual installation of predictionIO dependencies

I am installing predictionIO from source code. I have downloaded and done the predictionIO installation successfully. I am now trying to install the dependencies (Spark, Elasticsearch, HBase) but I am running into errors for each of them. Below are the issues I am facing when I execute pio status:
1 - Unable to locate a proper Apache Spark installation
2 - It is also unable to find metadata files.
I have not changed any default settings. I'm using windows 8.1. On localhost, I have running IIS. On 127.0.0.1:8888 I run ipython notebook.
Please help on how I can get predictionIO up and running on my machine.
Thanks
If you are on Windows, you can install with Vagrant.
http://docs.prediction.io/community/projects/#vagrant-installation-for-predictionio
I believe the discussion has moved to the google group.
https://groups.google.com/forum/#!searchin/predictionio-user/SAS/predictionio-user/ZamBr1ZaQ3o/fyNkXh3zsv0J
https://groups.google.com/forum/#!searchin/predictionio-user/SAS/predictionio-user/0awaASUR8lE/JkLtPeRrNt4J
This is the relevant thread.
https://groups.google.com/forum/#!searchin/predictionio-user/SAS/predictionio-user/0awaASUR8lE/JkLtPeRrNt4J
Moreover, PredictionIO docs had a few errors. Below are some of them and their corrected versions.
1 - Actual line: PATH=$PATH:/home/yourname/predictionio/bin; export PATH
Corrected Version PATH=$PATH:/home/yourname/PredictionIO/bin; export PATH
2 - Actual Line: $ pio eventserver
Corrected Version: $ pio eventserver --ip 0.0.0.0
3 - Actual Line pio template get PredictionIO/templates-scala-parallel-recommendation MyRecommendation
Corrected Version pio template get PredictionIO/template-scala-parallel-recommendation MyRecommendation

I'm going CRAZY: ERROR: failed to load configuration file '/private/etc/php-fpm.conf' homebrew

I was able to successfully install php54 with fpm and with mysql onto my system. However, when I try to start the server by running php-fpm in terminal I get an error saying...
1.ERROR: failed to open configuration file '/private/etc/php-fpm.conf': No such file or directory (2)
2.ERROR: failed to load configuration file '/private/etc/php-fpm.conf'
3.ERROR: FPM initialization failed
However, my php-fpm.conf file is located in this directory: /usr/local/etc/php/5.4/php-fpm.conf. I'm not really sure what to do at this point. I'm going crazy and could use help out there. Can anyone point me in the right direction. I am running the latest version of Mountain Lion and have installed the latest command line tools.
The php-fpm binary expects php-fpm.conf file to read the configuration when it starts up. On Mac OSX by default this file is named as "/private/etc/php-fpm.conf.default" Change/copy it to "php-fpm.conf" from "php-fpm.conf.default"
cp /private/etc/php-fpm.conf.default /private/etc/php-fpm.conf
And then restart the service
you can start by brew if you installed by brew.
be sure closed php-fpm
sudo killall php-fpm
start by brew
brew services start php

Issues with the installation of scrapyd on Windows

I am having issues with the installation of scrapyd on Wndows 7 I have installed the package using easy_install, but still the command scrapyd comes up with nothing. Here is the output of my install:
C:\Python27\Lib\site-packages\scrapy>easy_install scrapyd
Searching for scrapyd
Reading https://pypi.python.org/simple/scrapyd/
Best match: scrapyd 1.0.1
Downloading https://pypi.python.org/packages/source/s/scrapyd/scrapyd-1.0.1.tar.gz#md5=bc002742a938c40fa7e80f6743320c95
Processing scrapyd-1.0.1.tar.gz
Writing c:\users\uname\appdata\local\temp\easy_install-q7nfgz\scrapyd-1.0.1\setup.cfg
Running scrapyd-1.0.1\setup.py -q bdist_egg --dist-dir c:\users\uname\appdata\local\temp\easy_install-q7nfgz\scrapyd-1.0.1\egg-dist-tmp-ss3ual
no previously-included directories found matching 'docs\_build'
zip_safe flag not set; analyzing archive contents...
Adding scrapyd 1.0.1 to easy-install.pth file
Installing scrapyd script to C:\Python27\Scripts
Installing scrapyd-deploy script to C:\Python27\Scripts
Installed c:\python27\lib\site-packages\scrapyd-1.0.1-py2.7.egg
Processing dependencies for scrapyd
Finished processing dependencies for scrapyd
C:\Python27\Lib\site-packages\scrapy>scrapyd
'scrapyd' is not recognized as an internal or external command,
operable program or batch file.
Any ideas, what the issue is?
I am new here and I cannot comment. So perhaps it is not an answer but rather workaround.
Firstly, i am not sure if scrapyd works on windows at all. Please see this part of Scrapy documentation.
Personally, I develop on the Windows but deploy on Debian (where couldn't find the scrapyd package at all at the time I was working on it) and noticed that performance of scrapy is considerably worse than on linux box, so you might reconsider your target. But I digress.
However, you don't need scrapyd at all. Scrapyd is just a wrapper that keeps running scrapy server in background. To get same functionality you can run from commandline (from the scrapy project folder):
scrapy server
The scrapy server would be then running as long as the commandline is running but you can workaround this with bat file and some software to running tasks in background. Hope it helps.
Solution:
Starting scrapyd on Windows 7 [after installation] from console:
cd to Python_install_dir/Scripts and run scrapyd from python.
In my case:
1.) cd C:\Python27\Scripts
2.) C:\Python27\Scripts> python scrapyd
now you can connect to scrapyd:
http://127.0.0.1:6800/ & via console
If you wanna running the server in the background, just run this command as a windows background process.

Resources