Tagged Questions
0
votes
2answers
222 views
How do I make PHP securely load files from the server root home folder on CentOS?
So I built what I thought would be this awesome reporting page in PHP that loads data from some CSV text files and creates nice Google charts and tables for our clients. I then thought it would be ...
0
votes
1answer
104 views
Bash config files being read in contradiction to `man bash`
While trying to determine the differences between .bashrc and .bash_profile I notice that .bashrc is never read, and that .bash_profile is only read from SSH, but not from PHP. This seems to ...
2
votes
2answers
677 views
Fatal error: Class 'HttpRequest' not found
Whilst trying to make this request I have this error.
I have tried to run "sudo pecl install pecl_http" but always fails.
Could not find curl/curl.h
After I have tired(yum instead of apt-get ...
0
votes
2answers
112 views
Upgrading php on a Linux server
I am running a Redhat on a webserver. The current version of php on the server is 5.1.6. I want to upgrade it to 5.3.8 so I downloaded php and compiled it and replaced the older php binary with the ...
0
votes
2answers
236 views
Removing a long string from php files - using grep and sed?
I have encountered some malware on my Linux server, and am trying to remove it from many php files.
I've tried endlessly with grep | sed and grep | tr and couldn't even erase a simple text string, ...
2
votes
2answers
132 views
What should I teach in my Linux class? [closed]
I'm teaching a basic Unix class using Ubuntu. We've already covered basic Unix stuff such as:
bash shell scripting
file and directory permissions
filesystem hierarchy
common commands
I would like ...
1
vote
0answers
244 views
Debian: Upgraded to php 5.3 and lost phpcli, php-pear, etc
I upgraded to PHP5.3 using this tutorial: http://www.debiantutorials.com/how-to-install-upgrade-to-php-5-3-on-debian-lenny/
It removed the following packages:
Removing php-pear ...
Removing ...
2
votes
0answers
647 views
MySQL socket and PHP (and other languages)
Background info
I'm currently running CentOS (or Red Hat?).
uname -a gives (I edited out my domain name)
Linux XXXXXXXXX.com 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64 ...
3
votes
2answers
13k views
What user should apache and PHP be running as? What permissions should /var/www files have?
I just spun up an Ubuntu 11.10 box and then ran apt-get install apache2 php5 to install apache2 and PHP 5 on the box. Now it is functioning as a "web server" and it loads the "It Works!" page. Now I'm ...
1
vote
1answer
333 views
redhat oauth.so missing
I tried to put the oauth on my redhat server, but since I got this message :
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/oauth.so' - /usr/lib/php/modules/oauth.so: ...
1
vote
1answer
346 views
cURL on Linux not compiled, although installed
cURL is not compiled into PHP. I'm running:
[root@vps ~]# cat /etc/issue
CentOS release 5.7 (Final)
Kernel \r on an \m
Then I execute yum install curl and yum install php-curl. Then:
[root@vps ...
1
vote
2answers
263 views
PHP package won't install correctly
Yesterday I did apt-get upgrade on my Debian/testing and broke a php5 package. I
even tried to remove & purge with apt and dpkg clean apt cache. When installed again clean, it fails with ...
1
vote
2answers
2k views
Apache 2 and PHP 5 not working
I have a test.php file in the web server directory with php phpinfo(); content. When I try to execute php test.php at a shell then it executes correctly. But when I try to open the web page in a ...
0
votes
1answer
181 views
PHP imageline function doesn't work. What and how should I download?
PHP function imageline on localhost works, but on VPS cloud hosting doesn't. I guess I have download something, but I don't know what. Could you give me a hand?
P.S. PHP GD is already downloaded.
2
votes
3answers
1k views
installing ffmpeg-php on centos
With the help of this guide, I am trying to install ffmpeg using these commands:
# cd ffmpeg-php/branches/ffmpeg-php/ffmpeg-php-0.6.1/
# replace 'PIX_FMT_RGBA32' 'PIX_FMT_RGB32' -- *
# phpize
# ...