0
votes
0answers
10 views

PHP - Socket programming [on hold]

I have need to start, stop, restart, force-stop(kill), get live output and send commands, to a java application. The java application is run on one server, and the web server is run on another ...
0
votes
0answers
5 views

Configuring Apache with PHP-FPM, Apache failed to start

I followed this guide to configure PHP-FPM with Apache on my server but after I restart Apache successfully: [root@localhost vhost]# service httpd restart Stopping httpd: ...
0
votes
1answer
9 views

PHP in Debian Terminal not working with extensions

I have Debian 7 installed on my server with a standard LAMP stack and also Mongo DB. Mongo as well as other third party PHP extensions work correctly through apache. These extensions however do not ...
0
votes
1answer
30 views

CentOS 6 - Send user defined command from PHP

I have a web control panel and I need my allow my users to send commands to their application. I a similar problem to SQL injection. $user_input='good command'; shell_exec('tmux send-keys session1:0 ...
0
votes
2answers
26 views

Sending mails and narrowing what script does it

I'm using a very old Ubuntu server that was some time ago a mail server which was infected. Sadly there is a running web page on that server. Some script/page/malware is trying to send a lot of spam - ...
0
votes
1answer
43 views

Difference between connecting to 127.0.0.1 and server ip

I am brand new to php, databases, and linux and had a problem where I could not connect to mysql databse with the php mysql_connection function. When I used the ip address of my VM I kepy getting a ...
0
votes
1answer
27 views

Unable to start bash script with shell_exec

I've been googling and trying to solve this problem with my php script for a few days now and I'm hoping someone here can see the problem I'm missing in getting my php script to kick off my bash ...
0
votes
2answers
38 views

phpMyAdmin cannot login - keeps asking for credentials

I have phpmyadmin on my Arch linux box, it is running, so is apache with php and mysql. When I go to http://localhost/phpmyadmin/, it shows the usual login prompt. However, no matter what I enter, ...
0
votes
4answers
70 views

Website not showing errors, just 500 page

I have moved some code from development to production and it was not working so I am trying to debug but for the life of me I cannot get access to the errors to find out what is wrong. I have tried ...
0
votes
2answers
28 views

Mounted HDD not having enough permissions from Apache/PHP

Piwigo gallery, on apache and php. The root system is a RAID 128GB. /var/www/html is on the root file system. Mounted the 320GB hdd to /var/www/html/320 using defaults, it's an ext4 fs. Put a ...
1
vote
0answers
69 views

Apache2 + Php + Pthreads HowTos

I'm running Ubuntu 14.04 LTS 64 bit. What I would really love to do is sudo apt-get install libapache2-mod-php5 but compile PHP with --enable-maintainer-zts so I could later install pthreads with pecl ...
5
votes
1answer
21 views

PHP version for super user is fcgi instead of cli

I have a strange problem with PHP version when using CLI. When I login as root and use: php -v I get an info that php is running in CLI mode which is fine, but as soon as I use sudo php -v I get ...
0
votes
0answers
14 views

httperrors for Linux

I'm here because the Google has failed to get me what I need. I just recently graduated from university, and I'm working on a website. Back in college I used the school's web server for my projects, ...
0
votes
0answers
42 views

Compile PHP by source. Stuck at phar.phar

I am trying to install PHP (Version - 5.5.11) by source since I need php installation with enable-debug and enable-maintainer-zts options. Downloaded the package ./configure --enable-maintainer-zts ...
0
votes
2answers
24 views

Cache a single PHP file with parameters

So I build a PHP script that receive some data and provides it like an API. The data doesn't changes much, but the script runs every time it's requested. Is there a way to tell Apache to cache the ...
0
votes
0answers
21 views

vhost running on local machine only shows root directory correctly

I am using Ubuntu14.04 and I have created a virtual host on apache2. I have my Laravel project trying to run on virtual host in apache2. I set it on /etc/hosts 127.0.1.1 mw Then since I have PHP ...
1
vote
1answer
86 views

How to execute a php file from a bash file?

My goal is to make a script that I can execute through a cron job. The script needs to find several killstat.php files in multiple directories and execute them. This is what I have so far: ...
2
votes
1answer
74 views

Adding sudoer for all but root

Here is the base of my problem: I would like to add sudo rights to a user, but not to use it as root for security reasons. I have a PHP script needing to run a command (drush) through exec(). ...
0
votes
1answer
58 views

GREP for multiple strings with wildcard

I am trying to copy lines from a log file from certain days. Here's an example of what they look like. 2014-05-01T15:53:16+00:00 DEBUG (7): 2014-04-301T11:08:10+00:00 DEBUG (7): This GREP ...
0
votes
1answer
27 views

login to phpmyadmin on suse 13.1 fails

' i try to login to PhpMyAdmin (on opensue 13.1 lamp) and get error: Login without a password is forbidden by configuration (see AllowNoPassword) What should i do for enter to phpMyAdmin without set ...
0
votes
0answers
31 views

Run java in php apache2 in browser [duplicate]

I wrote a simple PHP file which calls a java application. It runs on cli without problems but I can't run it on browser. Output: "Java HotSpot(TM) 64-Bit Server VM warning: ...
0
votes
0answers
163 views

How to install PHP5.3 instead of PHP5.5 in Linux

I am fairly new to Linux (just getting set up using the Mint 16 distro), and I got everything working correctly with my Apache 2.4.9 with MySQL and PHP5.5, but I am using this for local Web ...
0
votes
0answers
162 views

How can I compile and install Apache2.4.9 with multiple PHP versions (5.5, PHP5.4)

I have compiled apache2.4.9 and php 5.5 with php5.4 versions php 5.5 version is installed succssfully as apache handler and I tried php5.4 with cgi and enabled LoadModule cgi_module modules/mod_cgi.so ...
0
votes
1answer
377 views

Failed to open stream: No such file or directory

I have made a backup of all archives from ftp, deleted them all them copied all folders to the same place. Now I got this error: Warning: require(/../private/shADMIN/fuel/app/bootstrap.php): failed ...
0
votes
0answers
20 views

store mysql database details in linux

I have a test server and live server which has all the files the same (a cio) except I want to connect to a test copy of my msql database on the test server. How secure would it be to have a ...
0
votes
1answer
84 views

Stop execution of a function after a given time in PHP

I have five exec() functions in my script. I want to set it up so that if a function fails to respond in a given time, the function will be killed and the next function will start its execution. ...
0
votes
0answers
23 views

Bizarre lag in HTTP connection

Running on a LAMP stack, CentOS 6, Apache 2.2.3, PHP 5.4.25, MySQL 5.5.31 Have a very complex web application. It's been running pretty smoothly for about 5 years, now. Of a sudden we've run into ...
0
votes
4answers
289 views

Internal server error on user_directory

Today I am trying to install httpd and mysql on my fedora 14 PC. That works fine. After this I try to create a public_html folder on the user directory and allow php to access that folder. For that I ...
1
vote
2answers
53 views

Executing PHP from crontab

I am utilizing crontab to execute a PHP file as follows: 0 4 * * * /opt/lampstack/php/bin/php /opt/lampstack/apache2/htdocs/tests/test.php I am pretty sure that the file itself is working properly ...
1
vote
0answers
39 views

Socksify php script

I am trying to socksify php script network connections, however I am unable to do that, script ignores the socksifyer, just connects directly. I tried using tsocks and torsocks. tsocks php ...
0
votes
3answers
77 views

Mirroring a wordpress website with wget

I'm trying to download a wordpress web-site, my blog actually, and to get the php files as well. So far I've tried - wget -rkp -l3 -np -nH --cut-dirs=1 http://www.sharons.org.uk/ wget -r ...
0
votes
1answer
195 views

Run java in php apache2

I wrote a simple PHP file which calls a java application. It runs on cli without problems but I can't run it on browser. Output: "Java HotSpot(TM) 64-Bit Server VM warning: ...
0
votes
2answers
1k 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 ...
1
vote
1answer
212 views

Apache2 + mod_fcgid + php stopped working after upgrade from Debian squeeze to wheezy

I've updated my server from Debian squeeze to Debian wheezy. On this server are several apache2 vhost which running php via mod_fcgid (I'm also using mod_suexec but this shouldn't be the problem). ...
0
votes
0answers
74 views

nohup process commands to detect if process is still running and if not, re-run process in lamp stack

I am running nohup to keep a php script running in the background. Is there anyway to ensure the process keeps running? Is there a command that can check to see if the process is still running and if ...
0
votes
1answer
223 views

object not found in lampp ubuntu 13.10

am a newbie linux user.i have installed xampp 1.8.3-2(lampp)on ubuntu13.10 and configured it. i paste my wwwfolder to ubuntu 13.10 in/opt/lampp/htdocs. now the owner of www folder is root with ...
1
vote
1answer
34 views

Options to configure Apache to take into account other folders despite /var/www

I am using Ubuntu 12.10, and I know that if I place a php file (index.php) under /var/www, and I visit localhost:80/index.php, it will work fine. However, say that I have multiple projects in order ...
0
votes
1answer
60 views

Secure Apache PHP installation: Using the right user:group

i want to "perfectly" protect my apache PHP installation on a linux server. In the history, i had problems with script-virues / exploids, so it needs to be a "secure" solution. My current solution: ...
2
votes
1answer
196 views

PHP won't run on command line Linux

I think I may just be missing something simple, but I can not get PHP to run anything on the command line. I'm using Linux Ubuntu. All the exact same files run as expected via the web. I have tried ...
0
votes
0answers
463 views

Can't install php-fpm: dependency issues

I'm trying to install php-fpm for my nginx server. Trying to install through yum (yum --enablerepo=remi install php-fpm php-mysql), I get the next error: Error: Package: ...
1
vote
1answer
117 views

Why “php x.php &” leads to a STOPPED background process

x.php: <?php sleep(15); ?> console: $ php x.php & [1] 5742 [1]+ Stopped x.php Result: a "STOPPED" process - it's there forever until I send a TERM and then CONT ...
0
votes
1answer
254 views

How do I make a shell script that restarts a Java program every x minutes in Linux?

How do I make a script that restarts a java program every X minutes in Linux? I will be using: PHP A linux godaddy hosting account (classic, and I don't know what OS) a .sh script FTP (to access ...
0
votes
1answer
46 views

How do I monitor resource usage of crond php scripts?

I am using a VPS which is running 5 php scripts on a minute by minute basis using cron. Each script, itself, loops to execute a mysql query then sleeps for between 5 and 15 seconds. They all ...
0
votes
0answers
32 views

Building php module on linux - lpsolve55

I'm trying to install a php model called lpsolve. I installed it on OS, now trying to make a use of it for php. I installed them as explained here: http://jeyroz.tumblr.com/post/605709794/lpsolve-php ...
0
votes
0answers
37 views

Routing SSH connection via PHP webserver

I have a interesting task I'm trying to do, looking for help :) Basically, I have a home Ubuntu server box. On this box, it has a cron job to load a webpage on my web server that is hosted on a ...
0
votes
0answers
49 views

Debian PHP 500 error

When I try to execute a php script (let's say /var/www/test/hello.php), I get an error in /var/log/apache2/error.log saying: "/var/www/test" is writeable by others Changing the permission on ...
0
votes
1answer
353 views

Checking what PHP version I'm running on Debian?

I'm running Debian 6 and I need to know what version of PHP I'm running, is there a command for this which I can run? I tried "php -i" and "php -v" from a previous question.. ...
0
votes
0answers
43 views

Apache doesn't start in Ubuntu

I'm trying to get my apache2 to work under Ubuntu. I've installed all packages from MySQL to PHP and Apache. When I program on PHP, the PHP scripts aren't recognized and aren't interpreted. I ...
0
votes
3answers
7k 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 ...
0
votes
0answers
13 views

Incorrect visualization fo character in local server

I am playing a little with a software of accounting based on PHP and MySql. I have installed on my Linux Debian a version of Lighttpd. The problem is that some special character are not well ...