Questions tagged [php]

PHP is a general-purpose scripting language that is especially suited for Web development. The online manual is an excellent resource for the language syntax and has an extensive list of the built-in and extension functions. Most extensions can be found in PECL.

Filter by
Sorted by
Tagged with
0
votes
1answer
41 views
+50

Diagnosing apache cpu / memory / process spike

I have a server running Ubuntu 18.04 which has been experiencing huge CPU spike that nearly brings Apache to a halt once or twice a day. The server runs a couple of websites - all php & mysql ...
1
vote
1answer
1k views

Nginx dynamic PHP 404 (with URL rewriting)

I'm trying to set-up dynamic 404 pages so that I can keep the URL of the missing content, show it on the 404 page and keep my site's template consistent. Here is my site conf: server { listen ...
3
votes
3answers
2k views

PHP eats up all the memory

Since this morning one of our webserver's memory getting filled up by php which eventually going to cause the server to start swapping, slow down and become unavailable (an ssh login takes like 5 ...
1
vote
2answers
97 views

How did shared hosting providers ensure user isolation before containerization went popular?

Around 2000-2010, shared hosting was extremely popular as a cheap solution (sometimes a few $ / month, or sometimes even free for just a few MB) for people starting blogs, small websites, e.g. using ...
0
votes
1answer
848 views

Plesk command working in manual script, not in cronjob

In order to install a hosting plan, I use Plesk's commands in SSH as specified in their official guide. When typed directly in SSH (Putty), it works perfectly. The line is as follows with obviously ...
5
votes
2answers
14k views

Installing Image Magick on Amazon EC2

Well I'm a PHP developer who know few linux commands to get my job done. I need to launch a symfony 1.4 website on Amazon EC2. Everything is fine except IMagick. I magick is also installed through ...
-1
votes
0answers
11 views

How do I stop “iconv_strlen(): Wrong charset” errors in a third-party PHP library from being logged? [closed]

MailMimeParser, some e-mail parsing PHP library I'm forced to use, uses MbWrapper.php. This results in occasional errors such as this being logged when broken spam e-mails arrive to my system: ...
1
vote
0answers
21 views

install php5 but keep php7

I have upgraded, built a new one, my server (Ubuntu 18.04.6) which is running PHP Version 7.2. I would like to install PHP5 and keep PHP7 and have the option to switch back and forth. Have a site that ...
0
votes
2answers
1k views

Switching on MySQL query profiler for a website?

I want to "swtich" on the sql query profiler for my php/mysql site and leave it ru nnig for a while. The idea is to capture usage details over a day and then analayze the queries and work out which ...
0
votes
1answer
19 views

Directory index of /var/www/html/opencart is forbidden Nginx

I have install multiple php frameworks (Cakephp and Opencart) on nginx web server. Cakephp is working fine in root directory. Opencart is in subdirectory in where i am getting errors. Here is my nginx ...
1
vote
0answers
13 views

Apache with PHP-FPM intercepting errors and not displaying my friendly PHP error page output in dev environment

There is so much static around this it's hard to find an answer that actually applies, so my apologies if there is an answer for this, I just haven't been able to find it. My situation is that I want ...
1
vote
3answers
8k views

White Screen - PHP 7 on Ubuntu 16.04 fails to render scripts

I can't run PHP scripts on my localhost, the browser renders a white screen. If I view the source of the page I can see the contents of the PHP file visibly. Using: $ sudo apt-get install ...
1
vote
2answers
2k views

nginx php5-fpm path_info urls and root location

Hello to all nginx & php gurus I'm installing dotclear (a blogging software written in PHP) on my debian, and I have a hard time configuring nginx, php5-fpm and php so that : I can use PATH_INFO ...
0
votes
1answer
2k views

Apache and php7.0-fpm – sporadically error 500

I am running an office server based on Debian (for developing websites based on TYPO3) and have changed from mod_fcgid to PHP FPM – just to have two PHP versions available in an easy way... Now I am ...
-1
votes
2answers
40 views

PHP not connecting to my database on Linux? [closed]

I use mariadb as my database and phpmyadmin to access on databases web on Linux. Although I am able to connect to the database on the commandline as root but cannot check connection to the database ...
1
vote
2answers
1k views

Expand open_basedir for virtualhosts

All my virtualhosts have their own directive open_basedir, like: php_admin_value open_basedir "/var/www/user/data:." How can I add a path to open_basedir globaly to all virtualhosts?
0
votes
1answer
4k views

OCI8 installation issue in Centos 7

I installed PHP 5.6 and Apache 2.4, and oci8 module on my fresh Centos 7 system. The oci8 module is working on terminal, but it's not working in Apache and not showing in phpinfo. I tried to disable ...
1
vote
1answer
1k views

php-fpm: locale settings change themselves

I experienced a bug with php-fpm : locale settings change themselves randomly. Here are the correct locale settings: Array ( [decimal_point] => . [thousands_sep] => [...
2
votes
1answer
1k views

HHVM randomly stops running

The Background Recently I've changed php5-fpm in favor of hhvm, that is really what they said, a "holly performance grial" I've installed hhvm remove php5-fpm (is really a fallback needed??) ...
2
votes
2answers
2k views

Linux : Undefined symbol: php_pdo_register_driver in Unknown on line 0

When i add the extenstion extension=pdo_sqlsrv.so in php.ini file in linux server with PHP v7.0 it's giving following error undefined symbol: php_pdo_register_driver in Unknown on line 0 Please ...
0
votes
0answers
25 views

autoscaling php-fpm in AWS ECS

I have a t3.medium instance managed by ASG and used by ECS. My application requires approximately 25% of the capacity of this instance to operate at a minimum. will work in the standard nginx + ...
0
votes
1answer
21 views

my website is close “ HTTP ERROR 500 ”

my website is close error is " www.worldtourjourney.com is currently unable to handle this request. HTTP ERROR 500" please help me how can i resolve this error ? My website appears to be ...
-1
votes
0answers
14 views

How come PHP and other languages don't have a simple secure_unicode_string() function? [closed]

Ever since I learned about and started using Unicode, many years ago now, I've continuously encountered problems of all kinds. People bypassing word filters are the least of the problems, with text ...
0
votes
1answer
1k views

Configuration Issues with PECL and PHP-FPM

I'm using Ubuntu Natty. I recently installed NGINX 1.0.6 and PHP 5.3.8 (with --enable-fpm) from source. Everything went ok and I tested it with an info.php page with phpinfo(). I then installed APC ...
1
vote
2answers
4k views

Nginx error memory

I have a problem with Nginx + PHP. This is error PHP message: PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 896464024 bytes) in /sistemas/html/...
0
votes
3answers
2k views

lamp — edit PHP file but doesn't change web output — including die()

Server is standard Linux server on Amazon Web Services. Cent OS 5/Apache/PHP 5.3. No APC. It's worked fine for over a year, but now when I edit some but not all PHP files on the server using vi, the ...
2
votes
1answer
1k views

Intermittent error 404 during higher loads. (nginx/php/apc/mysql)

I have a 4 cpu core VPS with 4GB ram. It is running Ubuntu 10.04 with nginx/0.7.65, PHP 5.3.2, and MySQL. I use php5-fpm for the communication to nginx. I also have php5-apc complimenting with php ...
0
votes
2answers
1k views

Apache Server with memcache, varnish and php slow request times

My issue is that these servers are taking rather long for request about 2 seconds on average just to serve files. When we had just one server doing everything it was noticeably faster even with the ...
0
votes
1answer
2k views

Symfony's PHP files doesn't work on prod server

I just try to deploy to production a Symfony (3.3.5) project for the first time and I am in a little trouble. MySQL is installed and running on the server, Symfony can connect to it. Apache2 and PHP ...
3
votes
1answer
2k views

Why is PHP open_basedir not considered a security model

On servers doing shared web hosting, or sharing the PHP environment between different PHP applications, I usually implement a security policy that uses PHP open_basedir to restrict each user to his/...
0
votes
1answer
1k views

Network connection failed in Red 5 server

I am new to red5 server. When I try to run Red5 by creating a project in Eclipse using the Red5 plugin it runs with an error: [INFO] [NioProcessor-2] org.red5.server.net.rtmp.RTMPHandler - Scope ...
1
vote
1answer
2k views

How to point domain/path to a different folders inside the DocumentRoot

I have Apache 2.4 installed on Windows Server 2008. This server is dedecated for one site only i.e. https://subdomain.example.com all my files that will be executed when a user reach https://...
1
vote
2answers
1k views

PHP App (Owncloud) Pages Requesting Incorrect Path for Assets

I have a VPS set up with php-fpm and nginx (with ssl). I have set up Tiny Tiny RSS already, and it works just fine. However, I recently attempted to set up Owncloud, and instantly hit a roadblock. I ...
0
votes
1answer
24 views

Run incoming mail through PHP script - Postfix

I have followed this answer Pipe all Postfix email for a domain to PHP script - Centos7/EC2 to direct incoming mail for a specific address to a PHP script. My aliases file entry looks like: mail-...
0
votes
1answer
1k views

Apache Error log with mod_fcgid process exit(lifetime expired)

I have lots of errors in my apache error log as below, anyone has any idea why is this error ? [Thu Jan 30 17:15:40 2014] [error] mod_fcgid: process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper(25614) ...
0
votes
0answers
21 views

Dealing with IDM (internet download manager) connections to server and rate limiting

I run a file hosting platform, and am struggling to work out how to handle IDM (internet download manager) connections. When a file is requested, I create a download token, which expires after 10 ...
0
votes
0answers
40 views

How do I resolve this dependency resolution error in yum?

When I run yum update, after dependency resolution I get the following error: --> Finished Dependency Resolution Error: Package: php71w-pecl-imagick-3.4.3-1.w7.x86_64 (@webtatic) ...
0
votes
0answers
10 views

Apache file write buffering?

I have migrated a few WordPress websites from a shared hosting to a VPS. WordPress has an option of redirecting PHP errors from the regular error.log to its own debug.log file. Now I have a problem: ...
0
votes
1answer
1k views

Capistrano fails to delete folders/files created by Apache

Problem Capistrano deploys a web application via SSH using deploy user. Apache/PHP runs under typical www-data user. Web server is creating cache files and folders at runtime inside the app path. ...
3
votes
2answers
1k views

Unable to install xdebug - undefined symbol: zend_post_startup_cb

I uninstalled php7 with apt-get purge php and installed it again with zypper in php7 php7-mysql. Then I followed the install instructions of xdebug and restarted apache with systemctl restart apache2,...
0
votes
0answers
14 views

mariadb php connection error (110)

I have a mariaDB service running on a remote server A. I have a second remote server B running httpd. Both server A and B's NAT firewall allows all traffic for port 3306 and ICMP. Server B allows port ...
0
votes
1answer
2k views

Interspire Email Marketer taking long time to send bulk emails

I am using Mailjet SMTP Server along with Interspire Email Marketer to send emails to a large group of users (around 54,000). I once used Mailjet's inbuilt Email Marketer to perform a similar function,...
0
votes
1answer
42 views

Elastic Beanstalk Custom Nginx conf

I'm setting up a new Amazon Linux 2/PHP/NGINX environment and I'm a little unfamiliar with Nginx since my last environment on Elastic Beanstalk was Amazon Linux/PHP/Apache. (Amazon changed the proxy ...
1
vote
1answer
1k views

nginx not interpreting some PHP files

I am trying to port a website on php / mysql / apache on one server to another server. The other server was a raw linux box on amazon ec2. I am not a advanced linux admin. I have some basic ...
0
votes
1answer
1k views

php/mod_fcgid script terminating after 30 seconds

I have the following issue : When running a long-running php script (file upload) it timeouts after exactly 30 seconds of activity. Bizzarely, it only occurs in certain cases - the one i know for sure ...
0
votes
1answer
4k views

Nginx + PHP index.php not found 404

I'm running debian 9 with nginx 12 and php7.1 I've set evrrything up. Nginx does not give me anything in error log, all the PHP scripts are working 100% fine. Nginx indexes index.html as index but ...
1
vote
1answer
1k views

Problems with my.cnf and php.ini - Using mysql tuner

My server was running fine until a recent update in Plesk and now it has been slow. My server tech had to rebuild the Apache configuration file and ever since the sites have been slow. The server is ...
1
vote
1answer
1k views

how nginx serves large files

We have a problem with loading a pdf file which is about 300KB size on our web page. The pdf is being served by nginx. Whenever I load the file, it shows an error saying Failed to open pdf document, ...
0
votes
1answer
1k views

Running cron job manually and immediately with PHP

I just wanted to run all my cronjob manually and immediately, following command works well in command line terminal but not working with shell_exec crontab -l | grep -v '^#' | cut -f 6- -d ' ' | ...

1
2 3 4 5
148