Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [php]

PHP is a server-side scripting language, used for building browser-based applications. This includes websites as well as programs that don't really need any form of interaction with the user.

0
votes
0answers
2 views

How to save file to htdocs in lampp?

I just installed lampp and it works fine, but I can't save my .php files to the htdocs folder (the folder which is accessible for the apache server). When I try to save it, it says permission-denied. ...
0
votes
2answers
34 views

cURL not Working after 18.04 Upgrade

I recently updated the system to 18.04 and it has hosed cURL. 18.04 installed PHP 7.2 but my nginx installation is using 7.1 FPM. When I run a phpinfo() from the web server, it shows the system ...
0
votes
0answers
14 views

mount a dataset

The web server will host an Apache2 web service. The document root is /www that is mounted to a dataset called /webpool/doc from the ZFS pool webpool made from a VDEV of 2 disks in a mirror. Create a ...
0
votes
1answer
20 views

How can I make apache redrect to www subdomain?

I have the following in sites-available <VirtualHost *:80> DocumentRoot /var/www/html/mywrk DirectoryIndex index.php ServerName www.mydomain.com <Directory "/var/www/html/...
0
votes
1answer
31 views

Sending email via gmail smtp ubuntu 18.04 php

In RoR in order to send email from the application, we simply provide smtp settings for gmail and the server start using them to send emails. I have bought Active Super Shop Multi-vendor CMS which ...
0
votes
3answers
51 views

One PHP meta-package for all common PHP packages?

Each time I create a new Ubuntu server environment I also execute: apt-get upgrade php-mbstring php-mcrypt php-curl php-cli php-gd Instead all these php-something, is there one "formal" or "...
0
votes
0answers
12 views

How to remove Codiad from my ubuntu

I was learning how to deploy websites on local system then i came to know about codiad and lamp.I first installed codiad and then went through installation of lamp.I actually didn't have any idea ...
0
votes
0answers
11 views

While running a cron job in nginx server getting segfault error

While running a cron job in nginx server getting error. kernel: [3487323.923351] php[16625]: segfault at 55c5d07da2d1 ip 00005598b3142b89 sp 00007ffcf5eebfc0 error 4 in php5.6[5598b2ec7000+3be000] I'...
0
votes
0answers
21 views

PhpMyAdmin' , __('phpMyAdmin Demo Server') , '

I have recently installed Apache2, PHP 7.2, MySQL, and phpMyAdmin on Ubuntu 18.04. When I open the localhost/phpmyadmin I get the following: ' , __('phpMyAdmin Demo Server') , ' '; echo ' '; ...
0
votes
0answers
16 views

How to add new PHP versions to mods-available Apache2

Currently running an Ubuntu 16LTS server with Apache2 installed and several PHP versions (PHP7 till PHP7.2). I use a lot of different PHP versions so I use a2enmod to switch between them. However, I ...
0
votes
0answers
19 views

mysql command changed to mysqli command after update is not working

SUM(Pages) is not working like it was working in older version Old Code: $newuresultp = mysql_query("SELECT *, SUM(Pages) FROM tpages WHERE File like '%$ck%'"); New Code: $newuresultp = ...
1
vote
1answer
93 views

PHP and related staff installation

I am going to install LAMP. In this regard I am going to run below command. sudo apt-get install php7.0 libapache2-mod-php php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-...
0
votes
0answers
24 views

Unable to insert in table in database in mysql using php

I am using ubuntu 18.04 and has used mysql-server-5.7 and phpmyadmin. I am unable to login to root and hence so we have created one user with password. I am able to read data from the mysql database. ...
-1
votes
0answers
26 views

How can i create custom cd installer with a package preinstalled on the actual install [duplicate]

How can I create a custom CD installer with a package preinstalled on the actual install? Like nginx and PHP-fpm?
0
votes
1answer
39 views

php7.2 and PDO - 'could not find driver'

first of all: System Ubuntu 16.04 Apache2 PHP 7.2 DB: MYSQL now following problem: I have two projects the first project is just a php file with the following code <?php $servername ='localhost'; ...
1
vote
0answers
19 views

Authorization error when using PHP mail function

I just noticed emails sent using a contact form in wordpress wasn't delivering and then I checked the mail log and found the following error: Authorization failed (535 Authentication failed: Bad ...
0
votes
0answers
9 views

Issue with mbstring on multiple php installations on Ubuntu

I have php5.6, php7.1, php7.2 installed on my ubuntu. The use is I can switch multiple versions as needed for the projects. Now, when switching back to php5.6, I am facing an issue with mbstring. ...
0
votes
0answers
23 views

Cannot enable pdo_mysql module

I am currently on 14.04. I am a PHP developer and trying to do a unit test using PHPUnit. My application works well in browser but I want to insure my application by writing whole bunch of unit tests. ...
1
vote
2answers
42 views

cronjobs under ubuntu php not working [duplicate]

I am trying to set up cronjobs to excecute some emailing to clients periodically but I am seeing no output fromm the test I wrote here is the crontab line * * * * * php /var/www/html/pms/notices/...
3
votes
1answer
52 views

Configuring zz_overrides.ini in Apache versus in Nginx

If you work with Nginx and you want to override your PHP settings from an external file that won't get deleted or changed in updates, you can create a /etc/php/*/fpm/zz_overrides.ini and put your PHP ...
0
votes
0answers
20 views

How to un-bind something from a port?

I keep trying to run a docker-compose up -d but it's failing because of this: ERROR: for php Cannot start service php: driver failed programming external connectivity on endpoint mystuff_php_1 (...
0
votes
0answers
21 views

Make files writable with default permissions in Ubuntu 16.04

I have a web server (VPS) running through vultr.com that has Ubuntu 16.04 on it. I run WordPress on my /www root. I then have a store on example.com/store that it is not through WordPress. It is ...
1
vote
1answer
49 views

How to install PHP in 18.04 clean?

I want to see where PHP is, because I've found it in /etc/php5/apache2/php.ini., And it's not there. I do not know which is the best way to install it, since I never did it, and I did not want to put ...
0
votes
0answers
74 views

Connect to postgresql using php pdo - not working

I have Ubuntu 18.04, apache2, PHP 7.2.10-0ubuntu0.18.04.1, and PostgreSQL 10.5 (Ubuntu 10.5-0ubuntu0.18.04) running on localhost:5432. I am trying to make a PDO connection to a database. But it's not ...
2
votes
0answers
66 views

How to install php7.2-curl without uninstalling libcurl3 in Ubuntu 18.04

I'm using a software that comes with a separate php and that php has php-fpm that requires libcurl3, but php7.2-curl requires libcurl4. When I run sudo apt install php7.2-curl the command uninstalls ...
-1
votes
0answers
16 views

LAMP and user permissions

I reinstalled lamp today because I want to build a PHP extension for a CMS. You hear, I'm new with server. But I've managed to activate all the apache modules I need and put my user in the www-data ...
1
vote
0answers
52 views

phppgadmin not working in Ubuntu 18.04

I have looked at the previous answers for this issue. I updated my apache2 and restarted it (rebooted too, old school). I made sure I had php on my machine. I looked at the apache2 error log and it ...
0
votes
1answer
20 views

Joomla Configuration File writing issue with Ubuntu 16.04 and nginx

I keep getting errors from joomla saying it can't write to. configuration.php An error has occurred. 0 Could not write to the configuration file I added recommended permissions to folders 755 and ...
1
vote
1answer
209 views

Unable to locate package php7.1-soap

I have installed PHP 7.1 on my Ubuntu 16.04 and now I want to install the SOAP module. However, apt-get install php7.1-soap results in: Unable to locate package php7.1-soap. I also tried apt-cache ...
0
votes
0answers
35 views

PHPmailer with Ubunutu Headache

So I'm pretty new to all of this and I took up a small project of mine as a challenge. I have a contact form on my website and I want that contact form to be sent to a private email (namecheap). I'm ...
1
vote
1answer
101 views

phpinfo() showing blank page on ubuntu18.04

I installed phppgadmin using this tutorial. How to Install PostgreSQL and phpPgAdmin on Ubuntu 18.04 The index.html file is showing fine that comes already installed. But when I made a php file to ...
0
votes
0answers
38 views

PHP Error Reporting

I am running Ubuntu Server 14.04 (not quite ready to upgrade to 16.04 or 18.04) with the standard LAMP stack. I have manually installed alternative PHP versions (5.6 to 7.2 inclusive) and switch ...
1
vote
0answers
8 views

EC2 instace setup with RDS

i have created and EC2 instance and select Ubuntu 16.04. Then setup a RDS instance. i have also installed phpmyadmin on EC2 and that is working fine with localhost and credential i have provided. ...
0
votes
0answers
22 views

After installation of FastCGI - PHP code is not being executed, instead code shows on the page

My Ubuntu is 14.04 and the Apache version is 2.4.7 I wanted to enable FastCGI on my machine. I used JDawgg's answer here : instructions to install FastCGI Unfortunately , PHP code is not being ...
0
votes
0answers
50 views

phpmyadmin showing php code 18.04.1 LTS

I am attempting to setup phpmyadmin on my Linux Ubuntu 18.04.1 LTS Dedicated Server but seem to be running into an issue of the page displaying plain PHP Code, i have looked on google and attempted ...
0
votes
0answers
15 views

How to force CRON jobs to use chosen PHP verion

I'm using Ubuntu 16.04 with Vestacp and few days ago I installed and using PHP 7.2 by following this tutorial. Now my server has 2 different PHP version (7.0 and 7.2). I have enabled PHP 7.2, however ...
0
votes
0answers
56 views

This website can't be reached

I just installed wordpress to vps server. I'm using ubuntu 16.04 at server. I already installed lamp and configured them. But still server doesn't show any php file. When I create index.html and ...
0
votes
1answer
70 views

How to determine what cause Apache to hang after 5 minutes online on ubuntu 16.04 server?

Good Morning, please help me to solve what is causing hang on my server Primary Server Specification ProLiant-DL320e-Gen8 RAM : 32GB DDR3 PROCESSOR : Intel® Xeon(R) CPU E3-1220 V2 @ 3.10GHz × 4 ...
0
votes
1answer
147 views

How to Install PHP Extension Crypto in Ubuntu 14.04

I am new to ubuntu. I am trying to install php 7.0 in my ubuntu 14.04 I have installed PHP using below commands. sudo add-apt-repository ppa:ondrej/php sudo apt-get install php7.0 sudo apt-get ...
0
votes
0answers
69 views

PHP Version 7.2.10 [duplicate]

I want to install latest version of PHP which is php7.2.10, but could not find any luck. What is a suitable solution? I have already add PHP repo, but the latest version it allows is 7.2.9.
0
votes
1answer
297 views

“Cannot create cache directory /home/<user>/.composer/cache/repo/https---packagist.org/, or directory is not writable. Proceeding without cache”

newbie here. I was trying to install MISP in my Ubuntu, following this installation guide:INSTALL.ubuntu1804.txt When it comes to this instruction: # Once done, install CakeResque along with its ...
0
votes
0answers
36 views

Cannot load the ionCube PHP Loader - it was already loaded

After an update of Plesk and some Ubuntu updates I started to get an E-Mail every 30 minutes with the following content: Cron [ -x /usr/lib/php/sessionclean ] && /usr/lib/php/sessionclean ...
0
votes
2answers
40 views

Acces to directory whose owner is 1023 - add 1023 to www-data (?)

I have a directory named "/data/storage" whose owner is 1023 with "777" permission. My goal is to have access to the content of this directory with a php application = i want to acces with a user ...
0
votes
0answers
130 views

Can't connect to MS SQL Server

I am trying to use Nginx+PHP7.2+MS SQL Server driver but it doesn't work. I have installed packages by this doc but apache2 installation (I need Nginx). And I've added extensions to /etc/php/7.2/fpm/...
0
votes
0answers
84 views

How to setup crontab to remove the php session files

I want to remove the PHP7.1 session file frequently, if I don't remove the files the new PHP session is not generating. So I want to set up the cron job to remove the PHP session. Session files are ...
0
votes
0answers
33 views

why my .php in var/www/html showing plain text in browser

phpinfo() even i want to show the phpmyadmin also cannot i checked from many website , they say is my apache2 is not configure with php7.0, but how to fix that pls help me XD
0
votes
1answer
19 views

Restricting Apache VirtualHosts to their own directory

I'm running Apache on Ubuntu 16.04 and 18.04, and I have configured it to accept connections from several domains. The sites are all stored in /var/www/html like so: example.com sub.example.com ...
0
votes
1answer
112 views

“Deprecated Functionality: The each() function is deprecated” what does this mean? [closed]

Every command I run on Ubuntu 18.04 seems to return this error: Deprecated Functionality: The each() function is deprecated. This message will be suppressed on further calls in /var/www/vhosts/...
0
votes
1answer
47 views

How do I install php in unattended mode in Ubuntu 18.04

I am trying to install php in unattended mode. That is, install php using pkg install without having to be prompted for location. Maybe there is an environment variable that must be set or something?
0
votes
0answers
45 views

Switch between php 5.6 and php 7.0 versions but working only php7.0

I followed these instructions and tried to install switchable PHP versions. But after switching to 5.6, web does not work and I see only this: But when I again switch back to 7.0, everything works ...