Tag Info

New answers tagged

0

Every process that requires a timestamp requires to call gettimeofday, so it is difficult to know whether it is normal or not. It can be a module that creates a log, a module that checks the time to know if it is time to close the communication. In fact, in your case, to know why there are so many gettomeofday, disable apache modules that could responsible ...


0

First, check if there is any quota set in owncloud config. If there isn't, check how your disk is partitioned. Is the whole 1TB under / filesystem, or is it divided into smaller /, /home, /boot and so on. df -h shows this clearly.


0

If you can get to the server console while this is happening, you'll often be able to tell from Task Manager. True story! But there's one tweak: turn on the view of the Command Line. This shows the arguments passed to the target process, from which you could typically infer the site/page/consumer. Run Task Manager Go to the tab where you can see process ...


0

I had to make changes for SELinux, my instance was RHEL6. setsebool httpd_can_network_connect=1 setsebool httpd_can_network_connect_db on What I found odd was that SELinux logged nothing unusual to /var/log/audit/audit.log


1

That's related to memory allocation. The cause could be a faulty PHP configuration, for example see if the 'memory_limit' value in php.ini is below the one the machine offers. If in doubt, read about "shared memory" setting for your OS.


1

I observed (tcpdump) that when WordPress is attempting to load external content from the server side, it may retry 3 times when failing, waiting ~5 seconds between each attempt. That's a 15 seconds systematic delay if external data is permanently unavailable; with further WordPress page processing, you get to your 20 seconds response time in Firefox as I ...


2

I found a solution. It seems the httpd_can_network_connect is off by default. Run this command to enable: $ sudo /usr/sbin/setsebool -P httpd_can_network_connect 1 And restart the Apache: $ sudo apachectl restart


1

In general it is not possible to easily determine why a particular message has been marked as spam by the Google Mail spam filters. Having said that however one item that is an easy test is to check whether admin@domain.com is in your recipients contact list. Contacts are far less likely to have their emails marked as spam. You should also review the bulk ...


0

You installed PHP from the remi repository, but you disabled the repository. So yum can't install additional packages from it. To resolve the problem, re-enable the remi repository. yum-config-manager --enable remi


0

You can't easily see where a file is coming from unless you got decent logging of everything that can potentially create files. In the filesystem, you only see who created a file and when, but not by what means, unless maybe you're using e.g. a very tight configured selinux, but I don't know much about that. The basics: The file is written by some ...


0

After posting the same question in the cURL website, I got a few answers that gave me new ideas that I tried and solved the problem, so I decided to post them here, in case someone else has similar problems: The first clue was the error codes themselves (-12195, -12271, -12268). Someone gave me a URL that explains all of them: ...


0

Solution found. To get it working I had to modify the Rewrite rules somewhat and include them in the Apache config file not via .htaccess. Apache also started trying to rewrite index.html on to the end of all folders which needed DirectoryIndex to be changed so index.php was at the start. Finally all the Rewrite rules needed to be absolute with ...


0

Your URI pattern is /sub-site/sub-section while your location block is /sub-section, thus it never processes URIs beginning with /sub-site.


0

You can add FCGI directive in the Apache pre_virtualhost_global.conf or the .htaccess file for the wordpress install, or in the vhost for the domain itself.


1

Can we upgrade versions in multiple EC2-Instance at the same time? Put simply, yes. You're responsible for everything at the Operating System level (including upgrades, software, config). You could use configuration management systems to manage a fleet of servers, or some form of orchestration to perform actions on your fleet at the same time. Here ...


2

You have to disable PHP's session autostarting, and start sessions only when users log in. This way PHP doesn't set PHPSESSID cookie for non-logged-in users, which lets Varnish cache those pages.


0

Some instances come with more packages installed than others. It may be that whoever created this AMI they assumed people would want PHP pre-installed on it, or that some other package that they wanted to have preinstalled on it required PHP as a dependency.


0

I'm not sure what do do for RHEL6 without support. If you were running, CentOS6 and could make use of the EPEL repository this would be the answer: $ sudo yum install epel-release && sudo install php-pecl-ssh2 $ yum whatprovides "/usr/lib64/php/modules/ssh2.so" Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile ...


0

In case the issue is PHP-based, you could use xdebug profiling to capture some data and then analyze it using wincachegrind or kcachegrind (see http://www.xdebug.org/docs/profiler). Be very watching if doing this on a production server though as this will add extra load and eat up disk space rapidly. Or you could use xdebug tracing to see the last line ...


0

I'm pretty sure I've seen this when using FastCGI process manager (FPM-CGI / PHP-FPM). Check your master Apache error log to see if you get any hints in there as to what may be going on.


0

The message in question is not related to dpkg and so it is not possible to control it with dpkg options. There are two viable options as I found them: First, completely reinstall PHP: remove PHP 5.3 first and then install 5.5 on "blank system". In my case this is not good solution as removing PHP 5.3 will take very long time (more than 500.000 files and ...


0

Basically, what the mime_header_checks directive does it to instruct postfix to check an external table (/etc/postfix/blocked_attachments, in your case) for a matching pattern and action. But to correctly use it you should really read the relevant postfix man page


0

gettext port has been splitted into two different ports so you have outdates software that should be updated prior to the installations. First, update your ports tree: portsnap fetch update This may take a while. Then you have to install handful tool portmaster: make -C /usr/ports/ports-mgmt/portmaster install clean Then you have to check whether ...


0

Will pkg install p5-Locale-gettext help you? (be careful if it offers removal and/or reinstallation of other packages)


0

Problem fixed: From /etc/php5/fpm/pool.d/www.conf, I added the .asp extension to security.limit_extensions. That made the trick.


0

All the configuration above are correct and also the 2 tutoriels mentionned above are very useful. The problems was caused by the permission in ubuntu. I used "sudo": sudo mail -s "hello" -a /path/file.dat info@domain1.com content of my email is here . cc: Then the script runned.


0

As I cannot reward Alexey Ten with the correct answer through his comment, here is the working config: location /sugarcrm/ { auth_basic "Username and Password are required"; auth_basic_user_file /var/web/webaddress.tld/private/.htpasswd; # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { ...


5

You don't. The web server is allowed to decode percent-encoded characters which don't decode to special characters before applying rewrite rules, and is allowed to decode the remainder of percent-encoded characters before passing the data to your web application. (See RFC 3986.) What you should be doing is applying the front controller pattern in your web ...


1

YES! Base on what Zoredache said I did a :/etc/apache2$ rgrep post * which found sites-available/000-default.conf: php_value post_max_size 128M so a little /etc/apache2/sites-available$ sudo vi 000-default.conf change php_value post_max_size 128M to 1024M and I am done!


0

My theoretical solution was success. I have a folder which will store text files from user input. I have a folder for scripts elsewhere on the server that only root has access to, and runs via cronjob every minute. It checks for the existence of text files in the first directory. If they exist, it runs another script to deploy instances, then deletes any ...


0

Don't use PHP for this. You should set up a Windows share so all computers connected to the network have access to the batch file. Then you can use a relative path all computers can access like /mappedrive/ I suggest you look into Powershell as well, which may be easier for this specific task. At least that is how I would do that. Using exec is a security ...


0

You can't have server_name with URI element. Try this instead: server { listen 80; server_name example.com; location /europe/ { root /usr/share/nginx/europe; index index.html index.htm index.php; access_log /var/log/nginx/test1_access.log; error_log /var/log/nginx/test1_error.log; location ~* \blog.php$ { ...


1

CentOS doesn't provide PHP 5.5 in their standard repositories Look here; you'll need to use EPEL https://webtatic.com/packages/php55/


0

Have you tried the sc command as well? Similar question Instead of jumping through administrative execution hoops, how about you have PHP write to a file, a physical file, and have a separate program, running with Administrative rights, fire the net stop command? This not only ensures execution but also ensures security. For best reliability you can have a ...


2

This works with sendmail piping. Here is an example of what the data that gets piped looks like To: to@to.com Subject: Your Subject Here X-PHP-Originating-Script: 0:MailSender.class.php MIME-Version: 1.0 Content-type: text/html; charset=iso-8859-1 From: First Last <noreply@cool.com> BODY OF EMAIL GOES HERE Save this script as /usr/sbin/sendmail ...


0

Are you sure about your assumption for the rsyslog.conf? That is, are you sure all such syslog messages are tagged with lower-case "php"? Try setting syslog.facility to something like local2 (or local1, or local7) and replacing your rsyslog.conf config-line accordingly: local2.* /var/log/php-fpm/error.log


0

You can find it by grepping through the whole Apache configuration: grep -r mpm_event_module /etc/apache2 It's almost certainly in /etc/apache2/mods-available/mpm_event.load. In Debian/Ubuntu the standard way of enabling and disabling Apache modules is to run e.g. a2dismod mpm_event a2enmod mpm_prefork See man a2enmod, and similarly man a2enconf and ...


0

Ok, seems that Satisfy Any was the reason, that REMOTE_USER was absent.


1

Do a tail -f on maillog, pipe it into your program and look for delivered statements. Then, you'll not be interfering with the system's spam filtering, and will only get solid hits. You'll also know who received the message - it's in the log file... As for php, well, it's the wrong language for this, but your watching program can launch php to do whatever ...


1

Alternatively, if, like me, you aren't even using ssl, you will still get this error message because using ssl is turned on by default. In that case, turn it off! Here's an excerpt from config.d/ssl.conf: # SSL Engine Switch: # Enable/Disable SSL for this virtual host. #SSLEngine on SSLEngine off


0

I think you'll want to use Apache 2.4, and use its mod_proxy_wstunnel module. http://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html I would even think it preferable to have you API endpoint on a different hostname (eg. api.example.com versus www.example.com), which would mean that you can separate you API traffic from non-API traffic, and use ...


1

On Red Hat-based systems the package name is php-intl. Available Packages Name : php-intl Arch : x86_64 Version : 5.5.23 Release : 1.el7.remi Size : 213 k Repo : remi-php55 Summary : Internationalization extension for PHP applications URL : http://www.php.net/ License : PHP Description : The php-intl ...


3

I would approach this issue like this in your PHP code: if (isset($_SERVER['HTTP_HOST'])) { $host = $_SERVER['HTTP_HOST']; } else { $host = 'default.example.com'; }


-1

Its spelt out in the manual page on setting up process pools - use environment cars to append to the disable_functions ini setting.


0

This is my answer to use PHP scripts as squid external acl in pfsense: ln -s /usr/local/bin/php /usr/pbi/squid-amd64/local/bin/php ln -s /usr/local/lib/php /usr/pbi/squid-amd64/local/lib/php ln -s /usr/local/etc/php.ini /usr/pbi/squid-amd64/local/etc/php.ini


0

Ubuntu PHP usually comes with some help functions php5enmod and php5dismod. These map to enabling modules by name found in /etc/php5/mods-available and symlinking them as appropriate to /etc/php5/[SAPI]/conf.d, where the sapi is usually "cli", "fpm", or "apache2". I would check to make sure the ini files you referenced, presumably found in ...


0

these "dirs" are merely prefixes... while cURL basically comes with it's own SSL. PHP needs to be configured like that, to build for CentOS - with openSSL and cURL: ./configure --build=x86_64-redhat-linux-gnu --with-openssl --with-openssl-dir=/usr/local/bin --with-curl=/usr/local (assuming the additional libraries were built with): ./configure ...


0

Try this: vim /etc/php5/fpm/pool.d/www.conf and then change ; listen.owner = www-data ; listen.group = www-data to listen.owner = www-data listen.group = www-data


0

phpapi-20090626+lfs is a "virtual package" which another package may "provide". In your case, this is an older virtual package which php5-ffmpeg requires, and which the newer PHP package doesn't provide. The quickest solution just to get everything working, if the PHP upgrade broke it, would be to downgrade PHP. For a solution using the new PHP, you will ...


0

I had the same issue a while back. In my case I got 126 without the execution bit set and 127 with the bit set. I later figured out it was related to some shared libraries missing on the system. Even if the binary is linked statically it seems to use some shared libraries from the system. I don't really remember which libraries were causing the problem, ...



Top 50 recent answers are included