PHP is a widely-used, general-purpose scripting language that is especially suited for web development.
0
votes
1answer
12 views
how to automatically cleanup failed PHP uploads in /tmp?
How can I automatically cleanup failed uploads?
PHP is storing them in /tmp and all file names look like phpAbCDeF (basically php followed by 6 characters).
I know that I can use the command:
find ...
1
vote
2answers
25 views
Arch Linux: I get 500 error when trying to open PHP file
I get the HTTP Error 500 (Internal Server Error) error with Chrome when trying to open a simple PHP file.
I have installed Apache and PHP correctly as instructed in this article. Including the PHP ...
0
votes
1answer
20 views
Use an existing wampserver from a windows partition on linux mint
I dual boot Windows 7 and Linux Mint 14.
I have wampserver installed on Win 7 and have a couple of websites already set up there.
Is it possible to use that same installation apache/mysql/php ...
1
vote
0answers
11 views
Class 'COM' not found [migrated]
I am trying to use COM object in my script and running the script on linux server and got below error.
Fatal error: Class 'COM' not found
Any help?
0
votes
1answer
46 views
Arch Linux: Apache just isn't interpreting the index.php files
Title is self explanatory.
I'm on Arch Linux, I installed the apache, php, php-apache and mariadb packages.
I have added the following line to the /etc/httpd/conf/httpd.conf file:
LoadModule ...
0
votes
0answers
20 views
sybase and iconv
I inherited an old Ubuntu 6.10 server running php 5.1.6 which is using sybase to connect to MSSQL. A user submitted some text containing an en-dash and crashed one of my script. It turns out sybase ...
0
votes
0answers
19 views
uploading from Netbeans to remote CentOS server failed
I have a php web application on Netbeans on my Ubuntu , and server is CentOS on a virtualBox .
Suddenly uploading to server stopped and I'm getting these errors for non-root user :
Failed:
file ...
0
votes
0answers
10 views
How to backup a current php installation?
I'm using an old RHEL4 on a server where i need to update (from source) the php version. Moving from 5.2.5 to 5.4.14.
How can i backup the old php in order to restore it if there is any problem with ...
1
vote
0answers
52 views
Debian - Apache 2.2 & mod_php - memory usage
I have a memory problem with my servers (Debian 6.0) where is installed Apache httpd 2.2, mod_php and APC.
Actually it seems that httpd allocate all available memory (4GB) when is waiting too much ...
0
votes
2answers
171 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
17 views
How to resolve midgard2 already loaded?
When running PHP on my Ubuntu 13.04 machine I get the following warning:
PHP Warning: Module 'midgard2' already loaded in Unknown on line 0
This tells me exactly nothing. How could I resolve this ...
0
votes
2answers
59 views
Ubuntu crontab php not working
Yes, I have read many, many documentations but I can't get it to work. I have a simple single php file which I want to run once or twice in a minute. My php file is called: cronjob_refresh.php and I'm ...
0
votes
2answers
50 views
Problem with configure and build php 5.2 on redhat 5
I downloaded php binaries and tried to build the same using following command.
./configure --with-apxs2=/usr/sbin/apxs --with-mysql
But i'm getting the error related to mysql client library.
...
0
votes
1answer
105 views
Is there any command to enable/disable a php extension from command line?
Is there any command to enable/disable a php extension easily from command line? (php.ini)
0
votes
0answers
171 views
centos 6.3 apache local network not working
I have clean installed centos, apache, mysql, php and have my php pages running fine at 192.168.1.66. I type that ip in on another computer (macbook) on the same network and get nothing. Page time ...
0
votes
1answer
68 views
PHP compilation - link to library
I am compiling php 5.3.13 on my server. I want to create an autonome php5 folder.
So prefix is:
/usr/local/php5
In this folder I have a lib folder, where I put all lib needed for php to be executed ...
0
votes
1answer
271 views
Installing Ioncube loaders without issues CentOS 5.9
Seem to be having issues installing Ioncube loaders on CentOS 5.9. I followed this guide to install Ioncube:
but it's still not working on the site at all, I keep getting this error on BoxBilling, ...
0
votes
1answer
96 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 ...
1
vote
1answer
166 views
Nginx + PHP + FTP - user permission issue
I have a wordpress copy installed on /home/username/public_html/site, and now the problem is :
Nginx running PHP with "www-data" identity
The site folder owner and group are "username", not ...
0
votes
1answer
190 views
Nginx Ubuntu PHP5 - not found php-fastcgi.pid
I was setting-up Nginx with PHP5 on Ubuntu 10.04.4 TLS Server, and follow this instructions -
http://library.linode.com/web-servers/nginx/php-fastcgi/ubuntu-10.04-lucid
Everything is fine before I ...
2
votes
1answer
173 views
PHP phantom cron job
I disabled all my cron jobs by putting a # in front of them. Except for one:
@reboot echo "Hi I rebooted"
The rest are:
#0 2,14 * * * /home/backup1/mysql-backup.sh
#0 * * * * mono ...
2
votes
2answers
148 views
I can not remove folder from server
Accidentall I created the folder on remotely server (Server OS is Linux) using php: mkdir("folder_name",0);
Now I can not delete this folder from server. I think this is from permission, because 0 is ...
0
votes
3answers
504 views
HTTPd shows PHP code instead of executing it
My setup:
# grep php /etc/httpd/conf/httpd.conf
LoadModule php5_module modules/libphp5.so
AddType x-httpd-php .php
AddHandler php5-script .php
# grep PHP /etc/httpd/conf/httpd.conf
PHPIniDir ...
2
votes
2answers
614 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 ...
1
vote
2answers
237 views
SSH tunnel to MySQL for PHP scripts
I need to establish an SSH tunnel so that my local PHP script can connect to a MySQL server on a remote server.
Remote machine: MySQL (127.0.0.1:3306) on Linux (SSH port 44422)
Local machine: Linux ...
1
vote
2answers
182 views
CentOS, PHP file is running from browser, not from cron daemon
I am working on CentOS.
I have created a PHP file which run from browser
http://mydomain.com/backupfile/dobackup.php
I have added the script from crontab and made the file executable, but it is ...
2
votes
2answers
128 views
How do I change emails from: address on FreeBSD?
Emails are now sent from www@hostname, but I want them to be sent from [email protected]
My developer said it should be in php.ini but I figured out this is true only for Win32 systems.
How do ...
1
vote
2answers
181 views
Dotdeb says PHP 5.3.18 is the latest
I'm using Debian 6 . Now I don't understand why it says PHP 5.3.18 is the latest when 5.3.2 has been around for 2 years? I need at least PHP 5.3.2 for my symfony project. Thanks.
1
vote
1answer
95 views
Compile IMAP with certain PHP API version for MAMP
I've installed MAMP on Mac OS X (where PHP 5.3.15 with API version 20090626 is installed), but IMAP there is without SSL support.
As long as MAMP using PHP v5.4.4 (API version 20100525) I've ...
0
votes
2answers
2k views
Updating PHP 5.3 to 5.4 in CentOS
I followed this tutorial to update PHP from 5.3 version to 5.4. My distro is CentOS 5.5.
After running the following command:
yum --enablerepo=remi,remi-test install httpd php php-common
I get ...
2
votes
2answers
1k views
How can I install php5-curl on Ubuntu 12.04 LTS (GNU/Linux 3.2.0-24-generic x86_64)
I have a working server running Ubuntu 12.04 LTS (GNU/Linux 3.2.0-24-generic x86_64), including apache and php. Now I want to add curl support for php by running this:
apt-get install php5-curl
...
1
vote
2answers
212 views
How to install PHP 5.3 on RHEL5
I'm working with a RHEL5.1 box that has PHP 5.1.6 installed by default. I need to upgrade PHP to PHP 5.3.x. I've tried several tutorials and have had no luck. Can anyone help me out with this?
1
vote
0answers
149 views
/etc/php.ini not being read on fastcgi?
On my DV from MediaTemple running Centos 5.8 I installed APC.
I then added extension = "apc.so" to /etc/php.ini so APC will be enabled for all existing and future sites on the server.
When I checked ...
2
votes
3answers
481 views
Cannot Access Webpage from Outside LAN
I have a CentOS 6.0 web server running httpd, mysql, php, and Joomla 2.5. It has a static, public IP address. I can access the webpage (which is the Joomla management console) by IP address perfectly ...
1
vote
1answer
163 views
nginx + php5-fpm + htdocs on USB
None of the configurations that I've looked up can help with setting up Nginx to serve PHP files on a mounted USB folder. I'm currently getting file not found when I try and access a PHP file on the ...
0
votes
2answers
96 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 ...
3
votes
2answers
2k views
Execute shell script from php, as root user?
Need to execute the following line from PHP:
$res = shell_exec('sudo sh /home/nicklas/cronjobs/make_account.sh
username password');
The problem is nothing happens on execution. If i try to ...
1
vote
3answers
786 views
Curl not found (Glype)
I'm trying to install proxy software called Glype on my server. It continues to tell me that "Glype requires cURL/libcurl". I have the latest version of curl installed. Why might this be happening? ...
0
votes
1answer
659 views
Install another PHP version. Fedora 17
How can I install another PHP version?
I have php 5.4.5 for now, but I need the version 5.3.15 running too.
How can I perform this on Fedora 17? Without using a Virtual Machine?
1
vote
0answers
78 views
Unmanaged VPS bought today. Sendmail not functioning correctly
I purchased an unmanaged VPS today. I moved my website on over, and when I try to send an email. It returns a blank page. Not to mention I had to install PHP myself. Apache was there, for some reason, ...
0
votes
1answer
163 views
PHP file recursive change array key on find [closed]
I used PHP array
$lang['module']['1'] = 'Title';
$lang['module']['2'] = 'Title2';
$lang['value'] = 'text123';
how i can use replace in terminal Key Value to CASE UPPER ?
$lang['VALUE']
...
1
vote
1answer
1k views
Not able to configure phpmyadmin in Ubuntu 12.04
I tried to configure LAMP on Ubuntu 12.04 following this guide (http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-ubuntu-12.04-lts-lamp). But when I point to ...
1
vote
2answers
409 views
How can I get crontab to use a different PHP installation location?
I have a MAMP setup which runs PHP 5.3.5 on my Mac OS X 10.5 computer. I am trying to install a crontab that executes a PHP script, which is located on my MAMP server. I can only get the crontab to ...
4
votes
2answers
416 views
apache and php Segmentation fault [closed]
I have recently migrated to Archlinux. I installed Apache, php and mysql according to the Arch Linux LAMP wiki page.
Now I have setup a virtual host for my new Symfony project.
For every request I ...
3
votes
1answer
79 views
Where to securely place files needed by PHP in Linux filesystem (according to FHS)
I have a PHP script running on my LAMP server that requires certain files in order to produce HTML content. The script is publicly accessible (i.e. http://example.com/script.php) but the files ...
2
votes
1answer
64 views
PHP Bash error suppresion
I'm using a PHP script from cli, the script calls exec() a few times. There are some minor errors sometimes, which are handled by the PHP script. I'm suppressing the errors by appending 2>/dev/null ...
-4
votes
1answer
302 views
Changing IP address of Apache server using PHP statically
I want to statically assign the IP address of my Arch linux using php. I want to change the IP by using netmask,interface,broadcast,address & gateway. The user puts up the values into a html page. ...
0
votes
3answers
200 views
Create shortcut for PHP
I have XAMPP installed and my PHP is:
/opt/lampp/bin/php-5.3.8
Every time I need to execute a PHP file I need to do this:
/opt/lampp/bin/php-5.3.8 testando.php
Is there another way to execute it ...
1
vote
0answers
727 views
Nginx Owncloud 4 produces “No input file specified.”
I'm trying to setup an Owncloud 4 instance with nginx as a webserver. The host device is a Raspberry Pi with preinstalled Debian 6. When I try to open the URL to the Owncloud installation in a ...
1
vote
1answer
477 views
Connect to a remote mysql server with bash php or perl
What is the best and lowest resource way to connect to a remote mysql server (server1.example.com) and execute queries like
INSERT into SERVICES (user, id) ($user, $id)
from server2.example.com?
...