Posts

Showing posts with the label apache

php 8 using ldap connectivity configuring php.ini and apache2.4

Got an error that ldap_connect is not a recognize function to use with apache 2.4, php 8 on windows Here is a solution: 1. Enable extension=ldap in the php.ini 2. Copy .dll files from the php installation directory into the apache/bin installation directory Please note, ldap_sort function was deprecated

nginx rewrite and redirect rule like .htaccess in apache

In order to rewrite for example: https://www.teusonho.org/symbol/casa to /symbol.php=casa You can use: location /symbol {          rewrite ^/symbol/([^/\.]*)$ /symbol.php?symbol=$1;     }

תזכורת פקודות הרשאות linux groups

Chmod for files: chmod u=rwx,g=rx,o=r myfile Get user and groups: id id www-data Adding a user to a group: sudo usermod www-apache --append --groups [groupname] Removing user from group sudo deluser username group Change ownership: chown {-R} [user]{:group} [file|directory] Change group: chgrp {-R} [group] [file|directory] Login with www-data user (www-data is set to /usr/sbin/nologin): sudo su -l www-data -s /bin/bash

Apache 2.4 - Require all granted

In Apache 2.4 the access control commands have changed: Use:   Require all granted Instead of: Order allow,deny  Allow from all Read more on the Apache2 upgrade page.

התקנת Apache 2.2 בעיות עם Windows 7

התקנת Apache 2.2 לעיתים נתקלת בבעיות ב - Windows 7. ראשית, יש להריץ את ההתקנה עם הרשאות Administrator. לעיתים, גם אחרי התקנה מוצלחת ישנן בעיות בהרצת Apache. שיטה מצויינת לבדוק תקלות היא לנסות ולהריץ את apache באופן ישיר, כלומר את httpd.exe ישירות. אני קיבלתי את הודעת השגיאה הנ"ל: C:\Program Files\Apache Software Foundation\Apache2.2\bin>net start apache2.2 The Apache2.2 service is starting. The Apache2.2 service could not be started. A system error has occurred. System error 1067 has occurred. The process terminated unexpectedly. ואכן, כאשר הרצתי את: C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd.exe הוא הודיע שחסר קובץ: msvcr71.dll ולאחר שהתקנתי אותו, apache רץ חלק.