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.
Related
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 6 years ago.
Improve this question
Is there a known way to hide PHP code within a file?
I got an error message referencing a malware variable in a php file on a wordpress website.
When I grep for the variable it shows me the malware in the file
When I open the file in nano it doesn't show
When I download via sftp the malware doesn't show in notepad++
I'm wondering if:
grep could somehow be seeing 'cached files'?
is there is a way to hide php code?
has anyone using php or wordpress ever seen something like this?
I did everything to double check, yes these are the same files and all the other tips that were pointed out. opcache is off. I have no idea.
Removing face palming situations from the equation (e.g. downloading the wrong file, downloading from the different server - which have happened to me before ;)), maybe you could try to use
grep -n [variable name]
to figure out the line (-n) where the variable is in the file. That might help you.
Another suggestion is downloading the file and using diff tools against a known good version of the infected file.
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 7 years ago.
Improve this question
I own a site installed on my linux server but when I put PHP tags at the beginning of page, the source code appears..
How to avoid all the source code displayed ?
thank you in advance
This means that you are being served the file by Apache without it first being seen (processed) by PHP. Here are some troubleshooting tips as to why it isn't being processed by PHP:
Make sure that your file with the PHP tags ends in .php.
Make sure PHP is installed on your server. To install PHP on a debian server run sudo apt-get install php5
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 have multiple versions of gcc 4.1.2 and 4.9.1 installed as g++4.9.
The old version had really old libstdc++ and was always failing with requiring libgcc errors. I fixed that by adding
export LD_LIBARY_PATH=/home/naveen/gcc4.9/lib: /home/naveen/gcc4.9/lib64 to all users. I even set this in /etc/bashrc and did . /etc/bashrc as root.
Now I am running a c++ code using php but the code always fails with the same libgcc errors i was seeing from console. I can see that the apache is being controlled by user daemon.
How can I fix this so that apache and php use the modified ld_library_paths?
Edit the scripts that actually start httpd and export the variables there.
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
Please I need help, I have a project, but i'm tired of making my code and uploading it to the server, I need a localhost to make it more faster and I was thinking of apache but I don't know how to download it correctly
Well if you are going to install them one by one it will be a bit tricky (for beginners).
If you have never done it before I recommend Zend Server Community edition. The installer is pretty good it sets up everything for you.
http://www.zend.com/en/products/server/free-edition
But if you are an adventurous kind the minimum I would imagine you would need to install is
Apache Httpd => http://httpd.apache.org/download.cgi
PHP => http://php.net/downloads.php
MySQL => http://dev.mysql.com/downloads/mysql/
As you haven't mentioned which OS you want to configure it on. But I think you will find a lot of tutorials for any platform for each.
man just download XAMPP, a few click install.. and done.. since you sound like you have no idea of how to start... then this would be perfect.. just check it out for your self.
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
Most results I get on Google is how to get both versions running simultaneously on the same page but at different URLS but that's not what I want, I'd like for example to get http:\localhost to run PHP4 and PHP5 at the same time on the same page because I got a website that has old code from PHP4 that breaks up when loaded only in PHP5, and it has some parts made only in PHP5, so I would like to run both PHP versions at the same spot.
I'm on Windows XP running Apache, I wouldn't mind switching to IIS 2007 if it's required. I really need to do this I'm already aware of the security risk.
I know it's a repost but I got downvoted to oblivion because some of you don't want me to do this but I know I need to do this.
Update: the issue is that I have a site running locally that connects to a database I was told some of the code was in PHP4 and some in PHP5 and that both versions were required, I was assigned to fix this by running both versions, it's not a website that's connected to the internet so I figured no issues would happen.
Nopez. Not possible.
I think you have two options:
'embed' the other php version (iframe / ajax)
'patch' the old project to PHP5
I had to the second option a couple of times and it is do-able (all depending on the size and the code used of the project of course).