Skip to main content

All Questions

Tagged with
1 vote
0 answers
682 views

Couldn't add PHP 7.4 to Webmin/Virtualmin

I followed this tutorial which actually referred to this but after I did the installation for my CentOS 7 and went to System Settings -> Re-Check Config at VirtualMin, I see the same PHP versions I ...
henix81359's user avatar
0 votes
1 answer
418 views

interpretation of yum error messages

I tried to upgrade php 5 to php 7 on CentOS6 but failed with errors like this: --> Finished Dependency Resolution Error: Package: php-mcrypt-5.3.3-5.el6.x86_64 (epel) Requires: php(api) ...
William's user avatar
  • 273
0 votes
1 answer
360 views

Trying to install phpBB (3.2.7) on my CentOS 7 VPS with Nginx and getting 403, 502 errors or the default page

I'm trying to install phpBB (3.2.7) on my CentOS 7 VPS with Nginx, and I keep getting alternately these errors: 403 - Forbidden The Nginx default page saying the web server is functioning, but 404 ...
SKNB's user avatar
  • 101
0 votes
1 answer
670 views

How do I prevent YUM installing a dependency?

I am trying to setup a CentOS server with multiple php versions. I've managed to do this so far by installing the REMI software collections of php56 and php70 and I got Apache running with different ...
frezq's user avatar
  • 493
2 votes
0 answers
109 views

Wordpress Home page only works. The rest of the pages and post returns Nginx 404. CentOS Linux 7.6.1810

I had successfully installed a wordpress site using the webmin but the problem is after i changed the permalinks settings of wordpress to '%postname%' the rest of the pages except the home page ...
Allyn Cuizon Cubero's user avatar
3 votes
2 answers
26k views

Apache not executing PHP on CentOS 7 in browser

I've installed the following: [root@localhost conf.d]# yum list installed | grep 'http' httpd.x86_64 2.4.6-80.el7.centos.1 @updates httpd-tools.x86_64 2.4.6-...
IMB's user avatar
  • 5,533
0 votes
1 answer
1k views

Nothing happens after yum install php72 php72-php-cli

I ran the following commands twice to ensure it's installed: yum install php72 php72-cli returns Package php72-1.0-1.el7.remi.x86_64 already installed and latest version now running php -v ...
IMB's user avatar
  • 5,533
1 vote
1 answer
2k views

Too many redirects on Magento Installation - Nginx/centos

I have a Magento Installation version 1.9.3.1. Until yesterday It was working fine, but now the frontpage is not working with the error - Too many redirects. On further checking in the console(...
Joshi's user avatar
  • 133
0 votes
1 answer
1k views

curl is executed twice from crontab

I have installed centos 7 and PHP 5.6.29 on my server, and I set up crontab to run this command every 15 minutes: */15 * * * * curl http://example.com/check.php but the command is run twice. Is ...
rrapal's user avatar
  • 1
0 votes
1 answer
16k views

Installing PHP extension mbstring in PHP 5.6 CentOS 6.8

I am using PHP 5.6 on my centos-release-6-8.el6.centos.12.3.x86_64 server. I got following error from one of my PHP function. Fatal error: Call to undefined function mb_detect_encoding() So, I ...
Sadee's user avatar
  • 101
1 vote
2 answers
500 views

Security regarding nginx + php on CentOS 7 with OwnCloud 9

I'm trying to setup a OwnCloud Server v9 for my freelancing purpose. SPECS: - CentOS 7 - nginx - php I'm a little bit confused. I can find only the info about the PHP Version 5.5 in the ownCloud 9....
Hendrik's user avatar
  • 11
3 votes
0 answers
3k views

OCI8 extension not loading in PHP 5.4, CentOS 7

I have a CentOS environment running as a VM guest. It runs and Oracle 12.1 Database, along with PHP 5.4.16, on Apache 2.0. I've gone through the installation steps to ensure that the correct OCI ...
cartbeforehorse's user avatar
0 votes
1 answer
2k views

Allow PHP to execute in a specific subdirectory, when parent directory is denied?

I operate a small shared server and would like to give some of my users the ability to execute PHP code from the browser (but not all of them) but have been unable to do so. In the top level directory ...
Dangus's user avatar
  • 1
0 votes
0 answers
686 views

How to uninstall a manual configuration of PHP 5.2.17 on CentOS 6.7 (Final)

Centos 6.7 (Final) comes with PHP 5.3.3, but the site running on the server needed PHP 5.2.17. Because it is not supported much anymore I manually configured PHP 5.2.17 using this guide: PHP ...
Schwifty's user avatar
0 votes
1 answer
1k views

install php-fpm on centos after remoe it

i install php-fpm and php-mysql and nginx then i remove it and update servers kernel. now, when i want to install php-fpm ,.. dont install $>uname -a 2.6.32-504.3.3.el6.x86_64 #1 SMP Wed Dec 17 ...
a tired's user avatar
0 votes
2 answers
3k views

nginx php can't write files on CentOS machine

I have this PHP code: <?php $myfile = fopen("testfile.txt", "w") ?> And the following permissions in my /usr/share/nginx/html directory drwxrwxrwx. 3 root root 4096 Nov 20 08:51 . drwxr-xr-x....
ctrlz's user avatar
  • 141
1 vote
1 answer
3k views

echo "something" > file not working when sh script is being executed by remote PHP server

I've got a web-server with my hardcoded webpanel for Source server management and I've got my VPS on CentOS which doesn't really want to execute sh script when asked from remote server. Web-server ...
Josh's user avatar
  • 11
1 vote
0 answers
2k views

How to upgrade Nginx and install php-fpm on CentOS

I want to upgrade Nginx via Yum, and also install PHP-FPM as usual. Most blog and online resources use the EPEL and REMI repos, but they're not working on my server. My OS info: Linux SUBDOMAIN....
PKHunter's user avatar
  • 225
1 vote
3 answers
13k views

CentOS: installing a GD Library

I'm running PHP version 5.3.5. Now I need to install GD Library. When I run: --> yum info php-gd, it says Missing php-common 5.1.6-43.el5_10. php-gd-5.1.6-43.el5_10.x86_64 from updates has ...
kmt's user avatar
  • 11
2 votes
3 answers
39k views

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

So at first I was getting this error when trying to create databases for use in phpmyadmin. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) I ...
Travis's user avatar
  • 383
0 votes
0 answers
117 views

Install PHP 5.3 for one directory only

I am on a CentOS 6 VPS, with Apache & PHP 5.4. I need to have PHP 5.3 on only one folder, but no where else. How do I install PHP 5.3 without conflicting with my current PHP installation and ...
aborted's user avatar
  • 91
2 votes
2 answers
7k views

Unable to write files on CentOS

I have a VPS running on CentOS 6 and apache2 as webserver. I have several PHP scripts running in my server, and everything goes smooth, except to file writing. For some reason, my PHP scripts are ...
aborted's user avatar
  • 91
2 votes
0 answers
1k views

CentOS 5.10 Yum Packages won't update/upgrade

I've just used yum to install PhpMyAdmin and it installed version 2.11.11.3-2.el5 which is completely out of date since version 4 is out. I've tried running yum update phpmyadmin but I receive No ...
Karl's user avatar
  • 121
1 vote
1 answer
2k views

How to install php soap with rpm packages in centos 6.4 x86_64

I want to install php-soap, centos says: [root@LMS-Cent64 soap]# rpm -ivh php-soap-5.3.3-22.el6.x86_64.rpm error: Failed dependencies: php-common(x86-64) = 5.3.3-22.el6 is needed by php-soap-...
hpaknia's user avatar
  • 902
12 votes
2 answers
27k views

Convert file to PDF using LibreOffice under user apache (i.e. when using PHP)

I installed libreoffice-headless and can convert documents when logged on into the shell as a normal user. [root@desktop ~]# yum install libreoffice-headless [root@desktop ~]# yum install libreoffice-...
user1032531's user avatar
  • 1,691
-1 votes
3 answers
567 views

Chrome can't connect to example.com server

How can I get all my php files run on a Linux server? I copied all PHP files to my Linux server under /www and I did change config settings like the following. Also I created an error log file under /...
kmt's user avatar
  • 11
0 votes
1 answer
3k views

library for html to rtf conversion [closed]

I am much needed the linux library for converting html document to rtf. As currently, I have used CMS kind of functionality where html is stored in database. I need to convert it in rtf. If any ...
Arun Jain's user avatar
  • 111
1 vote
0 answers
613 views

Trouble installing php-devel on CentOS

Working with a PHP install and trying to install APC on a server to help with speed issues with an application we're developing. We are having trouble getting phpize installed. phpize is not on the ...
swhitlow's user avatar
  • 111
1 vote
1 answer
760 views

PHP Exec function reports failure on some commands that work by SSH

I'm on CentOS 6 64bit with PHP 5.4.12. This is very strange behavior by PHP. See the following script: echo 'Trying Query: whereis jbig2dec<br>'; exec('whereis jbig2dec',$output) or die('...
Alasdair's user avatar
  • 867
1 vote
1 answer
82 views

How to dump data to DVD when the disk space reach 80% on RAID 1, and clean the dumped space from disk after burn

How to monitor in unix (FreeBSD) /linux (CentOS 5.6) the disk space if its greater or equal to 80%? If its equal or greater then 80%. How can i tell dump the data from a specific /misc/ folder to ...
YumYumYum's user avatar
  • 1,685
1 vote
2 answers
1k views

How to make my PHP script use the second hard-disk?

I have two SATA hard-disk drives attached to my server as shown in the following : [root@cl-185 /]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 222G 166G 45G ...
DeepeshAgarwal's user avatar
2 votes
4 answers
21k views

yum install a particular version

I am currently using centOS 5.2 I want to install php 5.3.3. how do I install using yum?
Subodh Chettri's user avatar
106 votes
4 answers
479k views

Checking what PHP version I'm running on Linux?

I'm running Centos 5 and I need to know what version of PHP I'm running, is there a command for this which I can run?
Elitmiar's user avatar
  • 3,204