PHP is a widely-used, general-purpose scripting language that is especially suited for web development. Use this tag when you are dealing with a PHP script, installing PHP, or configuring a PHP installation.

learn more… | top users | synonyms

0
votes
1answer
291 views

Configure a subdomain (Virtualhost) for phpMyAdmin

I have a problem with configuring a subdomain (Virtualhost) for phpMyAdmin. My current .conf look like this: <VirtualHost *:80> ServerName php.erichermansson.com ServerAdmin webmaster@...
0
votes
1answer
52 views

Update /bin/usr/php in CentOS 6 [duplicate]

I have Plesk 12.5 installed, and it allows you to install multiple versions of PHP to be selectable within hosting spaces (domains), but the issue I've having right now is that the php that is being ...
2
votes
1answer
939 views

Change PHP PATH Variable for SSH

I'm trying to figure out how to change which version of PHP the php alias uses... I want it to use: /opt/plesk/php/5.6/bin/php But it currently uses: /usr/bin/php (I think) How can I ensure that ...
3
votes
1answer
148 views

Access a file in PHP through a symbolic link from a user that normally doesn't have permission

I have this website, where if the user submits a form, a python script is executed through a php page, and the python script creates a zip file and should offer it to the user for download through a ...
1
vote
0answers
72 views

Apache, can't link to Home directory, Alias does not work

I am trying to make a folder in which I can build websites (using php). I have switched from a Windows system where I was using Uniserver (http://www.uniformserver.com/) which is a setup with MySQL, ...
0
votes
1answer
454 views

Install libmysqlclient 5.5.3 on Centos 6

I'm installing Drupal 8 on my Centos 6 server. To do this I needed to upgrade both PHP and MySQL. However, I'm now getting the following error message: The libmysqlclient driver version 5.1.54 is ...
0
votes
2answers
1k views

How find and install PHP 5.3.10 or later on CentOS 6.5?

When I check yum list php it only shows 5.3.3 which is older than 5.3.10. How do I get and install the newer PHP? (Using CentOS 6.5)
1
vote
2answers
219 views

How can I reach an open & listening port on Linux?

After forwarding the port I wish to open, I cannot seem to connect or get any data to this port. The PHP CLI software I have written is listening to the port actively on Ubuntu 14.04. Part of the code ...
0
votes
2answers
333 views

Cannot install php-ldap on CentOS 5 server

I tried to install the php-ldap package on my machine but was not able to do so. It shows missing dependencies error for php-common, but the said package is already installed and updated. See the ...
0
votes
0answers
145 views

Unable to install php 5.2.12 on FreeBSD 10 because of libphp5.so missing

I participate in a project where old PHP 5.2 is needed. But I can't install it on FreeBSD 10, always I get this error: [trex@H417 ~/Install/php-5.2.12]$ sudo make install Installing PHP SAPI module: ...
2
votes
0answers
48 views

Unable to insert records on sqlite on a Linux environment

I tested a simple Php program using Sqlite3 instead of mySQL on my own computer and it works fine. What the program does is simple insert of record into a certain table. Now, when I try to do that on ...
0
votes
1answer
57 views

How can I display \n as new lines in multitail?

I am using multitail to monitor logs while I program. I really like this tool. However, it is hard to use it to view object output in a php error log because new line characters \n are not processed. ...
1
vote
1answer
205 views

Restart PHP-FPM from a PHP script

I am running a LEMP stack and wish to write a simple control panel for it. So, I want to be able to restart php-fpm from a php script. To achieve this, this is what I did. Created a binary wrapper ...
1
vote
1answer
273 views

How can I run sed to replace lines in a file or do similar things in PHP?

I am writing a web frontend for configuring OpenWRT. I'm using PHP to execute commands and all the uci commands are executing without issues. However, OpenVPN configurations cannot be done via UCI and ...
0
votes
1answer
111 views

Custom Linux Hosting Control Panel in PHP - running commands as root

I want to work on a custom linux hosting control panel based on my experience in managing LEMP/LAMP stack. This is just a pet project. I believe I have ran into some hurdle. The CP is being written ...
0
votes
1answer
64 views

My websites are not visible from Apache on localhost

I have installed Ubuntu-based Mint Mate 17.2 distro. I have configured to my taste. Everything is working fine. I have also installed Apache, PHP and MySQL individually using sudo apt-get install. It ...
1
vote
0answers
170 views

Purge PHPVirtualbox to start over - has persistent settings/files somewhere

So I am diagnosing an error in PhpVirtualBox related to the console. My Vbox starts and gets to login screen then when I try to console in I get Disconnect reason: E: TCP: SECURITY_ERROR Error #2048 ...
0
votes
0answers
159 views

why md5 encrypted password insert into php ldap admin extra {md5}

I am using python script to inter encrypted password into php ldap admin but the problem I am facing is LDAP add extra {md5} before the encrypted password, I simulated the code by creating two files ...
-3
votes
1answer
67 views

How to fix the Parse error: syntax error, unexpected ',' in line 378

I'm having trouble installing modules and extension in Magento. This is the code that's failing: $uriModified = $this->getModifiedUri($uri, $https); $this->_ch = curl_init(); $this->...
1
vote
0answers
228 views

aptitude automatically removes packages, while upgrading php [closed]

I've facing this problem since my debian wheezy distro has been upgraded (I'm currently running ParrotSecurity 1.9 and the current version is 2.0.4). I've added http://dotdeb.org/ to my /etc/apt/...
0
votes
1answer
282 views

Can't open .php pages in any browser

When I try to open a php page e.g.: http://minetest.net/download.php My browser doesnt want open it and instead it wants to download the php file.
2
votes
0answers
338 views

Nginx on Debian 8 dev setup. PHP via PHP FPM not working

UPDATE: Ok, I can now happily say that what you see below is the recipe for a happily working automated PHP and Nginx dev setup (with automatic domains) and all problems I had are now solved. I ...
1
vote
1answer
289 views

Problem with PHP, libncursesw and Arch

After doing a system upgrade, whenever trying to use php it complains: php: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory Sure, ...
0
votes
0answers
50 views

What is the matter with my apache?

Today my apache2 suddenly didn't run. cat /var/www/html/info.php <?php echo phpinfo(); ?> No output, no error info at all, no result when to input http://127.0.0.1/info.php in Firefox. cat ...
1
vote
3answers
290 views

parse credentials from PHP configuration file

I'd like to write bash script to parse data from a configuration file. I searched for this but without finding something I could modify to suit my needs. Joomla! config file: public $access = '1';...
0
votes
0answers
153 views

Calling a password checking command from PHP using exec() - how to escape user input?

I am working on a PHP-based website where the login form needs to authenticate against local users on the system via PAM - in other words, they should be able to login successfully if they enter a ...
0
votes
1answer
82 views

Find mails, pipe them to php and delete after

I have a script that saves to DB content of piped to it file. cat /mailpath/Maildir/cur/mailfile | php -q /scriptpath/mailPipe.php I need a shell script or oneliner to find all files in Maildir, ...
0
votes
1answer
141 views

Calling php function from /var/www/folder (as www-user), which is located in a file in /var (or any folder) (with root permissions?)

I wrote a script which "walks" through /var/www/xyz and scans folders and more. The folders are all 'user-bound', so the permissions for a single folder there are set to the specific user. Running ...
0
votes
1answer
60 views

Replace newlines in multiline input with “\n”

I've been trying to do some work with generating SQL commands with an interactive bash script and have a multiline string that I need to escape for use with MySQL. Notes has already been defined as a ...
0
votes
0answers
207 views

Can't compile php 5.3 on Centos 6

I need enable php-fpm on php 5.3.29 to Centos 6, I have this error while running the ./configure script: ... config.status: creating sapi/fpm/php-fpm.conf config.status: creating sapi/fpm/init.d....
0
votes
1answer
124 views

Backup issue DirectAdmin - Centos 7

i hope that someone can help me with this. In Centos 7 + DirectAdmin i have a problem when i wan to make a backup from all users as ADMIN. I have googled tried alot of things but nothing helps... I ...
0
votes
0answers
361 views

Doctrine OCI8 charset behavior between php-cli and php-fpm

My Oracle database is in ISO8859-1 (not by choice). I'm struggling with segfault from php-fpm for a couple of days now. To dig out the source of it I've set two parallel environnements with the ...
0
votes
0answers
177 views

Why does apt-get upgrade not install the latest PHP version?

I usualy do apt-get update apt-get upgrade in order to keep my Debian 8.x server up to date. I also tried apt-get dist-upgrade, however, my PHP version is still the same one that I installed months ...
0
votes
0answers
159 views

PHP-FPM / Nginx, hundred requests / second in a single file

My FPM Config (PHP 5.6.x with opcache) pid = /var/run/php-fpm/php-fpm.pid rlimit_files = 10000 rlimit_core = 0 [www] listen = 127.0.0.1:9000 listen.allowed_clients = 127.0.0.1 user = nginx group = ...
0
votes
0answers
86 views

“[unixODBC][Driver Manager]Data source name not found, and no default driver specified” When using Teradata ODBC Drivers

I am running a PHP script on a RedHat server using Teradatas ODBC drivers. <?php $conn = odbc_connect("Teradata", "username", "password"); $result = odbc_exec($conn, 'SELECT count(*) FROM table');...
1
vote
3answers
3k views

How to do a fast convert of a .xls (MS Excel) file to .csv

How can I do a fast convert of excel to csv? I have tried with php, perl, JavaScript. but it takes too much time. For example, for a 5MB file it will take 3-5 minutes.
0
votes
0answers
11 views

Separate web directories of nginx+php-fpm

On my server I run mediawiki, owncloud, roundcube on same hardware, with same nginx and php-fpm process. But I worry about security. Because if hacker get access to filesystem of one of this web ...
0
votes
0answers
33 views

php update on ubuntu 11

I need to install Moodle2.9 but it requires at least php 5.4.4. The server runs ubuntu 11.04 and webmin: ~# cat /etc/issue Ubuntu 11.04 \n \l ~# php5 -v PHP 5.3.6-13ubuntu3.10 with Suhosin-Patch (...
1
vote
0answers
157 views

Opcache and shared memory issue

I installed zend_opcache on my server box , but I can not increase opcache.memory_consumption over 1600 . (example : 2048) . after increase following error occur in server : Fatal Error Fatal Error ...
0
votes
0answers
148 views

NGINX Stopped Serving PHP After Upgrade

Preface: I performed a dist-upgrade of my Debian LEMP server from 7.x (jessie) to stable and PHP pages stopped displaying. I eventually figured it out but am not really sure -WHY- my fixed worked. I ...
0
votes
0answers
40 views

Problems / Issues with Importing osm-file inside Nominatim

Getting the following error while importing OSM data during the installation of Nominatim on Centos 6.6 cPanel server: ./utils/setup.php --osm-file india-latest.osm.pbf --all --osm2pgsql-cache 18000 ...
0
votes
0answers
103 views

Is my Nginx,php-fpm and mysql config good enough?

My Setup: Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GH 30 GB Ram 1 Gbps Premimum/Dedicated Line Softwares3 MariaDB 10.0.20 NGinx 1.8.0 PHP with FPM 5.6.8 Our servers gets a LOT of requests (more ...
1
vote
1answer
174 views

Nginx php doesn't execute

I'm using nginx on centos 7 with php 5.4.16. I have tried this to adding nginx.conf: location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass ...
0
votes
0answers
48 views

How should I upgrade php5.3.20 to PHP 5.4 or higher than in Centos 5.3?

I build a webs application by using Codeigniter3 which required PHP5.4 o higher than this version and hosted in Centos Linux 5.3. So how should I upgrade PHP5.3 to higher version? However what is PHP ...
0
votes
0answers
63 views

How to set user creation limit on vtiger CRM?

I have installed vtiger latest version. In the admin panel how to set the user creation limit? I need to set maximum users = 10.
0
votes
1answer
606 views

ispconfig PHP not parsing on apache2 virtual host

I have trouble installing ispconfig 3 on my (L)Ubuntu 15.04. I can fully install ispconfig but I can't reach the website when viewing the virtual host of apache2. I can open ispconfig from https://...
0
votes
1answer
194 views

Installing a different php version for a subdomain

I have a cPanel dedicated server installed with PHP 5.2.17. I need to use php 5.3 version for my subdomain and the directory needed php.5.3 is /home/website30/public_html/blog/. Can anyone provide ...
-2
votes
1answer
55 views

Errors trying to execute a Metasploit script

I'm trying to run this exploit in Metasploit on Kali Linux. I have the file in the exploit folder, I just need to execute the script, but I'm getting some errors. This is the description from the ...
0
votes
1answer
2k views

PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php_mysql.so'

I am running PHP 5.6 on Linux. When I try to load a PHP page, I'm getting the following PHP error. PHP Startup: Unable to load dynamic library /usr/lib64/php/modules/php_mysql.so' When I look ...
3
votes
1answer
741 views

install php7 alongside php5 on Ubuntu

I have installed php 5 as my main version on Ubuntu 15.04 which I use to develop my current projects. I want to install php 7 alongside php 5 is there a way to install both?