symfony command line tool with custom php.ini

Posted: January 12, 2011 7:49 PM Updated: January 12, 2011 10:51 PM

I recently changed hosting service provider. It's acutally quite great. It's shared hosting, so it's not that expensive like vps, got secure shell (ssh) access and it serves website much faster than previous hoster. Plus I got the place to play with python, php5.3, and if (or rather when) I'd turn to it as well, Ruby on Rails.

Currently I'm still enjoying my ssh access, but discovered some nuisance. I can have my own php.ini for web access but then got no access to php-cli settings. So at first, when I turned on APC cache for my homepage, It was running on APC, but I couldn't manually clear cache, since command line php hadn't had apc module enabled.

So after a little bit of thinking, I created a wrapper for symfony execute. It's small bash script, that runs symfony execute with my webserver php.ini file and passes all it's parameters to symfony command line tool:

Bash code
  1. #!/bin/bash
  3. php -c /path/to/php.ini symfony $@

But there's a question, why bother with this, when I can just run this code from command line?
 Well... If I got an execute that already runs by itself, why should I pass it directly to php? And coming to that... typing each time path to php.ini? No thanks!

Still have some issues to clear with apc in my app (cache is quite complex issue), but at least I no longer have error message in my cli, that I have to enable it APC, before I use it in project. Still question, which is better for standalone app cache: APC or memcached? And how to use both?

Grzegorz Śliwiński

Comments list (31)

my website July 27, 2013 12:55 PM #1 replyreport
Gravatar photo
The board is engaged in locating a successor, within
the interim Bobby Parker Jr my website many people would say that their
only problem with money is just not having enough from it, but there are lots of examples of folks who create ample streams of income and
can't hold to any one it.
Microsoft Office Word July 30, 2013 11:47 PM #2 replyreport
Gravatar photo
What's up to all, the contents present at this site are actually awesome for people knowledge, well, keep up the good work fellows.
Teds Woodworking Review August 1, 2013 7:39 PM #3 replyreport
Gravatar photo
An outstanding share! I've just forwarded this onto a coworker who had been conducting a little research on this. And he in fact bought me breakfast due to the fact that I found it for him... lol. So allow me to reword this.... Thank YOU for the meal!! But yeah, thanx for spending some time to talk about this matter here on your web page.
Kelli August 6, 2013 3:49 AM #4 replyreport
Gravatar photo
Hi to all, how is the whole thing, I think every one is getting more
from this website, and your views are good for new viewers.
Anna August 9, 2013 11:49 AM #5 replyreport
Gravatar photo
This website was... how do I say it? Relevant!! Finally I have found something that helped
me. Thank you!
Edwardo August 31, 2013 6:52 PM #6 replyreport
Gravatar photo
Something to consider when shopping for Nike maillot air jordan pas
cherv 2010 shoes in sport wear. Its special pressurization techniques used on the Hyperposite, which are currently making their way to stores now.

Before them, domestic players have long training for a period of time, such as
the graphic on the shoe's upper design was
covered with stars and peace signs. For a slip-on style with a bit more masculine appeal, pick
up the shoes.
my website September 4, 2013 2:16 PM #7 replyreport
Gravatar photo
Apart using this, you can use of avail 6 month loans
no credit assessment without pledging of collateral my website installment loans for a bad credit
score are simple and easy , easy to avail through online process.
Eugene Party Bus October 14, 2013 5:34 AM #8 replyreport
Gravatar photo
This text is worth everyone's attention. When can I find out more?
Heizölpreise October 26, 2013 10:24 PM #9 replyreport
Gravatar photo
I was curious if you ever thought of changing the layout of your site?
Its very well written; I love what youve got to say.
But maybe you could a little more in the way of content so people could connect with it better.
Youve got an awful lot of text for only having 1 or 2 images.
Maybe you could space it out better?
Michael Kors Outlet sale October 29, 2013 6:13 PM #10 replyreport
Gravatar photo
You actually make it appear really easy together with your presentation
however I to find this topic to be really something
that I believe I would by no means understand. It seems too
complex and extremely huge for me. I am taking a look forward on
your next publish, I'll attempt to get the
hold of it!
Jedidiah Liebmann December 7, 2013 3:38 AM #11 replyreport
Gravatar photo
I do believe that a foreclosure can have a
significant effect on the client's life. Foreclosures can have a Several
to 10 years negative effect on a client's credit report.
The borrower who may have applied for a mortgage or virtually any
loans for example, knows that your worse credit rating is, the more difficult it is to have a decent financial loan.
In addition, it might affect the borrower's chance to find a
quality place to let or hire, if that gets to be the
alternative real estate solution. Thanks for your blog post.
dr oz garcinia cambogia January 17, 2014 10:12 AM #12 replyreport
Gravatar photo
Hеllo thеre! Ƭhiѕ is my fіrst visit to your
blog! Ԝе aгe a group ߋf volunteers аnd starting ɑ neѡ
project in a community іn the sаme niche. Yoour blog provided սs uѕeful informɑtion tο ԝork on.
Υօu have done a extraordinary job!
wow gold January 19, 2014 11:11 PM #13 replyreport
Gravatar photo
Hey this is kinda of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually code
with HTML. I'm starting a blog soon but have no coding know-how so I
wanted to get advice from someone with experience.
Any help would be enormously appreciated!
Converse Skor billiga January 23, 2014 2:43 PM #14 replyreport
Gravatar photo
I really like it when folks get together and share opinions.
Great website, continue the good work!
louis vuitton February 25, 2014 1:49 AM #15 replyreport
Gravatar photo
Greetings! This is my first visit to your blog! We are a collection of volunteers and starting a new initiative in a community in the same niche.
Your blog provided us valuable information to work on.
You have done a wonderful job!
Gravatar photo
Awesome! Its really remarkable piece of writing, I have got much clear idea about from this article.
wordpress themes corporate March 16, 2014 4:13 PM #17 replyreport
Gravatar photo
I tend nօt to write many responses, howеver i did some ѕеarching and wound up
here symfony ϲommаnd line tool with custom php.ini
Grzegorz Śliwiński. And I ԁo hаѵe a couple of questions
fߋr you if it's allright. Is it just me or ԁoes it seem like some of the responses come
across like they are coming from brain dead visitors?
:-P And, if you аre posting at additional sites, I'Ԁ
like to keep up with anything fresh you have to post.

Woսld you list of all of ʏoսr public pagеs like your
linkedin profile, Facebook page or twittеr
Gravatar photo
They have seen the blueprint and they have a duty to hear these concerns.

Russian Foreign Minister Sergey Lavrov said his country wanted Britain to remain in the UK and
the Government, including Christopher Chope and Peter Bone from posts on the committee which was investigating us.
Mr Walker, saying: It comes at a time david cameron of great crisis in the global economy.
Some 82 per cent of those aged david cameron 25-34.
learn kungfu March 22, 2014 11:28 PM #19 replyreport
Gravatar photo
I don't know if it's just me or if perhaps everyone else experiencing problems with your website.

It looks like some of the text within your content
are running off the screen. Can someone else please comment and let me know if this is happening to
them too? This may be a problem with my web browser
because I've had this happen previously. Thanks April 28, 2014 6:25 PM #20 replyreport
Gravatar photo
This pгocess bаsically requires havinց skilled people and thе best technoloɡy put
to proper սse. Ύou see, SEO copʏwriting isn't a mythical beast; it's
ʝust plaiո, stгaightfоrwаrɗ writing. You can also leave cߋmments
on ɗiѕcussion Ьoards (especially thoѕe strongly related to the subject
of yօur site) and include a back link to your site within yoսr forum profile.
buy April 28, 2014 7:43 PM #21 replyreport
Gravatar photo
While some of thesе SEO serѵices are effective,
othеrs гun a shady game. Ѕeaгch Engine Optimizatioո is an online marketinǥ strategy սsed to hеlp with making your website appeаr as high ɑs achieѵable in the searϲh геsults
of the biց search engiոes like Google, Bing anԀ Yahoo.
Indexing is really ɑ type of cataloguing through which web pages are designated
tօ the relevant key phrases.
mac internet marketing tools April 29, 2014 11:24 PM #22 replyreport
Gravatar photo
This sеemed odd tߋ me sο І decided to looҝ further into
the matter and write ɑn article aboսt what I found. Social Media · Search Engines love
Sociɑl Mediа. Ӏt is worth your time to see if you could add podcasts to your marketing mix.
Raleigh April 30, 2014 1:55 AM #23 replyreport
Gravatar photo
Heere are a few tiƿs that you can take to tɦe bank when it cߋmes to ѕearch
engine optimization, segregated by type. What iѕ a lоw-cost, high return on investment for your
SEO budget. Indexing is reallƴ a type ߋf cataloguing through which web pages are Ԁesignated to the relevant key phгases.
fvwmjeqg June 15, 2014 7:14 PM #24 replyreport
Gravatar photo In the fall of 2011. nike free run sale uk Hollister UK Outlet nike free run sale uk mulberry outlet cheap Hollister uk Infinite range and choices. My mind drifts back in time. mulberry uk cheap juicy couture bag sale Hollister UK mulberry uk cheap Hollister uk Given the state of economies universal.
Best Skip Hire October 2, 2014 7:57 AM #25 replyreport
Gravatar photo
(o) Proponents of conventional, organic, or raw milk, respectively, argue over which method yields
the greatest benefits. If you are still unsure of what bin size to go for, then it
is always best to choose the larger option just in case.
They offer their services for various sectors that include residential,
commercial and industrial with many others.
gas safe public liability insurance October 4, 2014 10:53 AM #26 replyreport
Gravatar photo
Both AirTran and Delta have cancelled additional flights on Tuesday
as business an all-time, blue-chip, 24-carat masterpiece of the genre.
The payment is due on March 5. Not to mention the Airline and flight number.
They are highly reputed and provide business a safe and secure environment.
Below are those options listed, so be sure of all your
needs on time.
gta 5 cheats jump high October 11, 2014 8:29 PM #27 replyreport
Gravatar photo
Ahaa, its good dialogue on the topic of this piece of writing at this place at
this web site, I have read all that, so now me also commenting
at this place.
webdesign inspiration November 26, 2014 1:16 AM #28 replyreport
Gravatar photo
Hey very interesting blog!
Kailey December 8, 2014 9:33 AM #29 replyreport
Gravatar photo
facebook likes December 10, 2014 1:38 AM #30 replyreport
Gravatar photo
Just so you know, I am not claiming to know everything
about relationships, but starting right now, I have been with my man for ssven years and the majority of the techniques
that are inside the Maguc of Makming Up book are
techniques that I have personally used. Upon using Facebook for the first time, thewy will find it
hard to copy with the informal language and wor tones which
Facebook prefers. ve visited and I find this a great method of
encluraging me to venture further afield.
nzacnmlcv April 8, 2015 6:45 AM #31 replyreport
Gravatar photo
represents a danger to the interests of Hizbollah and Assad聮s regime in
coach outlet IRIN: Besides building community trust, what are the priorities right now? i
Also, open cabinet doors to allow warm air in the home to reach water pipes. Businesses, as well, can benefit from these preventive steps. michael kors bags This is the first meeting after the surgery of North Cyprus President Dervis Eroglu. The leaders had to cancel two of their scheduled meetings because of the illness of Dervis Eroglu.
$newDay.addClass('outsideMonth'); oakley sunglasses outlet Staff WriterPosted: e tory burch shoes outlet online
Look also at the animals, how helpless they are in their apparent strength! For the elephant, the largest of all animals, is troubled by the fly, and the lion cannot escape the irritation of the worm. Even man, the highest form of created beings, needs many things for his very life; first of all he needs air, and if he is deprived of it for a few minutes, he dies. He is also dependent on water, food, clothing, warmth, and many other things. On all sides he is surrounded by dangers and difficulties, against which his physical body alone cannot cope. If a man looks at the world around him, he will see how all created things are dependent and are captive to the laws of Nature. cheap jordans )The reboot of Daniel Patterson's Plum Bar Restaurant is a lively, cocktail-centric spot.(Photo by Chris Pizzello/Invision/AP, File) 60 Minutes reporter was attacked during Egypt s Arab Spring in 2011.
q width:170px; AND MICHELLE AND ERIC... THEY CLAIM THEY HAVE EVERY tory burch shoes
Thomas Talavage, a Purdue University biomedical engineer professor who studies brain trauma, is a member of the NCAA Concussion Task Force. He was blindsided by the 10-second runoff proposal until told by a reporter. kate spade outlet Whatever you鈥檙e doing right now, stand up and turn around. Take a good look at the edge of your seat. That鈥檚 where you鈥檒l be clinging when you read 鈥淚 Am Pilgrim.鈥?
b25qb3VybmFsLmNvbSI+bWJlYXZlbkB0aGViZWFjb25qb3VybmFsLmNvbTwvYT4uIFJlYWQgdGhl 6718-6722聽Odana聽Rd., 831-5555 One step into VIP Asian Cuisine and you鈥檒l think you鈥檙e in some swanky downtown hotspot, not an Odana Road strip mall. Track lighting, granite bar tops, a sushi bar in the middle of the space, a traditional Japanese seating area and stellar service all give the impression that you really are a VIP here. The restaurant has both Japanese and Chinese menus, which at some places translates as master-of-none, but not here. Whether you鈥檙e craving sushi, hibachi, hand-pulled noodles or pork dumplings, this place does it and does it well. $$ i tory burch shoes outlet
Byes: No. 6 Palo Verde oakley sunglasses outlet Two recent articles illustrate how differently two people can view the same issue.
Sign InORSign in using your Palm Beach Post profile coach outlet uk For a potential buyer who doesn t drink wine, the wine cellar is just a fancy closet. Another buyer might decide that the NASCAR room is a decorating crash needing too much time and money to repair.
Bay Area show: March 30; The Independent, San Francisco; $15, oakley sunglasses outlet It is best to start this training over a long weekend so you can put her in and take her out of her crate every couple of hours. After she does her business, allow her to be with you in the house for extended periods, but try to notice if she becomes agitated. If she does, place her back into the crate with praise and treats and let her have some quiet time.
La m谩s elocuente de las im谩genes es en la que aparece saliendo de una tienda y un polic铆a no puede evitar centrar su mirada en el trasero de la estrella de KUWTK. gucci outlet online According to Reeve of UNODC, the issue is lack of proper training and monitoring of law enforcement involved in anti-trafficking work.
t This weekend, the most unique, interesting and different cultural event on the Tucson calendar takes place鈥擳he All Souls Procession. On Sunday, the 23rd annual event begins around 6 p.m., when thousands will gather and begin the slow walk towards the west side and the eventual finale at Mercado San Agustin. The event honors those who have passed, and will feature some 35,000 plus people along, and on the 2-mile route. If you only experience one cultural event in Tucson this year, this is it. Go early, find a spot to watch the passage of people, and then join in at the end. It is something you will never forget. Also, throw a few bucks in the pot when it passes by as the entire event is run annually by volunteers, and they do not accept any corporate sponsorship. This is a true community project from start to finish. kate spade outlet online 鈥淚 had all this information about what kids were telling me, I had all these secrets. I had kids of all ages, through their 20s, from 3 and 5 years old on up,鈥?said Baumgarten, 65, who opted for a narrative rather than self-help approach to her book to heighten its impact.
On April 6, 1994 a group of Chicano students from Watsonville, inspired by the legacy of the Mexican nationalist-tinged community activism of the original Brown Berets, decided to resurrect the movement. They felt that similar conditions existed there in 1994 that had existed in 1967, and wanted to respond to the gang-related murders of 9-year-old Jessica Cortez and her 16-year-old brother, George. Actually the group was current Watsonville City council member Felipe Hernandez and current California State Assembly Member Luis Angel Alejo. The two are the organizers of the Watsonville Brown Berets. michael kors outlet 聯It聮s going to take in many, many aspects,聰 she said. l coach outlet
According to the City鈥檚 contract with the chamber, the Eloy Chamber of Commerce was, and is, responsible for 鈥渕aintaining accurate records of all monies received and disbursed,鈥?as well as 鈥渕aintaining an accounting system that complies with generally accepted accounting principles, and applicable federal and state laws, for non-profit corporations, which separately accounts for all funds provided by the City.鈥?michael kors outlet * traditionalRegistration_displayName *
h $dayNumber = $(document.createElement("span")).addClass("dayNumber"); gucci outlet online While KP health officials based at the Provincial Polio Control Room (PPCR) in Peshawar agree the IDP influx poses a polio risk, they disagree, according to , that refusals (those refusing to be vaccinated) are declining, and blame UN communications authorities for this. l
Send Community Perspective submissions by mail (P.O. Box 70710, Fairbanks AK 99707) or via email ( Submissions must be 500 to 750 words. Columns are welcome on a wide range of issues and should be well-written and well-researched with attribution of sources. Include a full name, email address, daytime telephone number and headshot photograph suitable for publication (email jpg or tiff files at 150 dpi.) You may also schedule a photo to be taken at the News-Miner office. The News-Miner reserves the right to edit submissions or to reject those of poor quality or taste without consulting the writer. tory burch shoes outlet online When wildfires rampage, we focus on the flames, the heroes and the losses. The aftermath isn't nearly so dramatic, but, in its own way, it's just as quietly awful. tory burch shoes outlet
Then I decided, which was really stupid, but I decided to follow him and try to get a picture to show the police, and when I did and I turned the end of the driveway, I found that he was with about 15 men, they're all standing around in two pick-up trucks parked in the middle of the street. michael kors bags For the beleaguered government, the knock-on effects of the turmoil in Sana'a for their fight against AQAP in the south of the country could be significant. In recent months the group, the virulent local franchise of the extremist organization, has been stepping up its activities and rhetoric, with at least 20 people killed in attacks on military outposts by the group in August. q oakley sunglasses outlet
路 Renovate the HVAC system. Aesthetic improvements aren't the only ones that add value to a home. Many home buyers are eager to purchase a home that has a new heating and cooling system, as buyers understand that furnaces and air conditioning units are substantial investments that can last for years. Other improvements, such as adding attic insulation or replacing older windows and doors with more energy efficient options, also are smart bets. They also showed a nice documentary about booms and skimmers, etc., but you have to take a 3 day course (designed for fire departments, etc.) to be authorized to use them. There is also a 40 hour course in St Petersburg about how to cleanse wildlife.
鈥淲HAT surprises me is to see the Iranian President Mahmoud Ahmadinejad speaking. It looks like as if he is inspired by Almighty Allah,鈥?columnist Ghassan Al-Otaibi wrote for Al-Qabas daily Wednesday. michael kors outlet We expected to be grandfathered in, Green said. v
Unlike chair lifts of old, new models like those sold by Orlando-based Acorn Stairlifts are powered by two small 12-volt batteries under the seat or by regular house current. The chair and built-in footrest typically fold up when not in use, allowing for easy passage on the stairs. All lifts have sensors around the perimeter of the foot platform that will stop the lift when a sensor is triggered -- be it by a child's toy, a pet or a foot that has slipped off the platform. oakley sunglasses Light and space artist Peter Alexander鈥檚 works resemble his better-known translucent crystal rock sculptures.
Add new comment

Your email will never be published

Must start with http:// or https://
Delete the reply