I've provisioned a ScotchBox Vagrant Box, which is basically a LAMP stack. But I need to be able to use the PHP that comes with ScotchBox from Terminal instead of the system php
How do I do this?
I've provisioned a ScotchBox Vagrant Box, which is basically a LAMP stack. But I need to be able to use the PHP that comes with ScotchBox from Terminal instead of the system php
How do I do this?
I'm trying to clean up some URLs to a bunch of PDF files. Right now, you access a PDF by visiting the following:
http://www.mywebsite.com/sites/default/files/reports/2010_Audit_Summary_Report.pdf
But I want to clean this up by being able to access the same files using this URL:
http://www.mywebsite.com/reports/2010_Audit_Summary_Report.pdf
I thought that I might be able to do the following:
<rule name="MySpecialRule" stopProcessing="true">
<match url="/sites/default/files/reports/2010_Audit_Summary_Report.pdf" />
<action type="Rewrite" url="/reports/2010_Audit_Summary_Report.pdf" />
</rule>
But this is not working. Of course, the sample rule above would only work for one PDF, where I want this to work for all PDFs within the same directory.
Is this possible?
Ever since I started using Vhosts with MAMP, page requests have been quite slow. It takes 3 to 5 seconds or more to process a page request. I'm wondering if it's the way my hosts
or vhosts
files are setup:
hosts:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
127.0.0.1 mysite.local www.mysite.local
127.0.0.1 anothersite.local www.anothersite.local
httpd-vhosts.conf
NameVirtualHost *:80
<VirtualHost *:80>
ServerName mysite.local
ServerAlias www.mysite.local
DocumentRoot /Users/username/Sites/mysite.local/
<Directory /Users/username/Sites/mysite.local/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName anothersite.local
ServerAlias www.anothersite.local
DocumentRoot /Users/username/Sites/anothersite.local/
<Directory /Users/username/Sites/anothersite.local/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Your help is greatly appreciated!
this is somewhat of a mystery to me. The only way I can connect to MySQL is if I call it via "127.0.0.1" ... for example, my PHP connect script will NOT work with localhost
I'm running Mac OS X Lion, built-in apache2, MySQL, PHP, phpMyAdmin
mysqladmin:
count 0
debug-check FALSE
debug-info TRUE
force FALSE
compress FALSE
character-sets-dir (No default value)
default-character-set auto
host (No default value)
no-beep FALSE
port 0
relative FALSE
socket (No default value)
sleep 0
ssl FALSE
ssl-ca (No default value)
ssl-capath (No default value)
ssl-cert (No default value)
ssl-cipher (No default value)
ssl-key (No default value)
ssl-verify-server-cert FALSE
user (No default value)
verbose FALSE
vertical FALSE
connect-timeout 43200
shutdown-timeout 3600
plugin-dir (No default value)
default-auth (No default value)
So there are really two main issues I'm having. I've created a VM with VirtualBox, using Bridge for the network setup. The OS I chose is CentOS and everything has been smooth thus far.
I'm not at the point where I've installed Apache2, MySQL and PHP. The configuration runs fine locally, within the VM itself but this leads me to Q#1:
1) How can I make it so that my main development computer can access the VM Development box via the VM IP or name?
Secondly, when I installed all of the software with "yum", I was operating as the "root" user. It was recommended by certain people that this was the best thing to do... that's all fine and dandy, but I need to make sure that Apache has the rights to modify the right files and folders (apache specific stuff, as well as my virtualhost sites). This leads us to Q#2:
2) What permissions are best and for what files/folders? I mean, what would the ideal setup be if I were to enable FTP support and allow my development computer to transfer files over and deal with the VM like it was a remote development server?
I appreciate your help!
My question is probably fairly common, but I wanted to ask it anyway.
When choosing a database type for large scale application (social networking, for example), is MySQL able to handle it? I mean, hundreds of thousands, if not millions of users...
If not, I can't imagine that everyone would be using Microsoft Servers and SQL. What would be the suitable alternates?