Last active
April 12, 2018 22:37
-
-
Save elhenro/89e4288beb34a7b62bea72bd79e3697e to your computer and use it in GitHub Desktop.
Debugging Processwire Installation on Ubuntu/Osx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Processwire 500 Internal Server Error | |
check site/config.php mysql logins | |
check .htaccess | |
- check if it is read (paste shit in the top) | |
- check if it works with apache2 | |
Processwire 403 Permission Denied | |
sudo chmod -R 777 /var/www/html/project (Attention, not save for live!) | |
besser: chmod 755 und für .htaccess 644 | |
chmod www-data... | |
fix for `Server unable to read htaccess file, denying access to be safe`: | |
look in `/var/log/apache2/error.log` | |
sudo chmod +x /path/to/root/folder | |
Processwire (+ apache2) | |
can only reach landing page (other pages all 404) | |
checken ob er .htaccess erkennt (oben shit rein schreiben) | |
check: | |
- #Options -Indexes | |
-#Options +FollowSymLinks | |
-#Options +SymLinksifOwnerMatch | |
Rewrite Base: | |
- / | |
- /projekt/ | |
- /var/www/html/project | |
- /home/user/sites/project | |
check if 'mod_rewrite' enabled: | |
- sudo a2enmod rewrite | |
- sudo service apache2 restart | |
try to switch: | |
- uncomment: RewriteRule ^(.*)$ index.php?it=$1 [L,QSA] | |
- comment: # RewriteRule ^(.*)$ /index.php?it=$1 [L,QSA] | |
-(at the bottom of .htaccess for PW, line 217 and 222, for me) | |
###Processwire erkennt .htaccess nicht | |
-> /etc/apache2/apache2.conf | |
- AllowOverride None -> All | |
- Require all granted | |
- uncomment: RewriteRule ^(.*)$ index.php?it=$1 [L,QSA] | |
- comment: # RewriteRule ^(.*)$ /index.php?it=$1 [L,QSA] | |
### Processwire Installation on Ubuntu 17.10 Lamp Stack: Undefined function utf8_encode() | |
Fatal error: Uncaught Error: Call to undefined function utf8_encode() | |
/home/hnr/web/sprachspielspass/site/modules/ChromePhpLogger/ChromePhp.php on line 405 | |
ubuntu: sudo apt-get install php7.0-xml | |
# Fatal error: Call to undefined function: utf8_encode() | |
## Make sure Apache2 is running fine with PHP modules | |
sudo apt-get install php7.0 | |
sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-cli php7.0-common php7.0-mbstring php7.0-gd php7.0-intl php7.0-xml php7.0-mysql php7.0-mcrypt php7.0-zip | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get install php5.6-xml | |
(still not fixed) | |
sudo apt-get install php7.1-xml <!-- FIXED ! | |
sudo systemctl restart apache2 | |
# partial php code output | |
-check if short open tags (php v7) might be an issue | |
https://askubuntu.com/questions/356968/find-the-correct-php-ini-file | |
# wrong template path, root instead of subfolder | |
[unsolved] | |
RewriteBase doesn't seem to work. | |
--> Look in /var/log/apache2/error.log | |
# image upload problem: images upload to 100% and are in asset folder, but never finish loading in backend | |
sudo apt install php-mbstring php-fpm php-gd php-xml | |
sudo systemctl restart apache2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment