Quantcast
Channel: Admins Goodies » php
Browsing latest articles
Browse All 11 View Live

Image may be NSFW.
Clik here to view.

SELinux: how to enable write access to Joomla cache directory?

I have set up SELinux on a Debian squeeze system, which runs a Joomla website. The Joomla PHP code wants to have write access to certain cache directories. The /var/log/messages file contains entries...

View Article



Image may be NSFW.
Clik here to view.

forbid custom php config settings on apache 2.2 + mod_php server

I have a server where php is running as an apache module. Every user on the server is restricted to his own directory with open_basedir. I have disabled the following functions: disable_functions =...

View Article

Image may be NSFW.
Clik here to view.

Running drupal as root in order for it to run bash scripts

I store a website on redhat and using drupal. There is a button on the site that activates a php script and that php script use exec to activate bash script on the server. Right now the script is not...

View Article

Image may be NSFW.
Clik here to view.

File readable by only PHP?

I’d like to make a file on my server be readable by PHP, but not directly accessible with a browser. Say my Apache installation’s root is /apache. I’d like PHP to be able to get the text of...

View Article

Image may be NSFW.
Clik here to view.

How do I upgrade php on openSuse?

I’m currently running openSuse 12.1 with php 5.3.8 and would like to upgrade to 5.4. How may I do this? I’m used to just installing software packages with yast. Asked by Isius If there is no package...

View Article


Image may be NSFW.
Clik here to view.

Change php path

I’ve a server running Centos 5. Yesterday I upgraded php to 5.4.10 throught remi repository. Operation was successful ( I’ve checked updated information in phpinfo()) Today I figured out that php...

View Article

Image may be NSFW.
Clik here to view.

Incrementing values, alternate way of doing this that won’t use MySQL

I need to count impressions of a .php script that is accessed via web. Right now I do this in a 1 line MySQL table and just increment the value. This works fine usually but when the server has traffic...

View Article

Image may be NSFW.
Clik here to view.

Install apc in production environment

Executing a pecl search apc returns the following: Package Stable/(Latest) Local APC 3.1.14 (beta) Alternative PHP Cache And according to here: http://pecl.php.net/package/APC 3.1.14 is still beta....

View Article


Image may be NSFW.
Clik here to view.

How do you restart php-fpm?

I need to reload my php.ini and there’s nothing in the help dialog about restarting it. Asked by Galen Assuming you have the appropriate RC scripts in place, /etc/init.d/php-fpm restart or restart...

View Article


Image may be NSFW.
Clik here to view.

How do I upgrade to the latest PHP version in CentOS with yum?

I found some blog posts about this, but it’s rather lack of descriptions on possible side effects. I could really use some detailed on these steps: How to add a repo that provides PHP 5.4 into yum Can...

View Article
Browsing latest articles
Browse All 11 View Live


Latest Images