How do I install XCache in WAMP in windows? [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
How to Install XCache in WAMP server XCache
I got XCache is not loaded

Download xcache curesponding to your PHP version from here
Open php.ini and comment APC, memcache, disable memcache service.
Add the extension = php_xcache.dll to php.ini
Copy php_xcache.dll to the php ext dirctory.
Open xcache.ini, copy & paste all to the end of php.ini (right before ; End:)
Edit the path to php_xcache.dll, example: zend_extension_ts = C:/xampp/php/ext/php_xcache.dll
Set the xcache admin username and password. Use any username. Generate a 32 digit md5 password.
Restart apache and check phpinfo.
php.ini section will look like
[xcache-common]
zend_extension_ts = C:/xampp/php/ext/php_xcache.dll
[xcache.admin]
xcache.admin.enable_auth = On
xcache.admin.user = "anyusername"
xcache.admin.pass = "32-digit-number"

Related

PHP8 not working with Apache httpd localhost in Mac OS 12 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
Upgraded to Mac OS 12 today and noticed PHP was removed. Have installed PHP 8 using brew. I've tried setting it up with the default httpd and also tried installing it with brew. I load the module in the config. In both cases, when I access the files on the localhost in my browser, it just prints the text in the php files and doesn't execute them. Haven't really got any clue left
You need to add the line AddType application/x-httpd-php .php to httpd.conf Apache configuration file to enable PHP file parsing. After editing the file restart Apache to reload new settings.
You can use an alternative like MAMP (My Apache MySQL and PHP). Installation instructions here: https://documentation.mamp.info/en/MAMP-Mac/Installation/.
It includes a prepackaged Apache/nginx web server, PHP and MySQL, as well as, a management GUI app native to macOS.

Apache2 Graceful Loads Different php.ini [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have an apache server running Apache/mod_php.
On Fresh start and when using sudo service apache2 restart the correct php.ini file is loaded:
Doing a graceful reload of apache i.e "sudo service apache2 graceful" results in php loading a different php.ini (which is non-existing on filesystem):
What could be causing this and any ideas on how to resolve it?
From http://php.net/php.ini:
Note:
The Apache web server changes the directory to root at startup, causing PHP to attempt to read php.ini from the root filesystem if it exists.
Are you sure /php.ini does not exist?

How to Romove SUEXEC from apache webserver? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
As client requirement i need to remove the suexec from apache to remove vulnerabilties.
To do that i am using apachectl -V command on linux machine.
i am getting many variables with path of the file like
-D SUEXEC_BIN="/usr/sbin/suexec"
From the documentation on apache.org
if i would remove or rename this suexec file from the above path and restart the server, suexec will be deactivated and the above variable won't be show the file.
I am doing the same but the reflection is not showing. please help me out this.
The -D SUEXEC_BIN=… text that you're seeing is an option that was specified when the web server was compiled. It doesn't mean that suexec is being used, and it can't be removed without recompiling the web server (which you should not do here).
Refer to manual on how to disable or enable suexec: http://httpd.apache.org/docs/2.2/suexec.html#enable

Loading php extension for specific domain only [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a dedicated LAMP server with more than one domains hosted. I want to load a php extension only for a single domain. Is it possible?
Edit your VirtualHost configuration.
Make a copy of php.ini file. Add the extension you need in there. Store it in separate directory.
Use PHPIniDir in your config for the particular site and point to that new dir, containing new php.ini
Restart apache.
Your config will be loaded and will use separate php.ini file.

Curious as to why system said it was loading php.ini file from different directory [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I was wondering why my system says it is running the php from the /etc/php5/apache2/php.ini
directory when in fact it was running it from the /etc/php5/cli/php.ini .
When I did a phpinfo() on a file in the directory of the folder, I received this however the changes to the configuration file wasn't impacting the server until I searched the whole system for a php.ini file and found the php.ini file under the cli/ directory:
Hopefully you can see it. I wasn't sure exactly how to put in onto SO.
it's intentional so you can easily have different configuration depending on your runtime environment.
In your environment when php runs in command line mode it uses /etc/php5/cli/php.ini.
When you access it from browser php is running from apache. So then /etc/php5/apache2/php.ini is used.

Categories