What do you actually install if you install PHP? [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Maybe it's more of a paradigmatic/philosophical question, but I'm wondering for quite some time "What do you install if you install PHP?" Is it the interpreter/compiler or the language constructs (functions, syntax elements etc.) or something completely else?
I'm not an expert at php and have no computer science so I find it hard to truly understand...

You are installing a PHP interpreter (it is an interpreted language on its base), along with its built-in functions (APIs provided as a library along with the language for mostly common used functionality). Also a SAPI (Server API) is installed, which allows the PHP runtime environment to be accessed through a web server.
UPDATE: In a sense, each programming language is considered being defined by the commands recognized by its interpreter/compiler. So we could say that the compiler "defines" the language, as it defines its syntax, semantics and particular behavior. I suggest that you read more about the compilers.

Related

Linux / PHP server settings for Wordpress Site [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I've recently switched to my own cloudserver and not 100% sure what's the optimal settings to run mostly Wordpress sites would be. OS I'm running is CloudLinux 6.1 x64
A few things I'm not sure about:
Run PHP as: PHP as an Apache Module or PHP as CGI
And also if I should choose to activate "SSI".
The last thing I'm not so sure about is under PHP configurations, should I select to active "register_globals".
Any help would be greatly appreciated.
If you are using Apache, running PHP as an Apache module has performance benefit over running PHP as CGI.
SSI is server-side includes, and is likely referring to the feature of Apache. You do not need to enable this.
Regarding register_globals, absolutely do not enable this. It is a security flaw required for backwards compatibility of some ancient (10+ year old) PHP scripts. If this is even an option for you, your version of PHP is out of date and shouldn't be used. register_globals was removed in PHP 5.4. http://www.php.net/manual/en/security.globals.php
Fairly standard would be - run as Apache module, do not activate register_globals unless you know what you're doing and know why you need it, SSI is optional as well.

How to use Chef PHP cookbook to install version higher than 5.3.3 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am using the Opscode community PHP cookbook to install PHP on a node. The node is CentOS and I have attempted setting the install_method to "source" and also tried overriding the version in my Role file.
No matter what I do - Chef continues to install PHP 5.3.3.
I want to know how to use this cookbook to install a newer version of PHP - or understand if it's even possible. I see references to PHP 5.3.28 and 5.4.15 in the default attribute settings - so I am under the impression that it should be possible.
Does anyone know how I might accomplish this?
Chef simply uses the packages available in the systems package repositories. So that might be 5.3 in your case.
The reference to 5.4.15 is for the source install. You'd have to use another recipe
php::source
You could set the preferred version for PHP from chef
:php => {
:version => "5.5",
},

Upgrading PHP to latest version [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I've been using PHP-5.4.3 for about a month now, and today, I decided to make a switch to PHP-5.5.5, I downloaded the source code, and placed it in C:/php (also renaming the folder php-5.5.5 to php) and I added server variables, as usual C:/php/ <-- but here I got stuck. Because, usually I appended the php.exe at the end, which was found inside the PHP folder so, I could be able to access PHP from the command line, or start the built-in server, but now,I can't find this file, and I can't find a way to start the server from the command line either.
You can compile php yourself. It's simply 2-4 commands and its also explained. I can run configure then make install. You can run configure --help to see all the options. It can be useful if you compile for fast-cgi or need more space or a faster php.
The source code you downloaded needs to be built...
You can download a binary version from here (assuming you're using Windows, of course).
Or read this if you want to build it yourself. There are many other tutorials online.

How to Update PHPmyadmin to 4.0.4.1 on a Debian VPS [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am attempting to update from phpmyadmin 3.3.7deb7 to the latest or closest possible to 4.0.4.1. I dislike the look of 3.3.7 and would really like to update. But not knowing how to do much in a Linux environment, I've looked on Google and other search engines. But nothing is simple enough to follow for a "noob".
Any help is greatly appreciated ;D
I am on VPS which uses debian-6.0-x86 64-cvps-base
Unfortunately, for your version of Debian the packaged version is the 3.x branch of phpMyAdmin, so relying on the packaged version isn't going to work for you.
There are theoretically ways to force installing a package from another version in to yours, but I would not advise that (unless you're quite careful you can end up with a mess of dependencies).
What I'd suggest is simply to remove the Debian packaged version and install your own. You can download it from https://phpmyadmin.net, and installation takes only a few minutes and minimal configuration. You can learn a lot about the process from the phpMyAdmin documentation.
Good luck!

PHP script language or programming language? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I never understood why PHP called "scripting language" rather than "programming language".
Is me introducing myself as "PHP programmer" is wrong I should be "PHP scripter"?
What definition of programing language and scripting language?
PHP can have complicated programs done and compiled into .exe files to run on windows.
Usually a language is called a scripting language if it's not compiled. But these days it doesn't matter anymore - PHP programmer is probably the more accurate term.
It's also matters what are you doing with the language. Even people who write in language that have 'script' in its name Java Script are called programmers as soon as they start doing something more advanced than simple DOM manipulations with jquery.
The only people I've lately heard that refer to them selves as scripters are bash-scripters :)

Categories