» apache の記事

~ android fb sharesdk Failed to copy image. ~

connie 2019.08.01 | apache | | No Comments
看看androidManifest.xml 
有沒有加入android:exported="true"

<provider
android:name="com.facebook.FacebookContentProvider"
android:exported="true"<=======
android:authorities="com.facebook.app.FacebookContentProvider{APPID}" />

~ Install Mod_GeoIP in centos ~

connie 2016.07.13 | apache | | No Comments
yum update

yum install mod_geoip GeoIP GeoIP-devel GeoIP-data zlib-devel

cd/usr/share/GeoIP/
mv GeoIP.dat GeoIP.dat_org
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz

nano /etc/httpd/conf/httpd.conf
<IfModule mod_geoip.c>
GeoIPEnable On
GeoIPDBFile /usr/share/GeoIP/GeoIP.dat
</IfModule>
nano /var/www/html/testgeoip.php
<?
var_dump(getenv(GEOIP_COUNTRY_NAME))

 

nano /etc/cron.d/php5

Change

09,39 *     * * *     root   [ -x /usr/lib/php5/maxlifetime ] &amp;&amp; [ -d /var/lib/php5 ] &amp;&amp; find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2&gt;/dev/null ; -delete

to

09,39 *     * * *     root   [ -x /usr/lib/php5/maxlifetime ] &amp;&amp; [ -d /var/lib/php5 ] &amp;&amp; find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete

 

Install apache module mod_headers in ubuntu

sudo a2enmod headers

Restart apache

/etc/init.d/apache2 restart

httpd.conf

Header always append X-Frame-Options SAMEORIGIN

or

Header always append X-Frame-Options DENY
/etc/init.d/apache2 restart

 

~ AppServ 開啟 mcrypt 方法 ~

connie 2012.12.22 | apache | | No Comments

在 AppServ 開啟 mcrypt 方法如下 :

去Appserv folder/php5/ copy libmcrypt.dll 抄去C:\windows\

然後到C:\windows\php.ini uncomment 

extension=php_mcrypt.dll

restart apache

~ 解決php load exif extension 問題 ~

connie 2012.12.18 | apache | | No Comments

當php.ini enable 左 exif extension 但還是用不到的話,
那你要看看extension=php_exif.dll,是否放得前過extension=php_mbstring.dll
因為php_exif.dll需要用到php_mbstring, 所以要放得前過extension=
php_exif.dll
restart apache 

Screen Shot 2013-01-01 at 1.04.57 PM

| HOME |

Smiley face

March 2024
S M T W T F S
 12
3456789
10111213141516
17181920212223
24252627282930
31