-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some issues with the new version #1
Comments
made some progress: instead of fastcgi_php it must be php.conf - apparently... if I change that in my test vhost, it kinda works. if I don't specify a filename it tries and downloads index.php if I specify the filename it work and display it !? |
What flavor and version of linux are you running? I posted more explanations of the nginx php configs here. The wordpress install code isn't mine (I don't use wordpress) so this is the correct place to post bugs on it. Apparently your install of nginx doesn't have the |
Hey thanks man, Using a brand new VPS that came with Debian 5.0 Damn! I just realized dotdeb is inside here: /etc/apt/sources.list while the Before reading your answer I had already tried include Ovidiu The information in this email and attachments hereto may contain legally On Wed, Jun 8, 2011 at 21:17, Xeoncross <
|
This script assumes Debian 6 is installed. dotdeb is setup to work with squeeze not lenny so you would have to change the dotdeb lines in sources to fix this - actually, I am not even sure dotdeb supports nginx in lenny. Debian 5 also needs backports to use PHP 5.3 which is another pain. |
you must have misread my answer, so I'll explain again:
you can check the php_info here: http://klub-kamikaze.com/info.php |
The index seems to be loading fine for me (http://klub-kamikaze.com/). Just in case you didn't know, you have to restart nginx after you alter a /etc/nginx/sites-eabled/site config file. |
jepp, I reloaded nginx after every restart and if I click this link: http://klub-kamikaze.com/ it downloads index.php to my PC - does it actually render in your browser? |
ok, that is weird. it worked on my PC with a different browser :-( |
the index.php page was probably cached in your browser from the before when it was failing. Can you print the output of |
fastcgi_params is there. Reloading nginx configuration: [emerg]: open() "/etc/nginx/fastcgi_php" failed (2: No such file or directory) in /etc/nginx/sites-enabled/pacura.ru.conf:4 The point is that in your script you mention a fastcgi_php which I can't find anywhere... but then you do reference it in your nginx vhost files shall I replace mentions of fastcgi_php by fastcgi_params? root@euve23694:~# ls -al /etc/nginx/ |
Thanks for pointing it out, the solution is to update the install_wordpress() function to use If you look in the fastcgi_params file you will see it contains all the env variables PHP needs to run properly which would explain the bad behavior. I would replace the site config created by install_wordpress()...
with the one below:
|
hm, my vhost conf looks like this now:
notice I also included the fastcgi_params or isn't that necessary? thanks for all the help here :-) this works awesome. I did some ab tests from another server and results look good. btw. if results are not as fast as expected, and there is enough memory and processor-wise there is still room for improvement, shall I check if mysql is becoming the bottleneck or are there any other things to check first with the nginx/fastcgi config? |
Remove the extra You can also remove the listen if you want. I leave it there because it doesn't hurt anything and explains more details. I would look at installing wordpress caches first for the biggest boost. Then try tunning MySQL by giving it more memory. There is a script out there for this: https://github.com/rackerhacker/MySQLTuner-perl that will tell you what MySQL settings to change. I would also look into setting up HTTP rate-limiting on nginx so that you will never be DoS's by a single IP (can't stop multiple IP's though). |
thx. let me play with this for now and then think about tuning. Btw. eagerly waiting for a postfix extension to this script :-) and you can misuse me as beta tester, I just got a VPS for 4 days for testing. so I can test anything you throw at me... |
kinda weird, after implementing what you suggested here: #1 (comment) wordpress links like: http://klub-kamikaze.com/wp-admin/ don't work anymore. the browser jsut stays on the same page... if I put this back:
and visit http://klub-kamikaze.com/wp-admin/ again, it tells me that the page couldn't be found. would appreciate any help to get wordpress running properly. |
jsut wanted to mention that http://klub-kamikaze.com/wp-admin/index.php works so its about those links without a filename !? |
no idea? |
Sorry, I've been a little busy with family events recently. Anyway, the folder "wp-admin" does exist which is why that rewrite fails to run unless you add a index.php at which point it fails again - but now you have a valid php file to pass to the Fastcgi process.
You probably just need to add the fastcgi index param to get it working:
|
thanks but I'm out of this game for a little while: I was testing on a trial VPS (free for 4 days) to see if it can do what I need it to do and with this script it looks like it can ;-) will be back as soon as I get the real VPS I'm gonna use. |
Playing with another test machine, still cannot reach mydomain/wp-admin/ my nginx vhost looks like: `server { unless the request is for a valid file, send to bootstrapif (!-e $request_filename) use fastcgi for all php fileslocation ~ .php$ sorry I don't know how to format this as code :-( |
solved: replacing |
I am referring to this version: https://github.com/Xeoncross/lowendscript but it seems one can't post issues there. Besides issues I also have some simple questions as:
Can you explain this in more detail? First, I added sample MVC framework (everything through index.php) and normal PHP (all php files allowed) configurations to nginx. These allow much cleaner site configs.
Also what exactly is the point of these two files: nginx installed for nginx
Created /etc/nginx/php.mvc.conf and /etc/nginx/php.conf files for PHP sites
To use them "include" them in your /etc/nginx/sites-enabled/[site] config
The nginx part has a fault somewhere: Reloading nginx configuration: [emerg]: open() "/etc/nginx/fastcgi_php" failed (2: No such file or directory) in /etc/nginx/sites-enabled/pacura.ru.conf:4
The point is that in your script you mention a fastcgi_php which I can't find anywhere... but then you do reference it in your nginx vhost files
What command is missing here? I checked your script, line 512 but do not understand what script s missing: root@euve23694:~# bash setup-debian.sh domain pacura.ru
Created pacura (NGY4MzA1N2UxO) with all permissions on pacura_ru
setup-debian.sh: line 512: name: command not found
Your script seems to install wordpress by extracting the latest.zip into the vhosts root but the zip file contains wordpress inside a wordpress folder so the further configuration breaks. Please change it so it unzips without the folder straight into the root: cp: cannot stat `/var/www/pacura.ru/wp-config-sample.php': No such file or directory
sed: can't read /var/www/pacura.ru/wp-config.php: No such file or directory
After trying to fix it partially and getting it to run, I can access the default vhost but none of my test-sites that should use wordpress since it offers me the .php files for download, so it seems nginx isn't processing them but offering them for download. what could be wrong? one test site is http://klub-kamikaze.com give it a try.
The text was updated successfully, but these errors were encountered: