Skip to main content

All Questions

Tagged with
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

15 30 50 per page