New answers tagged

0

I faced the problem today and after searching I eventually figured it out. Go to your Domain, i.e. open in a web browser: http://server_domain_name_or_IP/ On that page NGINX will list EDIT the File listed there In my case it is /etc/nginx/nginx.conf.


0

Have you made sure that your php-fpm process can access the PHP files from the place where you have made the symlinks? You should be able to test this with a simple PHP script at your /var/www/html directory which tries to open a file from your other volume. Personally I would change the root directory to point directly to the actual place where the website ...


-3

Instead of trying to configure the EC2 manually, which is a real pain, I'd recommend you to host your PHP application on AWS using a managed hosting, like Cloudways, that minimize the pain and trouble you have to go through when doing manual installation.


7

i have by mistake emptetied my databases for where can i get database backups. Wherevery you did put them. my server team told i do not have backup activated now what to do to solve my issue YOU did not activate backups, now you whine. Sorry, there is nothing you can do. My server is on ubantu VPS 1: is there some server command that could ...


0

I had the same "AH01909: RSA certificate.." error. In my case I had the correct serverName value. The cause was an incorrect IP address in the <VirtualHost 10.11.12.13:443> definition for the secure site. I had missed typed it!


0

config.status has a --config flag to print out the last configuration. I found it by running ./config.status --help --config print configuration, then exit So just run ./config.status --config, and it will print out all the configure parameters.


1

apt-cache policy php5 will show you the available versions on Debian systems. Then you can install with apt-get install -y php5=whatever_version. On Fedora deriviatives you can use yum --showduplicates list php does the same and you can install a specific version using yum install -y php-whatever_version If the version you need is not available after ...


1

Create a virtual machine with virtualbox or VmWare Workstation (paid) and download an older version of CentOS 5 then download PHP 5.2.17 and install it normally .


2

As /blog is the first component of the URI, you need to remove it from the root. Use root /path/to/my when inside location ^~ /blog. See this document for details. Also, your .php location is invalid syntax. You can use something like this: location ^~ /blog { root /path/to/my; index index.php; try_files $uri $uri/ /blog/index.php; ...


-1

you may have had some white-space in your code that was causing the server to hang. could also be a bad cron path. check your cron logs to see what is causing the server load.


0

use Dreamweaver to find and replace using the folder settings instead of file. (search and replace in all files in a folder) you can use regex to match the lines you need to replace if the middle of each is different, if the lines are identical its not needed. but thats just going to get your site back to where it was before being hacked. once cleaned you ...


1

mysqli constructor accepts 5th optional argumen specifying port. You should use $mysqli = new mysqli("127.0.0.1", "root", "root", "database_name", "3307"); instead. Did you verify you can connect to the port from the other host? Mysql is usually using unix domain socket instead of port (which you can forward too). ssh -fNg -L ...


1

That "guide" was written by me, and it was targeting 14.04, when php 7 was still not officially released. Currently it might not even work on 14.04 as the package maintainer might have changed the package names. Sorry for the inconvenience.


0

Problem was resolved. The issue was the temp directory was filling up and stopping uploads. Once the temp files were cleared up everything worked as planned. So essentially over time after letting it idle for 2-3 days the directory filled up... and there was no way a restart would resolve this issue. Pretty surprised we didn't get any write errors or ...


0

You need to know exactly what directories you want to include and put them in your php.ini's open_basedir which by the way allows multiple entries delimited by the PATH separator (: on Unix). You can not say I want this directory included to do this or to do that. You either include it or not. If this poses a security concern, then you need to review your ...


0

Can you confirm that what you need is for public users to be able to hit index.php but not be able to directly call php files in any of the specified subdirectories? If so the answer is here, with another option here. For example location ~* /plugins/.*.php$ { deny all; } location ~* /users/%site%/*.php$ { deny all; } Or simply location ^~ ...


2

I got it working. The php user was www-data but the nginx user was nginx. Check php here: /etc/php/7.0/fpm/pool.d/www.conf listen.owner = www-data listen.group = www-data listen.mode = 0660 Nginx user was at /etc/nginx/nginx.conf This guided me: http://stackoverflow.com/questions/23443398/nginx-error-connect-to-php5-fpm-sock-failed-13-permission-denied ...


1

Whenever I find a site is going slow I run it through http://tools.pingdom.com/fpt/ it generally gives you some insight into whats slowing it down and where its coming from.


0

There is a section in your site configuration for php. You should just need to simply add an access_log directive within that section location ~ .php$ { fastcgi_split_path_info ^(.+?\.php)(|/.*)$; include fastcgi_params; #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini fastcgi_param PATH_TRANSLATED ...


2

As Iain described above the kernel module is killing apache I recently had similar issues, my first solution was to lighten the load on apache... particularly the wp-cron.php file. Disabling the file running in wordpress on every click of every page and making a manual cron removed lots of load from the server: ...


2

When your system invoked the OOM killer, you appear to be running 161 httpd processes, that seems to be a little excessive for a system that gets <50 users/week. The first thing I would do is reduce the number of httpd processes your system will spawn and keep alive To do this adjust values of StartServers, MinSpareServers, MaxSpareServers, ServerLimit, ...


0

After I have slept on it for a night I realized that Apache is the problem and not PHP. I compiled Apache with --with-ssl=/FAF/openssl-curl/ and now the Library version matches also the Header version.


0

Based on @Judder answer, to make it work i had to add the following command to give read and write permissions to nobody and nogroup: chown -R nobody:nogroup /var/lib/php/session sudo chmod -R ug+rw /var/lib/php/sessions chmod will change the permissions on the given folder -R will apply the same permissions to the folders and files created within the given ...


0

Since you are long bead like me you deserve one another answer: Also from another point of view I noticed something. If you don't use Memcache you don't need Varnish. Varnish is "pasato", since not planning to support spdy for a long time as Varnish author said once. Also I see that your caching layer is actually on application layer. The W3TC plugin you ...


0

Still big companies, universities and schools let you log in with your work account from home. How do they do it without leaving a big security hole? There are several mechanisms that allow authentication to Active Directory from outside the LAN that are relatively secure. I've never seen a situation where the directory services ports, even read-only ...


0

So it looks like this version of php-apache for docker: FROM php:5.5-apache sends a custom log output to the process out. This makes sense as you would want docker log to actually output something when run. To remedy this issue we will comment out the following lines: 45 LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" ...


1

How stupid - there was a php-file prepended through the php.ini. That file had a tab at the end. Sometimes things are really messed up.


0

You may need to specify a "From:" header in the sendmail command. Opendkim only signs Mails with an aligned "From:" header.


0

In addition to the timeout, set enablereuse=off. I found when it was on some requests to long running scripts would work correctly and others would be killed early.


1

The official Ubuntu 16.04 package is libapache2-mod-php7.0 (7.0.4-7ubuntu2), but it looks like you have gone outside of the supported software (i.e., the Ubuntu Main repository) following instructions sudo add-apt-repository ppa:ondrej/php in your link. Get rid of this, get rid of the ppa, and use the officially supported php 7.0 from the Ubuntu Main ...


0

CentOS now offers Software Collections (SCL) as a repo installable from base: yum install centos-release-scl Once you've installed the SCL repo, you can install php 5.6: yum install rh-php56 The CentOS documentation is slightly dated as is the Red Hat Documentation, but newer versions of php, PostgreSQL, MariaDB, MySQL, perl, ruby, etc. are available. ...


2

Because, again and again, pthreads is NOT supported by apache (PHP-CGI), only by CLI version https://github.com/krakjoe/pthreads SAPI Support pthreads v3 is restricted to operating in CLI only: I have spent many years trying to explain that threads in a web server just don't make sense, after 1,111 commits to pthreads I have realised that, my ...


0

I'm thinking it's this line: try_files $uri $uri/ /index.php?q=$uri&$args; Try removing the / from before index.php: try_files $uri $uri/ index.php?q=$uri&$args; The / is probably causing it to look in the root folder when $uri can't be found.


0

Apachetail also provides a real-time view/analysis of Apache logs by connecting directly to your Apache server from a windows desktop app. No software needs to be installed on the Apache server.


0

This is a very old question, but since I couldn't find the answer anywhere online, I am posting it here: FastCGI looks for the .htaccess where its binary is located. Depending on your directory structure, you might want to put the .htaccess file in FastCGI's directory or somewhere closer to the filesystem root directory from its location.


0

You need restart php-fpm (if use this) Or web server to affect Gd Also check php.ini for this line: Extensions: Gd.so


0

I eventually got this issue sorted by exporting the DB, creating a new DB, and importing the old data. Don't ask me why it worked, but it did.


0

Thanks to the comments I was able to figure it out (I am rather new to this kind of admin stuff, didn't know well about envelope sender and so on...): As seen from the logs, the envelope sender used by sendmail when using PHP was www-data@MYSERVER.de, when using the command line it was alumpi@MYSERVER.de, so I tried changing them around. BUT this wasn't a ...


0

to remove using yum: sudo yum remove php-5.6.20 to use 5.6.13 (compiled from source) follow PHP: Apache 2.x on Unix systems - Manual I would NOT recommend using compiled version, as then you're introducing more maintenance for yourself (whenever new version comes out, you'd need to download and compile it again and again). You may want to look into ...


0

Make sure the user running php has the sudo privileges to reload php5-fpm, then: shell_exec("nohup sh -c 'sleep 1; sudo reload php5-fpm' > /dev/null 2>&1 &");


1

It is looking for php.ini in c:\windows. Did you restart the apache after changing the PHP path? You also need to correct PHP path with \ backward slash as it is windows machine. PHPIniDir "C:/php"


0

I was able to check the original URL and parameters by grep'ing the Apache access.log.


0

to resolve this problem: open your php.ini from php example : c:/xampp/php/php.ini add extension=php_com_dotnet.dll to the extensions in php.ini file if you are using this tool to control a microsoft office document make sure that microsoft office is installed in your windows server and don't forget that the COM tools works only on windows servers like ...


1

The error message seems rather clear. inetOrgPerson isn't defined in your server's schema. It won't be there by default, and it doesn't look like you added it. inetOrgPerson schema depends on cosine schema, which in turn depends on core schema. Core schema may be present by default. ldapadd <auth for cn=config> -f /etc/openldap/schema/core.ldif ...


0

The problem was solved by removing /etc/php.d


0

The bug is quite old, but still current. Your error message isn't complete: Failed to login to xmlrpc instance - , Should be extended with the error itself. For example what I (still) have: Failed to login to xmlrpc instance - Unable to Connect to ssl://xx.xxx.xx.xxx:443. Error #0 How to do that: change functions.php in ...



Top 50 recent answers are included