1
vote
1answer
42 views

How to change protected config files via web/php interface?

I'm looking for way to modify configuration file that resides below /etc directory via web (in particular case PHP) interface. While it's not a problem to read (if you set up file permissions ...
1
vote
0answers
37 views

Apache, php, maven and me—pemissions…

I have setup a local Apache2, with PHP and mysql. I wrote a maven build script to deploy my page on that local server. All that is working fine except for one thing: When I instruct maven to clean up ...
0
votes
1answer
346 views

Securing PHP's exec and others

I'm currently setting up an hosting service and, for now, i'm very concern about security. Here is my situation : I've set up multiple apache's vhost and for obvious securoty reason, i don't want to ...
0
votes
1answer
99 views

unix malicious scripts/ksh execution

I'm wondering whether my architecture poses a security risk. Details: The whole website is not ROOT owned but still, the APACHE user used instead has some pretty advanced permissions. I have a ...
1
vote
1answer
1k views

Setting up PHP 5.4 with MySQL to use Unix Sockets

I've compiled PHP 5.4.5 from source, and I've installed nginx 1.2.1 and mysql 5.1.63-0ubuntu0.11.04.1 from apt-get on my Ubuntu 11.04 LTS server. I installed nginx using this: add-apt-repository ...
1
vote
3answers
3k views

Why is crontab giving “No such file or directory” error when the file DOES exist?

I am getting the following three lines in an error message in /var/mail/username after the following job runs in crontab... 15 * * * * ...
1
vote
1answer
291 views

using monit to restart custom daemon

I wrote a php daemon using system daemon pear class. How do I use monit to restart it when it fails? I have the following code in my monit config file: check process merge with pidfile ...
3
votes
3answers
6k views

Apache executes HTML, but not PHP; PHP CLI works

I am running php 5.3.3 on rhel 6.2 with Apache 2.2.15 and am failing to get PHP code interpreted by Apache. There are no errors (in the system log, httpd/error_log, or php_errors.log) - I have ...
1
vote
3answers
4k views

PHP script needs permission to run a sudo command with shell_exec()

I have a PHP script which contains a shell_exec() and the command it executes normally requires sudo. I've edited the sudoers with visudo to contain the following: www-data ALL = NOPASSWD: ...
0
votes
2answers
2k views

Apache, virtual hosts, and default sender for sendmail

So here's my issue...I have two sites hosted on one machine using apache's virtual hosts. I want to send emails from the two different sites (domain.com and domain2.com) using the appropriate email ...
1
vote
5answers
2k views

Is There A Simple PHP Web Server [closed]

Is there anything that is a dead-simple PHP web server for Linux that literally takes a single PHP file and serves it via port 80. Don't want to configure a full blown web server like apache, ...
2
votes
2answers
2k views

Compiling PHP with GD and libjpeg support [closed]

I compile my own PHP, partly to learn more about how PHP is put together, and partly because I'm always finding I need modules that aren't available by default, and this way I have control over that. ...
0
votes
1answer
227 views

Which php binary should be used with a XAMPP installation?

When I execute which php in Bash I get /usr/bin/php. Everything is working fine but I'm wondering - since I'm running XAMPP, should I get /Applications/XAMPP/xamppfiles/bin instead? Note: I'm using ...
0
votes
1answer
491 views

How can we solve these errors for Nginx + PHP + FastCGI?

We're using Nginx + PHP + FastCGI for our web server and we just saw a bunch of timeout errors (see below) in the error log. We quickly restarted nginx and that fixed the problem - for now. However, ...
1
vote
2answers
228 views

php not working on local machine

OK, so I'v installed php5 and apache2 on my OS X using macports. php is running fine from the terminal, as is apache. I've edited my httpd.conf file to add the following: LoadModule php5_module ...
1
vote
4answers
432 views

Unix command to download a file off my server?

I have a few php files on my server that I created and I'd like to download them to this computer for backup purposes. Is there an easy way to do this? (I'm connected to my server via SSH). Also, are ...
0
votes
2answers
86 views

I updated PHP from source… How can I use it?

I'm on a Mac, and it has PHP 5.3.4 built in. I downloaded the sources of PHP 5.3.6 and installed it via ./configure; sudo make; sudo make install It is now installed in /usr/local/bin/php: ...
-1
votes
1answer
1k views

Connecting to MySQL Server from PHP Command Line (MAMP)

First of all, I'm using Mac OSX 1.6, MAMP 1.9, PHP 5.3.4, and MySQL 5.1.44. I'm in the process of setting up a video encoding service for a site using Chris Boulton's PHP-Resque and Redis. Once the ...
3
votes
1answer
76 views

Looking for automatic backup methods for sites

I need a suitable backup automation script that will run in PHP on my apache server. Some of my sites run Drupal. Which is the most suitable method to automatically backup both the code and the ...
4
votes
9answers
2k views

How can I test the security of my server?

How can I test the security of my server ? Please I know it is too general question. But I was wondering if there is a tester software or web service checking all ports of your server, or possibly ...
0
votes
1answer
173 views

Do I need to install mssql before I can use mssql.so with php on unix?

I didn't install any MSSQL instance on my localhost that runs windows. I just used the xampp package and uncommented the modules used for mssql. The mssql server resides on another Windows Server so I ...
2
votes
2answers
463 views

CHMOD in web hosting

my Hosting is use Apache and PHP i understand what it's mean 777 in CHMOD or drwxrwxrwx or Owner, Group, Public => read, write, execute. i understand with the RW CHMOD command but what about the X, ...
1
vote
3answers
173 views

How to make PHP more scalable on Unix Apache

I'm looking for free/low cost ways to make PHP running on our Unix Solaris servers (under Apache) more scalable and reliable. Do you recommend the free version of the Zend Server? Are there other ...
0
votes
1answer
559 views

Generate libphp5.so without root privileges

I'm trying to get php and apache playing nice together on RedHat 5. I don't have root access. So far I've got a custom install of apache2 in a non standard location and I've run: yum install php ...
0
votes
1answer
212 views

PHP Security: Need help understanding SUID

I am reading a book about PHP Security and there's the below I do not really understand, specific part in bold. So say PHP want to move a file that belongs to user A, PHP has to run as user A? Is that ...
1
vote
1answer
880 views

Best file structure for storing 1000s of photos (in different sizes)

I am developing a site that lets people upload images. We resize each image to 4 sizes. We're expecting lots and lots of images and are considering ways to increase performance with regards to the ...
1
vote
2answers
132 views

Recompile PHP *nix

I'm a total newb to *nix in all forms so assume I know nothing about it. I've been trying to use a php function set called "ZipArchive". It says I need to recompile php with the --enable-zip option. ...
2
votes
1answer
111 views

Why does my WHICH PHP have a different value than WHEREIS PHP?

which shows my local install of php and whereis php shows the global php install (shared env)
2
votes
3answers
186 views

Change Default Config Settings for PHP?

When setting up php on a new Unix-based server, are there any default PHP settings that you will always change? Any that you will always consider changing based on the particular environment?