Skip to content

exception with message Can't create .htaccess #81

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
epsi1on opened this issue Feb 19, 2015 · 6 comments
Closed

exception with message Can't create .htaccess #81

epsi1on opened this issue Feb 19, 2015 · 6 comments

Comments

@epsi1on
Copy link

epsi1on commented Feb 19, 2015

Hello,
I'm getting this exception:
'Can't create .htaccess' in /home/_/public_html//phpfastcache/phpfastcache/2.4.2/base.php:756 Stack trace: #0
/home/**
/public_html/_/phpfastcache/phpfastcache/2.4.2/base.php(831): phpFastCache->htaccessGen('/home//...') #1 /home/**/public_html/_/phpfastcache/phpfastcache/2.4.2/drivers/files.php(25): phpFastCache->getPath() #2 /home//public_html/**/phpfastcache/phpfastcache/2.4.2/base.php(536): phpfastcache_files->__construct(Array) #3 /home/_/public_html//phpfastcache/phpfastcache/2.4.2/base.php(22): phpFastCache->__construct('memcached', Array) #4 /home/**/public_html/***/jupdate.php(38): phpFastCache('memcached') #5 {main}

@khoaofgod
Copy link
Member

I test it tonight, can you tell me are u using files / auto or memcached ?
If u are using memcached, please sure that ur memcached server is right.

And are u use FCGi / suPHP / CGI or PHP as Module ?

@epsi1on
Copy link
Author

epsi1on commented Feb 19, 2015

Hi.
this is my code where it throws the exception:

$cache = phpFastCache("memcached"); // <<<<<< this throws the exception
$results = $cache->get('my_key');

How can i find out memcached works fine?

also about last question, actually i do not know what do you mean. I'm not a php guy, i guess i'm just using php!

thank you so much

@ghost
Copy link

ghost commented Feb 19, 2015

Replace memcached with "memcache"
w/o d

Il giovedì 19 febbraio 2015, epsi1on notifications@github.com ha scritto:

Hi.
this is my code where it throws the exception:

$cache = phpFastCache("memcached"); // <<<<<< this throws the exception
$results = $cache->get('my_key');

How can i find out memcached works fine?

also about last question, actually i do not know what do you mean. I'm not
a php guy, i guess i'm just using php!

thank you so much


Reply to this email directly or view it on GitHub
https://github.com/khoaofgod/phpfastcache/issues/81#issuecomment-75128244
.

Cordialmente,
Massimo -- the ZiZuu staff

@epsi1on
Copy link
Author

epsi1on commented Feb 19, 2015

with changing memcached with memcache it works but gives a notice:
is everything ok?

Notice: Memcache::get() [memcache.get]: Server 127.0.0.1 (tcp 11211) failed with: Connection refused (111) in /home//public_html/phpfastcache/phpfastcache/2.4.2/drivers/memcache.php on line 82

@ghost
Copy link

ghost commented Feb 19, 2015

No it's saying that the memcached process is refusing connection on its
standard port (11211)

Check that memcached is running and accepting connection on localhost

Il giovedì 19 febbraio 2015, epsi1on notifications@github.com ha scritto:

with changing memcached with memcache it works but gives a notice:
is everything ok?

Notice: Memcache::get() [memcache.get]: Server 127.0.0.1 (tcp 11211)
failed with: Connection refused (111) in
/home//public_html/phpfastcache/phpfastcache/2.4.2/drivers/memcache.php
on line 82


Reply to this email directly or view it on GitHub
https://github.com/khoaofgod/phpfastcache/issues/81#issuecomment-75129604
.

Cordialmente,
Massimo -- the ZiZuu staff

@khoaofgod
Copy link
Member

try this one on ur server:
ps -A | grep memcache

Maybe ur memcache services is not running. Memcache is a software that u have to install on Server.

If you are not the one install memcache services or dont know how to install it, just put
$cache = phpFastCache();

and chmod the folder that it tell you to chmod, then it ready to work.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants