The php tag has no wiki summary.
0
votes
2answers
44 views
PHP, SSH2, and Bash Scripts not getting along
I am using the SSH2 library in my PHP to execute a SH script on a remote server. When I run it manually on SSH, it works just fine. However, when I try to run it through PHP, the script starts, but ...
0
votes
1answer
44 views
Sudden load average increase with same number of users and having changed nothing
I'm very novice in termos of administrating a server.
Website was running fine till yesterday, load averages under 1.
Suddenly, yesterday it stopped working fine, I was getting load averages to up ...
0
votes
0answers
15 views
PHP MySQL script - sometimes it works well, sometimes the connection resets
I have a PHP script that queries a MySQL table and exports to .csv. Pretty basic stuff. About 1000 row table.
The problem I'm having is that sometimes it will work instantly (download the .csv), ...
0
votes
0answers
11 views
Detailed error from IIS 6 & PHP instead of 500 Internal server fault
I am currently trying to debug my PHP application on a IIS 6 server. As soon as I make an error in the PHP code I get a "500 - Internal server error" page.
I have understood that the default way to ...
-1
votes
0answers
14 views
cron job on parallel plesk 10.4.4
I have set the php file in cron job on the parallel plesk 10.4.4.I'm running the following code in cron job.
<?php
include("../includes/function.php");
$conn->connect();
...
1
vote
2answers
27 views
Apache shows .html, .php files as .txt
I have files in public_html (index.html). When I go to the main page it gives me "Apache Test Page". When I try to add link to them manually (domain_name/index.html or index2.php) it gives me only ...
0
votes
0answers
27 views
Virtualbox control panel [closed]
I am looking for a control panel to run on CentOS to control virtualbox over the web. It needs to limit users accounts to only access certain VMs, and the users can only perform certain tasks on the ...
0
votes
1answer
21 views
Setting per-folder values for suhosin settings in .htaccess
I've set suhosin.perdir = 'p' in my ini file. I would now like to change suhosin ini settings on a per-folder basis.
The following all work (running phpinfo() inside the desired folder shows the ...
-2
votes
0answers
29 views
two applications (ruby and php) on same url [closed]
I have two applications. One is PHP and the other is Ruby.
I have only one domain (www.example.com) and I want both these apps accessible on same domain but with different URLs.
For example suppose ...
0
votes
0answers
15 views
How do I resolve a PHP error “Failed opening required” in a symlink context?
I am running Apache/PHP on MacOS X Lion 10.7.4. My directory structure is set up as so:
/Users/achan/Sites/
lrwxrwx--- 1 achan staff 23B Apr 27 16:21 epwbst@ -> /Users/achan/dev/epwbst`
...
1
vote
1answer
28 views
Check VPS resource consumption of a website
I've got a website (I'd say poorly optimized as it's my own code and I've never optimized a website before) and now that it's getting more visits the server load increases to up to 4-5 when there are ...
1
vote
1answer
14 views
Apache server Website should point to Vhost but is searching in html folder on upgrade
I upgraded my server from 2.2 to 2.2.22 . When I open my website in chrome it says successfully installed and
You may now add content to the directory /var/www/html/. Note that until you do so, ...
-5
votes
0answers
38 views
In which laguage is this written [closed]
I recently found some unfamilir codes when i tried to install horde web mail on my website !
php -l mime_drivers.php
anyone know how to execute/run these kind of codes on a shared web hosting or
...
1
vote
1answer
40 views
Apache's “OPTIONS * HTTP/1.0” running 100% CPU - Runaway httpd process
I have this recurring issue where an httpd processes will randomly start running at 100% CPU. Often other httpd processes will join in, and it will continue until I restart Apache. Oddly, the thing ...
0
votes
0answers
41 views
How to get Curl Working on my server
I followed the instructions here to install curl in my server but it is without open ssl. I did it through SSH, i got the root access. I restarted my apache after the installation but i can't get ...
0
votes
2answers
13 views
How can I check the syntax of another PHP script in PHP before it is include()'d
In PHP I am making a kind of bot which dynamically includes a few different PHP files. Since these PHP files may change, I would like the files to be checked for syntax/parse errors before the ...
1
vote
1answer
36 views
syntax error near unexpected token `<'
I have set the php file in cron job on the parallel plesk 10.4.4 server.In notification email it is showing the errors.
syntax error near unexpected token `<'
syntax error near ...
-3
votes
0answers
18 views
The default server IP shows when using PHP mail() while my website is hosted on another IP , can I use my website IP
I have a server with multiple IPs.
123.123.123.123 Default
123.123.123.124
123.123.123.125
when using PHP mail function from a site hosted on 123.123.123.124
the email ends up in the junk ...
2
votes
1answer
42 views
Potential Bot-Net organizers probing for new machines?
I'm getting a number of exploit attempts from different IP's today.
GET ...
0
votes
2answers
34 views
url redirection using .htaccess
As i have changed my dynamic urls to static urls. now i have one dynamic url which is already distributed to so many sites. as i dont want to loose traffic whenever anyone trying to access my dynamic ...
0
votes
1answer
24 views
PHP session timeout on shared sessions file storage
So to start of with I know that using a memcache or a database would be a better way to go. But I have (for now) made a load balance environment where I have a shared PHP session file storage. Some ...
0
votes
2answers
37 views
XAMPP/PHP on Windows
I am running XAMPP on Windows Vista. XAMPP is a ~one year old install with all default options.
I wrote a script in PHP that will do a web crawl and place data in mysql. I placed ...
3
votes
3answers
43 views
Running bash script with php under lower priority or limit CPU
I have a bash script which runs a set of php scripts. When it runs it takes an hour and pegs the CPU at 95-99%. This causes our lamp stack (mainly the apache process) problems and our website on the ...
0
votes
1answer
27 views
OPENCART - Warning: require(): open_basedir restriction in effect
I have problem on my new, first VPS with CentOs and ISPconfig.
I can install eshop OpenCart ( opencart.com ) My domain: jonnie.cz ( If you doesnt see any error, refresh the page )
In settings of ...
0
votes
1answer
69 views
PHP 5.4.3 configuration with Apache 2.2
Recently I downloaded php 5.4.3 , Apache 2.2 and mysql 5.5.24.
How I will configure these things manually in my windows7. I found some tutorials.
In that they are telling need to add these line in ...
0
votes
1answer
16 views
What is considered as output when running a PHP script cron job?
I am running a PHP script which inserts lines in a database every minute, using a cron job.
My provider says:
An email will be sent to this address ONLY if your cron produces output.
If no output is ...
0
votes
1answer
23 views
How to upgrade php curl on Ubuntu 10.04
I have a web service on 64bit AWS/ubuntu 10.04 machine. Current php ver PHP Version 5.3.2-1ubuntu4.15. Current curl ver: 7.19.7
This Curl version has a memory leak and I need to upgrade to V 7.25.0
...
1
vote
2answers
49 views
Generate automated cron jobs at different hours
Greetings I'm new to cron. Is it possible to run automated cron jobs at random minutes for every hour?
the syntax should be different every day, for example:
...
1
vote
1answer
31 views
PHP's include/require functions fails for paths with “../” or “./”
I logged into my development server today to find that PHP was failing to include some files with this E_WARNING message:
Warning: include_once(../file2.php) [function.include-once]: failed to open ...
0
votes
0answers
24 views
Apache dies when I run ImageMagick in PHP
I am running:
WampServer 2.0
Php 2.3.0
Apache 2.2.11
ImageMagick 6.7.7-0 2012-05-17 Q16
Windows XP
.net Framework 3.0
I recently was able to hack together an install of imagemagick into the above ...
1
vote
2answers
44 views
'/var/spool/cron' is not a directory, bailing out. when trying to work with crontab via PHP's shell_exec
I am creating a web application. Part of the functionality is depending on that the user can start/stop a cronjob that imports emails.
It doesn't work.
Just to make sure I'm on the right track, as ...
1
vote
0answers
44 views
Would you help me decode this Wordpress hack? [closed]
This is a piece of code that is being inserted into my wp-includes/load.php about ever 24 hours. Monitoring the file, it shows no changes have been made. The only way I've been able to dig it up is by ...
0
votes
1answer
23 views
Installing PHP 5.4 with pdo_mysql
I'm try to install PHP 5.4 and I want to use PDO with the MySQL driver.
However, it seems the php54 package does not configure with the --with-pdo-mysql flag. How can I install this?
0
votes
1answer
13 views
Can I use Web Deploy to deploy a PHP application from IIS on Windows 7?
The Web Deploy 2.0 page on iis.net states the "Web Deploy Tool also enables administrators and delegated users to use IIS Manager to deploy ASP.NET and PHP applications to an IIS 7.0 server."
I'm ...
0
votes
0answers
21 views
Unable to Connect to ssl://cml.application.cz:443. Error #0: php_network_getaddresses: getaddrinfo failed: Name or service not known
I have two servers communicating via XML-RPC
code in Zend is realy simple:
$client = new Zend_XmlRpc_Client(Zend_Registry::get('config')->core->cml->url);
return ...
0
votes
1answer
33 views
Nginx + fastcgi to run PHP script , but it kept telling me “File not found”
Here's part of config in the server block:
I was unable to execute any php script , I placed a file named test.php under /var/html , but when I point to http://localhost/test.php , I got a result:
...
1
vote
2answers
29 views
Passing variables in the PHP $_SESSION between subdomains
Recently I have purchased a VDH package and need to be able to communicate between sub domain with the $_SESSION array. The system has been build with this is mind. I clarified that it was possible ...
1
vote
2answers
21 views
Access directory while mod rewrite is on
I am using the following .htaccess file to keep my URL's clean
RewriteEngine On
RewriteRule ^([a-zA-Z\-0-9]+)/?$ index.php?get1=$1 [B]
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/?$ ...
0
votes
1answer
24 views
Can't remove partially-installed extension
I'm on an Ubuntu 11.10 server with PHP 5.4 installed from a PPA. I had the MySQL library installed (php5-mysql) but wanted to try out the native driver (php5-mysqlnd), so I ran sudo apt-get install ...
0
votes
1answer
36 views
php 5.4 nginx ubuntu 10.04 LTS
How can I get Nginx to work with php 5.4 on Ubuntu 10.04 LTS
So far I installed php 5.4 on the server:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php5
sudo ...
0
votes
1answer
43 views
Internal Server Error (Timeou waiting for output from CGI)
All,
I'll admit right away that I'm not very familiar with the server side of things, just FYI, so I'm not sure how to debug this error. I moved my website from a Windows platform to an Linux ...
0
votes
0answers
19 views
ubuntu setup php with CGI (no fcgi)
How can i setup php that it will run with PHP-CGI (not FCGI)? The reason why i am asking is because i am looking into the PHP CGI argument injection bug (for research purposes).
When i do php5-cgi ...
-1
votes
1answer
22 views
Get external page title [closed]
I have a task.
One input:
input type='text' id='url' name='url'
One button:
button id='go'
and one div.
User writes a site in that input and onclick i must show title of that site
...
1
vote
2answers
48 views
Structuring an nginx config for static content and php
I'm trying to write an Nginx config with the following semantics, expressed in hopefully-readable psuedo-config:
location /dir1/ /dir2/ {
if (matches a .php file) {
serve with php
} else if ...
1
vote
2answers
40 views
WordPress clogs up Apache
OK, I hate to be the helpless Apache noob, but I am feeling stumped here.
All of a sudden last night, our WordPress site went down. I rebooted it and watched for a couple of minutes and it seemed all ...
2
votes
1answer
26 views
file_get_contents url wrappers work on cli but not cgi
I have a big problem. I have just upgraded to a new dedicated server running Plesk 10, and Ubuntu 11.04 and my scripts can't run file_get_contents or curl to external urls in cgi mode. ...
0
votes
3answers
19 views
PHP using lots of memory/time outside of script?
I'm working with a site that was built in Drupal and generally runs well. After some optimization it takes 20-75MB of memory and 0.5-2s for most requests. But once in a while it will take 15-20s and ...
1
vote
1answer
47 views
Why are some web clients requesting a page named “cache”?
We see errors like this in the apache error log:
[Thu May 17 14:32:35 2012] [error] [client 192.168.1.1] File does not exist:
/home/www-data/mywebsite.com/r/cache, referer: ...
2
votes
1answer
60 views
Configuring WordPress rewrite rules on IIS7.5 inside virtual application
I have to configure WordPress into a virtual application under a principal website running on ASP.NET 2.0 Classic mode.
Everything is working fine, PHP 5.3.13 / MySQL 5.1 / IIS 7.5, the wordpress ...
0
votes
0answers
25 views
IIS HTTP Error 403.18 - ASP.NET MVC 3 (with PHP 5.3 installed?)
I am getting this error when I am setting up a ASP.NET MVC3 application onto an IIS server.
HTTP Error 403.18 - Forbidden
The specified request cannot be processed in the application pool that is ...