1. Create .user.ini in your root directory (/var/www/xxxxxxxx/)
upload_tmp_dir = /var/www/briskcoin.org/wp-content/temp
2. sudo systemctl restart apache2
Discover and enjoy a wide range of IT solutions designed to make your digital experience smoother, faster, and more efficient. From software tips to troubleshooting guides, find everything you need in a place. Stay updated, stay secure, and enhance your tech skills with reliable, user-friendly information and resources.
1. Create .user.ini in your root directory (/var/www/xxxxxxxx/)
upload_tmp_dir = /var/www/briskcoin.org/wp-content/temp
2. sudo systemctl restart apache2
------Install-----
1. CD into the project directory
2. pod init
3. pod install
-------Update----
1. pod update
------ Remove---
1. pod deintegrate
sudo apt-get install libapache2-mod-wsgi-py3
sudo apt-get install python3 libexpat1 -y
sudo apt-get install apache2 apache2-utils ssl-cert libapache2-mod-wsgi -y
a2enmod cgid
sites-available
Non-SSL
<VirtualHost *:80>
ServerName xxxx
ServerAlias xxxx
<Directory /var/www/xxxx>
Options +ExecCGI
AddHandler cgi-script .cgi .py
Allow from all
DirectoryIndex index.py
</Directory>
ProxyRequests Off
ProxyPreserveHost On
ProxyVia Full
<Proxy *>
Require all granted
</Proxy>
<Location />
ProxyPass http://xxxx:port/
ProxyPassReverse http://xxx:port/
</Location>
DocumentRoot /var/www/xxxx
</VirtualHost>
SSL
<VirtualHost *:443>
ServerName xxx
ServerAlias xxx
SSLEngine on
SSLCertificateFile /etc/ssl/certs/xxxx
SSLCertificateKeyFile /etc/ssl/private/xxxx
SSLCertificateChainFile /etc/ssl/xxxx
<Directory /var/www/xxxx>
Options +ExecCGI
AddHandler cgi-script .cgi .py
#Order allow,deny
Allow from all
AllowOverride All
#Options +ExecCGI
DirectoryIndex index.py
Require all granted
</Directory>
ProxyRequests Off
ProxyPreserveHost On
ProxyVia Full
<Proxy *>
Require all granted
</Proxy>
<Location />
ProxyPass http://xxxx:port/
ProxyPassReverse http://xxx:port/
</Location>
DocumentRoot /var/www/xxxx
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
systemctl restart apache2
Home page of py added the first line: #!/usr/bin/python If python app is version 3 so need to map python to python3 Check Apache log sudo tail -f /var/log/apache2/error.log Check python version python --version
Note: Python app must be up service
This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
Solution:
%windir%\system32\inetsrv\appcmd.exe unlock config -section:system.webServer/handlers
Install Python on M1 Mac arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" eval "$(/usr/local/bin/brew shellenv)" arch -x86_64 pyenv install 2.7.18 ----------------------------------------------------------------------- Python build fails on M1 Apple Silicon with arm64 homebrew BUILD FAILED (OS X 11.6 using python-build 20180424) Inspect or clean up the working tree at /var/folders/h8/kskgcwkx4gb614nhfhhh0xgw0000gn/T/python-build.20211103220722.87338 Results logged to /var/folders/h8/kskgcwkx4gb614nhfhhh0xgw0000gn/T/python-build.20211103220722.87338.log Solution Type which brew in the terminal and it's shows you the location of brew! You're actually overwriting an existing install having a broken core tap. Run these commands into your terminal rm -fr $(brew --repo homebrew/core) # because you can't brew untap homebrew/core brew tap homebrew/core