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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
819 views

Help with simplexml / libxml

The owner of the business I work for just upgraded one of our servers to 16.04, and since then, simplexml isn't working anymore. The error I see in the apache logs is: Uncaught Error: Call to ...
Stephen Wangner's user avatar
1 vote
0 answers
4k views

PHP returns "permission denied". Possible ownership issue?

As an update. I just figured that it works okay for one level. For example, mkdir('/var/www/laravel/storage/first', 777, true) but doesn't work when there are multiple levels like mkdir('/var/www/...
Sergey Solo's user avatar
1 vote
0 answers
455 views

Apache2 needing restart every night

I would need help to pinpoint an issue which is needing me to restart the apache2 service every night approx always at the same time. Virtualized Ubuntu Server 18.10 which is running the afore ...
Shockwaver's user avatar
1 vote
0 answers
2k views

Ubuntu 18.04, PHP 5.3 installing

I have on my server Ubuntu 18.04 LTS 64bit with Plesk the PHP 5.3 with the instructions Can I install PHP 5.3.5 on Ubuntu Server 18.04 LTS? Installed So far, he has carried out the installation ...
Dominik Ziegler's user avatar
1 vote
0 answers
468 views

/var/www/ Security

I'm running Ubuntu 16. I have a public facing site, set up at /var/www/html/ There's some CMS software running, installed at /var/www/html/cms The config files can be stored outside of web root for ...
rjbathgate's user avatar
1 vote
0 answers
24 views

Will all currently installed PHP versions work after upgrading to Ubuntu 18.04?

I have currently 2 versions of PHP (7.1 & 5.6) installed on Ubuntu 16.04 LTS. I'm going to upgrade Ubuntu to 18.04 LTS. Will this upgrade caused any problem for my PHPs?
Fatima Rostami's user avatar
1 vote
0 answers
132 views

running xampp in ubuntu 18.04

I've installed xampp on my ubuntu 18.04. I am able to run new wordpress sites. However if i try to run my other wordpress sites from htdocs folder, it just downloads the folder but not serve me the ...
khkarthik's user avatar
1 vote
0 answers
5k views

How to install PSQL driver for PHP 7.2

I am trying to install Postresql driver for PHP, but when I run apt-get install php7.2-pqsql I am getting following error: The following packages have unmet dependencies: php7.2-pgsql : Depends: ...
Sasha's user avatar
  • 133
1 vote
0 answers
983 views

php installation showing dpkg error

while installing php with command sudo apt install php libapache2-mod-php php-mysql The terminal showed : genius@genius:~$ sudo apt install php libapache2-mod-php php-mysql Reading package lists... ...
Deepam Gupta's user avatar
1 vote
0 answers
417 views

Apache works in Ubuntu 18.04 but gets an error reading error.php

Apache works in Ubuntu 18.04 LTS but gets an error reading error.php or phpinfo.php page. The server-status page works so apache is working but can't read php pages. I tried to edit apache2.conf but ...
D Sayers's user avatar
1 vote
0 answers
420 views

Ubuntu 18.04 : file creation problem

I installed Ubuntu 18.04 on my machine two days back. Its a fresh installation on a new hard disk. I have an application that was built on PHP 5.5.9 & MySQL 5.5.61. When I installed PHP on ...
Apricot's user avatar
  • 173
1 vote
0 answers
208 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 ...
Mike's user avatar
  • 11
1 vote
0 answers
199 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 ...
Chas Coleman's user avatar
1 vote
0 answers
37 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. ...
Babar Afzaal's user avatar
1 vote
1 answer
2k views

Php7.1-fpm php.ini not changing at all

When I code this in my php file: echo php_ini_loaded_file(); The output is : /etc/php/7.1/fpm/php.ini Then I edit the php.ini sudo nano /etc/php/7.1/fpm/php.ini And change my memory_limit to ...
Garry14's user avatar
  • 41
1 vote
0 answers
651 views

php not activated after upgrade to 18.04 TLS

To my great stupefaction, php did not work on the 18.04 version. It did work for phpmyadmin. In looking at the configuration files php7.2.conf and phpmyadmin.conf I noticed that in the latter a ...
Huibc's user avatar
  • 21
1 vote
2 answers
6k views

PHP script not executing on Apache server. U-18.4 PHP 7.2 Localhost

My Apache is running and displays the Default Page. I can redirect a PHP file into php and the echo command displays properly. I've already researched previous versions of Ubuntu and can't find any ...
Phil Schaming's user avatar
1 vote
1 answer
2k views

nginx 502 bad gateway for 1 minute after restart

Everything worked fine until I update PHP to 7.2 For a minute after server reboot nginx throws 502 error. Nginx error log says if listening to unix:/var/run/php/php7.2-fpm.sock: [crit] 671#671: *2 ...
966p's user avatar
  • 111
1 vote
1 answer
1k views

php command missing from ubuntu 18.04

I have Ubuntu 18.04 bionic installed on my machine. It came pre-installed from the manufacturer ( System 76 ) with: apache2 2.4.29 php 7.2 mysql 5.7 ( both server and client ) nodejs 8:10 git 2.17.1 ...
Joseph Mansigian's user avatar
1 vote
2 answers
8k views

Apache and Nginx Crashing, Port 80 Being Used, Can't Get Either to Start/Stop/Uninstall

I've been trying to set up a dev environment on a new Ubuntu 18.04 installation, and I'm running into an issue with Nginx and Apache. First, I installed Apache2. Everything seemed in order. Then I ...
qotsa42's user avatar
  • 43
1 vote
0 answers
608 views

Unable to install libapache2-mod-php5 5.3+ on Ubuntu 16.04 [duplicate]

For some need I have to install php5.3 on my Ubuntu 16.04 system. I have installed PHP 5.3 from ppp:ondraj/php5. I have installed Apache 2.2. But while running apt-get install libapache2-mod-php5 it ...
indrajit guha's user avatar
1 vote
1 answer
6k views

The requested URL was not found on ubuntu linode 16.04 lts

I have hosted a codeigniter website on linode 2gb ubuntu 16.04 lts with apache2+ php7.0 etc. Home page works fine but when I try to open any other link from my site it shows the error: The requested ...
justmasif's user avatar
1 vote
1 answer
315 views

I mistakenly deleted php-fpm 7.0 pool.d/www.conf, how could I restore it?

I mistakenly deleted php-fpm 7.0 pool.d/www.conf, how could I restore it? I tried: apt-get upgrade php-fpm Without update before that. It seems I'm still in the range of 7.0. But I think the file ...
user avatar
1 vote
1 answer
93 views

cqpweb triggers error "DATABASE CACHE OVERLOAD!"

cqpweb is a web interface to corpora programmed in php and using a mysql database. We run it successfully (and for quite a time unchanged) on our server, but during the last week or so, some database ...
Sir Cornflakes's user avatar
1 vote
0 answers
28 views

Check if apache ran some Ubuntu commands

I have a form upload page and the uploaded contents are saved to uploads folder. And i uploaded a file test.php through form and i could access the file by altering the link to /uploads/filename . ...
Maverick1604's user avatar
1 vote
1 answer
40 views

Error when installing php-zip7.0

Whenever I run sudo apt-get install php-zip7.0 I get the following dpkg: error processing package mysql-server (--configure): dependency problems - leaving unconfigured Errors were encountered while ...
Jordan Baron's user avatar
1 vote
0 answers
273 views

How to scan for suspicious php files on filesystem

As in the title, I would like to scan some directories on my local filesystem for suspicious (eg. obfuscated, system-calls, create-method calls, strange file names,... ) PHP-Files. Is there a known ...
Ben's user avatar
  • 752
1 vote
1 answer
5k views

phpmyadmin error message autoload.php missing or unreadable

Trying to update phpmyadmin to version 4.7. Failed at that, now when I go to localhost/phpmyadmin I get this error message: File ./vendor/autoload.php missing or not readable. Most likely you did ...
Henry Hall's user avatar
1 vote
0 answers
356 views

Running sh script when file uploads on xampp server

I am making an application that requires a .sh script to be run on a file that has been newly uploaded on my XAMPP server (directory :/opt/lampp/htdocs/audio_server/uploads) which just simply moves it ...
yash tomar's user avatar
1 vote
1 answer
3k views

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/zmq.so'

When I execute php -v in Ubuntu 17.10, I get an error message: $ php -v PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/zmq.so' - /usr/lib/php/20160303/zmq.so: ...
VR Patel's user avatar
1 vote
0 answers
340 views

nginx phpmyadmin access denied on themes folder

location /phpmyadmin/ { allow all; root /opt/data; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$...
Blurry Script's user avatar
1 vote
0 answers
2k views

ImageMagick upgrade on Ubuntu 16.04 LTS

I installed imagemagick on my Ubuntu 16.04 server with this easy command: apt-get install php-imagick Everything is installed and is working fine with Nginx / php7.0-fpm. The actual installed ...
London Smith's user avatar
1 vote
2 answers
1k views

service --status-all takes too long... what are alternatives?

The command: service --status-all Takes too long to iterate through all of the services especially when all I want from the output is the name (I don't care if it's running or not). Is there a ...
OwN's user avatar
  • 181
1 vote
0 answers
2k views

Why or when do files get owned by daemon?

I am developing a PHP application that I'm running on an Apache server (using XAMPP). I have a .public_data folder that has sub folders enclosing some user data. These sub folders, and the files ...
progyammer's user avatar
1 vote
0 answers
3k views

How to upgrade php to version 7.2 [duplicate]

my phpinfo() shows php version 7.0.26. I want to upgrade it to php 7.2 I want to upgrade to phpversion 7.2. sudo apt install php7.2 Doesn't update the apache php version. How can I update the ...
Ramasamy Viswanathan's user avatar
1 vote
0 answers
542 views

Migrate web server (apache). Debian to Ubuntu Charset problem

I want migrate old website (php 5.6) from Debian 8.10 to Ubuntu 16.04.3 server. The apache configuration have been exported in the new server and mysql database is hosted on another server : no ...
Isopote42's user avatar
1 vote
0 answers
2k views

SQLSRV driver installation problem in Ubuntu 16.04 with php7

Installed sqlsrv using following steps but not able to connect sql server express 2017 Step 1. Install PHP apt-get update apt-get -y install php7.0 mcrypt php7.0-mcrypt php-mbstring php-pear php7.0-...
Dinanath Singh's user avatar
1 vote
1 answer
4k views

How to enable pgsql in PHP-FPM from a bash script for phpPgAdmin

I'm new to Linux and I have run across a problem that I cannot seem to solve. Running Ubuntu 14.04.5 LTS Trusty I'm working on a Vagrant file to spin up a new fresh dev environment as whenever we ...
Jack Pilowsky's user avatar
1 vote
0 answers
523 views

Oauth is installed but not working

I have installed ouath but it is not appearing on phpinfo So that i checked following things: Configuration File (php.ini) Path /opt/lampp/etc Loaded Configuration File /opt/lampp/etc/php....
passion's user avatar
  • 11
1 vote
0 answers
221 views

Can not create file using php

I want to create new file into /etc/freeradius I try to run PHP script,but the file not created This is my code: include('Net/SSH2.php'); include('Net/SFTP.php'); $sftp = new Net_SFTP('...
Abobaker EngIt's user avatar
1 vote
0 answers
2k views

Unmet dependecies with php 7 mcrypt

I got this error while installing php7.0-mcrypt package. Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to ...
Marco Zanaboni's user avatar
1 vote
0 answers
431 views

send email with php mail works sometimes ubuntu 17.04 and php 7 + postfix

I have a issue sending email with postfix + php7. I press button to send email and I get it, but sometimes mail is not arrived, clicking in the same button. After a while or few minutes I'm tried to ...
Carlos Parra's user avatar
1 vote
0 answers
549 views

How to install an older minor version of PHP7.0

I'm having a issue with PHP7.0 v 7.0.21 and the MSSQL driver. Every thing was working fine in 7.0.18. The only version I see in the official PPA is 7.0.21. It's possible to install this specific ...
Luis's user avatar
  • 11
1 vote
0 answers
498 views

Degraded server, how to solve this

I'm new to Ubuntu and just getting started understanding the principles. My server shows after systemctl status the server state degraded. I found the command systemclt --failed and it showed me the ...
Dominik321's user avatar
1 vote
0 answers
645 views

Install id3_tag in PHP Ubuntu

How can I Install and configure id3_tag package installed from PECL? I already have the package but I don't know how to configure it and where to put it in the file system.
Owen Bula's user avatar
1 vote
0 answers
111 views

Why does CircleCI bother with circleci-php-* while I am removing MySQL from it?

Why does this command remove also circleci-php-7.0.11? I am using Ubuntu 14.04 on CircleCI. sudo DEBIAN_FRONTEND=noninteractive apt-get remove --purge mysql-server mysql-client mysql-common How can ...
Speedy's user avatar
  • 31
1 vote
0 answers
887 views

compiling own extension phpize - Cannot find config.m4

I don't have config.m4, needed to compiling my extension. How can I get this file? I add that all question on this forum, explained that it should be. Information when I try use phpize: Cannot find ...
Daro from Poland's user avatar
1 vote
0 answers
95 views

PHP files are not executed on Apache using LAMP

I'm new to Ubuntu, I have Ubuntu 16.04, and I just installed LAMP using this guide https://www.unixmen.com/how-to-install-lamp-stack-on-ubuntu-16-04/ I've created testphp.php file inside /var/www/html ...
Avishay's user avatar
  • 11
1 vote
0 answers
3k views

Execute a Shell Script from php?

I'm trying to generate Android apk files from shell script, I want to execute a shell script file from PHP. When I run the shell script in the terminal, it works perfectly. If I try to run the script ...
Keerthivasan's user avatar
1 vote
0 answers
827 views

Crontab Ubuntu 16.04/PHP 7.0 cron job listed but PHP file not being run

When I enter crontab -e in the terminal I see my job listed to run every hour: 00 * * * * /usr/bin/php /var/www/html/cronjobs/job.php When I enter crontab -l I see the same job listed: 00 * * * * /...
Sad CRUD Developer's user avatar

1
23 24
25
26 27
53