Do I need a firewall on my VPS which I ordered today?
If so, which one would you recommend?
I plan on running a classifieds website with Java, php, mysql.
My OS is ubuntu 9.10
Thanks
Btw: What is iptables?
I want to have custom text printed on my screen always on top. I tried rainmeter software and i could not find option to load text from file on my system or in any other way.
What i want to have is software that prints on top of all windows and scan file every seconds to print latest changes.
P.S. the idea would be to have my live PHP website error log printed on my screen every second or as new entres appear.
I need to return a 503 status code from one of my sites while it's down for maintenance, in the time-honoured SE_firendly fashion. I can't seem to work out how to do this without invoking external scripts, which I'd rather avoid.
Is there an apache directive which will allow me to return an arbitrary HTTP status code without resorting to hacks like invoking a php script which sets the status header?
My Nginx setting currently has this:
location / {
if (!-e $request_filename){
rewrite ^/(.*)$ https://domain.com/index.php?id=$1 redirect;
}
}
Basically for non-existing pages (404) it redirects user to the home page. But now I have a wordpress blog setup at https://domain.com/blog/, but any wordpress items eg. https://domain.com/blog/test also got redirected to the home page. I wonder how to fix this?
Hi all,
I am trying to connect to mysql database on amazon through a php script, but I am shown this error:
Warning: mysql_connect()
[function.mysql-connect]: Lost
connection to MySQL server at 'reading
initial communication packet', system
error: 111
I have tried and searched places and did the following things:
In "/etc/mysql/my.cnf" I commented out the line bind address: 127.0.0.1 to allow the acccess to all.
checked /etc/hosts.allow and /etc/hosts.deny and made sure that there are no rules present that may cause
But still no luck. Please suggest any other way.
Thanks,
Madhup
I need to run a small website with a JSON webservice on Amazon EC2 Linux.
The largest number of requests come from the JSON webservice, which provides some load in terms of MySQL queries.
I'm trying to decide between two choices:
A single large instance (Ubuntu 12.04 64-bit) with full LAMP stack
or
One or two small instances (Ubuntu 12.04 64-bit) with Apache/PHP only
One small instance dedicated to MySQL (or RDS)
Which setup would you consider to be more performant?
Most tutorials online show how to install PEAR by doing this:
sudo apt-get install php-pear
This installs version 1.6.1. It works great because it's super easy! My problem is that I want to install PHPUnit and it requires PEAR version 1.8.1 so my install of PHPUnit failed. So how do I install a newer version of PEAR on Ubuntu?
Yes, I really am asking how to turn down the volume. But first, some more detail:
My headphones are http://www.edimensional.com/product_info.php?cPath=22&products_id=122
They are really loud. I usually have to keep them on the lowest setting. If the source material is louder than average, I have to lower the output volume in the player software.
Is there a way to can adjust the Windows 7 volume settings so that my normal listening volume is around 50% instead?
What will be your preferred way of installing and configuring Wordpress on IIS 7.
Would you prefer using WPI (Web Platform Installer)?
Would you prefer manual download, install and configure PHP, mySQL and Wordpress?
I have a slight problem with my project I've working on...
I have replaced explorer with iexplore in kiosk mode. iexplore loads a speeddial type of webpage for a set of windows programs. I launch those programs with PHP's system().
The problem is, when the programs launch, they launch BEHIND iexplore instead of in front of it.
How can I force the programs being launched to ALWAYS load in the foreground?
I have been playing around with the Reddit open source software and have been getting no where fast.
I was wondering if anybody can instruct me on how to install the software on a web server. I know how to install normal php scripts etc, but I've never installed a software such as a python or rails script before.
I'm not very good with commands but I know how to run them. If that makes sense.
Thanks!
How I can redirect sitemap.xml file access to different subfolders, if it can be reached from three different domains?
domain1/sitemap.xml - dominio1/es/sitemap.xml
domain2/sitemap.xml - dominio1/de/sitemap.xml
domain3/sitemap.xml - dominio1/uk/sitemap.xml
domain1, domain2, and domain3 target to the same folder.
Is it possible? How can I do this? Should do it with PHP ?
PS: The server is a linux running apache, the web platform is a wordpress.
Firefox magnet link issue
or if right click on the magnet link and copy this is the result of paste
(http://proxychina.net/browse.php?u=Oi8vdGhlcGlyYXRlYmF5LnN4L3RvcnJlbnQvODY0MjU1MC9tYWduZXQ6P3h0PXVybjpidGloOmQzNzMyMmQxMGFmNDY4Yzg4NTk3ZWZiNWU4NWQ5ZmRhMzU1MzllYTQmZG49RmFzdCtBbmQrRnVyaW91cys2JTVCMjAxMyU1RFdFQlJpcCtYdmlELUVUUkcmdHI9dWRwJTNBJTJGJTJGdHJhY2tlci5vcGVuYml0dG9ycmVudC5jb20lM0E4MCZ0cj11ZHAlM0ElMkYlMkZ0cmFja2VyLnB1YmxpY2J0LmNvbSUzQTgwJnRyPXVkcCUzQSUyRiUyRnRyYWNrZXIuaXN0b2xlLml0JTNBNjk2OSZ0cj11ZHAlM0ElMkYlMkZ0cmFja2VyLmNjYy5kZSUzQTgwJnRyPXVkcCUzQSUyRiUyRm9wZW4uZGVtb25paS5jb20lM0ExMzM3&b=31)
Strange but two different links
Please a prompt reply is appreciated..many thanks in advance
I have some questions about amazon ec2 and especially on small instance.
I want to host my new website (the beta version) on this kind of instance, but before i want to know about how many simultaneous users can be connected on one small instance.
You can see the caracteristics of a small one here : http://aws.amazon.com/ec2/instance-types/
My website is a kind of social network in PHP.
Is someone had already test this type of instance ?
I am trying to connect to mysql server which is installed on my home pc from another pc. I allowed all connection in mysql configuration. There's no firewall blocking on the pc I am trying to connect from. I used the command-
mysql -h Some.Host.IP -u SomeUser -p SomePassword
I am getting-
ERROR 2003 (HY000): Can't connect to MySQL server on 'Some.Host.IP' (10060)
I can connect through php!!
What's the problem? How do I solve it?
Is it possible to secure postfix in a way, that incoming emails are checked on whether the email comes really from the sender?
Is that possible to write php script and chose a sender, like the mail is really coming from the sender and what are the possibilities for postfix to find out that this mail is not actually coming from the real sender?
What I have found out and activated are the options
smtpd_sender_restrictions = reject_unknown_sender_domain
unknown_address_reject_code = 554
smtpd_client_restrictions = reject_unknown_client
unknown_client_reject_code = 554
Please mention, whether I have missed out on any points!
Is there a way to disable the PHP setting safe_mode in a client or domain template in Plesk 8.6? Or, to disable it for new domain creation in some other Plesk setting/configuration?
I've Googled, and people seem to think no
I've asked our hosting provider, and they don't think so
I've looked in both the domain and client templates in Plesk and don't see it
Has anyone been able to do this Plesk 8.6 for new domains?
i've got a question.
If i've got my webserver that have a domain, for example mywebsite.net, and i want to send an mail with PHP using a remote SMTP server which have it's own host, for example smtp.mailcompany.com, can i send mails without using [email protected], but [email protected] or i have to edit mx records or other stuff for do that?
Maybe this is a stupid question, but i really need to know.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I added authentication to a directory "/pb" off the root of this and I'm getting redirected. Is there any way I can add an exception to this rewrite rule to allow no rewrites when accessing /pb ?
Thanks!!
I have a server with WHM/cPanel server a website (Apache, PHP, MySQL) and a few days ago WHM performed some kind of update on itself (there are new icons and new appearance overall). Ever since that day, my site has been running slow for shorts periods of time, but several times a day. That never happend before.
Is there some common cause for this? Something that WHM does when it does an update?
I'm really clueless about this problem.
I have managed to set up pure 64-bit Apache, PHP, MySQL, and 64-bit distributions of Perl and Pyton. However, I cannot get Apache to automatically parse .pl files with Perl, and .py files with Python. Looking around points to mod_perl and mod_python for Apache, which unfortunately fail to build. Is there any precompiled mod_perl, mod_python for Win64? Or is there any other way of getting .pl, .py to work on Apache?
The related configuration is like this:
ErrorDocument 404 /404.php
And it works in firefox,but when in IE it's not shown(IE's default 404 page is shown instead)
Has anyone experienced this?
Hi,
We run cent os, plesk with apache and php, mysql. There are around 25 sites and each of them need an SSL certificate now. The host cannot have more than 16 IPs on the same server. Is it possible to have all these sites use just one IP address and have SSL certificate setup for each site?
If yes, please let me know how I can set this up.
Thanks